View Single Post
  #1   (View Single Post)  
Old 12th September 2013
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Wink /pkg/ question, also a *very* useful one-liner

Code:
#/# find /var/db/pkg -type d -name "p5*" | xargs -J % find -type f -name "+CONTENTS" -exec grep -H "5.12" {} \; | grep pm | head -40 | gtr -s \/ "\n" | grep p5 | sort | uniq | xargs -J % portmaster -d -B -P -i -g % && yell || yell
That code, incrementing the '-40' each time, made for the easiest upgrade of most of the ports depending upon perl (after updating perl itself) than any other perl upgrade I recall doing. I'm very concerned that its /pkg/ equivalent might not work the same or as well... If anyone using /pkg/ can report back an equivalent CLI and as to whether it works as easily, it would be appreciated. [As an aside, persons may wish to install 'gtr' (coreutils) to implement the long command fully...]
__________________
FreeBSD 13-STABLE
Reply With Quote