If you're going backwards, it's probably a good idea to use bsd.rd manually and drop to a shell to remove /usr/lib/* and /usr/share/relink files before extracting sets.
On 2026-11-04, Robert Alessi <[email protected]> wrote: > On Thu, Oct 29, 2026 at 11:01:39AM +0000, Chris Narkiewicz wrote: >> On Wed, Oct 28, 2026 at 11:20:34AM +0100, Robert Alessi wrote: >> > As I keep a list from pkg_info -mz in my backups, I wonder if a >> > solution would not be to first remove everything with pkg_delete -X, >> >> I understand it's not exactly the answer you probably look for, but >> how about re-installing? > > I would have, but since I carefully keep incremental backups, I tried > to find a way to avoid it. > >> There is a way to avoid manual setup again. >> >> Collect all your customizations and plonk them into site80.tgz. then >> create a bootable image with extra site tarball file. > > Interesting, I didn't think about this! > > In the end I tried the pkg_delete -X way, and it worked! sysclean was > even clever enough to tell me I had a couple of libraries ahead. That > said, I wouldn't do it again. Reinstalling must remain the proper > thing to do. > >> If you are ready to uninstall all packages, I can only imagine you are >> ready to repeat the configuration step too. >> >> If you need to install remotely, you can put the same site80.tgz >> on HTTP and point the installer to custom sets server/path. >> >> I created a script to automate generation of install sets: puffmatic. >> You can find it on github. > > Very nice, thank you! > > Best, > > Robert > >> Best regards, >> Chris Narkiewicz > > -- Please keep replies on the mailing list.

