Difference between revisions of "FreeBSD binary package upgrades"

From WTFwiki
Jump to navigation Jump to search
(add freebsd binary package update notes)
 
(fix it?)
Line 5: Line 5:
 
would like to do the same for ports.. not possible you say?  -- neat trick follows:<br/>
 
would like to do the same for ports.. not possible you say?  -- neat trick follows:<br/>
 
<br/>
 
<br/>
   # export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/"
+
   # export PKG_SITES="ftp://ftp.freebsd.org//pub/FreeBSD/ports/i386/packages-6-stable/Latest/"
 
   # portupgrade -arRP
 
   # portupgrade -arRP
 
   
 
   

Revision as of 02:49, 9 April 2009

Say you're doing something strange.. like updating from 6.4-RELEASE to 6.4-RELEASE-p3.. maybe you're even
using freebsd-update(8).. awkward, eh?

Well, say you want to also update your ports, but you just got away without rebuilding kernel/userland and
would like to do the same for ports.. not possible you say? -- neat trick follows:

 # export PKG_SITES="ftp://ftp.freebsd.org//pub/FreeBSD/ports/i386/packages-6-stable/Latest/"
 # portupgrade -arRP

 (Now its time to listen to some music or have breakfast..)


This will, in theory, fetch any binary packages it can from $PACKAGESITE (adjust to your needs), while also
opting to build them from ports (so make sure you update it.. via portsnap(8)?) if a binary copy can't be
located.

Good luck, this seems somehow not very well documented.

Jontow 03:12, 9 April 2009 (EDT)