![]() |
|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Saves a lot of time vs ports.
Code:
script weekly_thu_upgrade pkg upgrade Code:
grep p5 weekly_thu_upgrade | sed 's/:/ /g' | awk '{print $1}' | grep -v mous | xargs -J % pkg install % A second run with "pkg install -y" actually does the command, as the pipe in the code example is non-interactive and assumes NO. Many more aspects to this weekly upgrade and a few unmentioned steps (editing out extra lines from the first file result in the first code block above etc) but may be useful to some readers of this post or thread. Sorry no time to include more useful information. A few suggestions here to make pkg more robust but not the venue... edit: the grep can be changed to//replaced with a "head -10 " "head -30" "head -50" sequence also...
__________________
FreeBSD 13-STABLE Last edited by jb_daefo; 26th February 2015 at 03:14 PM. Reason: grep > sed possible. |
![]() |
Tags |
pkg v10 v11 |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
FreeBSD 9.2 RC3 works on iMac but... | lumiwa | FreeBSD Installation and Upgrading | 5 | 20th September 2013 11:28 AM |
is it a good security practice to always pkg_add -u after an upgrade ? | daemonfowl | OpenBSD Security | 3 | 17th September 2012 02:01 AM |
Enhanced Speedstep only works for two CPU cores on FreeBSD 7.1 | Android1 | FreeBSD General | 13 | 19th April 2009 08:59 PM |
Skype on FreeBSD 7.1 - works very slow.. | DNAeon | FreeBSD General | 2 | 27th January 2009 11:48 AM |
Good books for freebsd? | Johnny2Bad | FreeBSD General | 3 | 26th May 2008 03:42 PM |