Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2025 15:47:36 +0000
From:      Lexi Winter <ivy@freebsd.org>
To:        freebsd-pkgbase@freebsd.org
Subject:   Re: Customize what packages get installed
Message-ID:  <aThEmBLESvyQWRQo@amaryllis.le-fay.org>
In-Reply-To: <DB0931F1-EF34-4D09-9BE6-468888F0CE30@pean.org>
References:  <DB0931F1-EF34-4D09-9BE6-468888F0CE30@pean.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Peter Ankerstål wrote in <DB0931F1-EF34-4D09-9BE6-468888F0CE30@pean.org>:
> After fiddling around with pkgbase for a while realized that this is a
> very convenient way to customize what software gets installed or
> upgraded in a system compared to a custom make.conf.
>[..]
> If I for some reason like security, storage or any other reason decide
> to build a slimmed down system I would like to filter what packages
> get installed during upgrade.

nothing will be installed during upgrade, unless it is a new dependency
of something which is being upgraded.

for example, suppose someone added Kerberos support to nc(1).  if you
had nc(1) installed, but did not have FreeBSD-kerberos-lib installed,
then upgrading to the newer release would install FreeBSD-kerberos-lib,
because nc now requires it.  but if someone did not make this change,
FreeBSD-kerberos-lib will not be installed unless you manually install
it.

the only exception to this is if you install a package set, such as
FreeBSD-set-minimal, and new packages are added to that set; in that
case the new packages will be installed.  if you want to avoid that,
you can simply not install (or remove) the set package.  after doing
that, make sure to mark all the existing packages as not automatically
installed, otherwise pkg autoremove might remove them.

> A side track for this question is security updates. Using 14.3
> upgrading to a new patch level pkg upgraded all installed FreeBSD-base
> packages at the new patch level. Why couldn’t it just install the
> packages that changed with that patch level?

i am not sure i understand what you're asking here; could you please
provide an example of the behaviour you're talking about, and also
describe how you think it should work instead?

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaThElQAKCRD1nT63mIK/
YG/BAQCaiquyL3wdqkwXRYLDi5IXanUt1XFxkpDQMWn26aUMuAEA8/7hHcknXJVU
0BZyUuoi8ATgk4goCU1eXG4kkYIbTgA=
=08v4
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aThEmBLESvyQWRQo>