Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 2025 10:52:21 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        A FreeBSD User <freebsd@walstatt-de.de>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: CURRENT: bothering DESTDIR=/ issue after pkg base install
Message-ID:  <72392FBA-FF71-4A9A-A6A4-7632B9A28344@yahoo.com>

index | next in thread | raw e-mail

A FreeBSD User <freebsd_at_walstatt-de.de> wrote on
Date: Sun, 21 Dec 2025 10:22:31 UTC :

> Am Tage des Herren Sun, 21 Dec 2025 10:55:47 +0100
> Dag-Erling Smørgrav <des@FreeBSD.org> schrieb:
> 
> > A FreeBSD User <freebsd@walstatt-de.de> writes:
> > > I'd like to go back to the status quo ante, without defining DESTDIR=/
> > > in /etc/src.conf, but it seems I'm to blunt to find the correct
> > > "switch". 
> > 
> > You have converted your system to pkgbase and want to switch back to
> > updating from source.
> 
> No, I had no chance to rescue a wrecked system other than using the latest USB Flash snapshot
> CURRENT image, which doesn't contain an offline working legacy install package.
> 
> > 
> > If you have pkg 2.5.0 or newer:
> > 
> > pkg unregister -fg FreeBSD-\*
> > 
> > otherwise:
> > 
> > pkg shell "delete from packages where origin like 'base/%';"
> 
> Outstanding, thanks. Done. Things seem to be as they were before ...
> 
> > 
> > Remember to run `make delete-old` after `make installworld` to remove
> > files that were installed by pkgbase but are excluded from your build.
> 
> Done. It is slightly disturbing, because there is something to delete like
> "/usr/sbin/cd|alias" which I consider as Shell commands ... ;-)

You may want to check for the likes of (a main [so: 16]
example context used for illustration):

# ls -dC1 /var/cache/pkg/FreeBSD-*.pkg
/var/cache/pkg/FreeBSD-acct-16.snap20251112131218.pkg
/var/cache/pkg/FreeBSD-acct-16.snap20251112131218~d117264470.pkg
. . .

As I understand such FreeBSD-*.pkg files/links would now be wasted
file system space usage. If true and you have such, you may want
to delete them. 'make delete-old' may not do so.

===
Mark Millard
marklmi at yahoo.com



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?72392FBA-FF71-4A9A-A6A4-7632B9A28344>