Re-bootstrapping pkgsrc
Open Source, pkgsrc July 26th, 2008pkgsrc doesn’t officially support re-bootstrapping once it’s been installed (ie updating the core packages by doing a fresh bootstrap). There is a way to force one by removing a few core packages first though:
pkg_delete -ff bootstrap-mk-files bmake tnftp pax pkg_install
cd /usr/pkgsrc/bootstrap
./bootstrap
As long as the fresh bootstrap is done using the same parameters as used originally (prefix, database directory, etc), everything should work as before.
I tested this a short while ago on an OS X 10.5 system using a pkgsrc -current tree and it worked perfectly.

July 27th, 2008 at 12:10 am
funky, i went through a similar process the other day. instead of trying to update in-place, i’ve opted for creating a new, second installation in a separate directory. gave me time to rebuild everything, then switch the /usr/pkg symlink. I wanted to blog about this, as I was really impressed how smooth things worked. I did this on Debian Linux and Mac OS X (Tiger) btw.
– Hubert
July 31st, 2008 at 8:50 am
There were some minor differences in the above to the way I do things, for reference:
I also do
./pkg_delete -ff nawk
./pkg_delete -ff nbsed
./pkg_delete -ff audit-packages-1.46
And have a call to ./cleanup before the ./bootstrap step