Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2005 15:28:31 +0000
From:      Chris Hodgins <chodgins@cis.strath.ac.uk>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: Portupgrading - portauditing
Message-ID:  <4220959F.2020602@cis.strath.ac.uk>

next in thread | raw e-mail | index | archive | help
George Katsanos wrote:
> 
> Hello,
> 
> Your team is ALWAYS very helpful . It's the best support i've ever dealt with.
> 
> Question : How do i portupgrade , just the pkgs/ports that portaudit -a sais 
> have vulnerabilities,and not the whole thing?
> 
> Thank you
> 
> 
> G.K.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 

Are you after a way to do this automatically or just a way to do it
generally?

You basically want to run portaudit -a and portupgrade each "Affected
Package".  You could probably script this quite easily:

for i in `portaudit -a | grep "Affected package:" | awk '{print $3}'`
do
     portupgrade $FLAGS $i
done

Hope this is what you were after. :)
Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4220959F.2020602>