Difference between revisions of "FreeBSD binary package upgrades"
(fix it?) |
(another note about PKG_SITES) |
||
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) |
Revision as of 03:11, 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.
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)