Difference between revisions of "FreeBSD binary package upgrades"

From WTFwiki
Jump to navigation Jump to search
(add freebsd binary package update notes)
 
m (3 revisions)
 
(2 intermediate revisions by the same user not shown)
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
 
   
 
   
Line 12: Line 12:
 
This will, in theory, fetch any binary packages it can from $PACKAGESITE (adjust to your needs), while also<br/>
 
This will, in theory, fetch any binary packages it can from $PACKAGESITE (adjust to your needs), while also<br/>
 
opting to build them from ports (so make sure you update it.. via portsnap(8)?) if a binary copy can't be<br/>
 
opting to build them from ports (so make sure you update it.. via portsnap(8)?) if a binary copy can't be<br/>
located.
+
located.<br/>
 +
<br/>
 +
Failing the above; I had some success editing '/usr/local/etc/pkgtools.conf' and adding the following to the<br/>
 +
'PKG_SITES' array:<br/>
 +
<br/>
 +
  sprintf('ftp://ftp.freebsd.org//pub/FreeBSD/ports/i386/packages-%s-stable/', OS_MAJOR),
 +
<br/>
 +
Don't ask why it needs two '/'s, it isn't obvious to me, either.
  
 
Good luck, this seems somehow not very well documented.
 
Good luck, this seems somehow not very well documented.
  
 
[[User:Jontow|Jontow]] 03:12, 9 April 2009 (EDT)
 
[[User:Jontow|Jontow]] 03:12, 9 April 2009 (EDT)

Latest revision as of 21:49, 4 January 2013

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.

Failing the above; I had some success editing '/usr/local/etc/pkgtools.conf' and adding the following to the
'PKG_SITES' array:

 sprintf('ftp://ftp.freebsd.org//pub/FreeBSD/ports/i386/packages-%s-stable/', OS_MAJOR),


Don't ask why it needs two '/'s, it isn't obvious to me, either.

Good luck, this seems somehow not very well documented.

Jontow 03:12, 9 April 2009 (EDT)