Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 2025 05:23:38 +0000
From:      =?iso-8859-1?Q?Quentin_Th=E9bault?= <quentin.thebault@defenso.fr>
To:        "freebsd-pkgbase@freebsd.org" <freebsd-pkgbase@freebsd.org>
Subject:   pkg autoremove removes base package dependencies
Message-ID:  <PR1P264MB22791FDE5DFE97E1F532D5DCF507A@PR1P264MB2279.FRAP264.PROD.OUTLOOK.COM>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello,

I am experimenting with pkgbase as a way to provision minimal jails, on 14.3-RELEASE, installing only the necessary packages for what I want to run inside, and I discovered some weird behaviour:
- when I install, for instance, FreeBSD-bhyve, it pulls a few more packages as dependencies, such as FreeBSD-lib9p or FreeBSD-libcasper
- if I then run autoremove, it tries to delete some of them (9 out of 19 installed). FreeBSD-libcasper is one of them, but not FreeBSD-lib9p, for instance.

Is this a know issue?

I am attaching a tmux transcript for the details on how to reproduce.

Kind regards,
--
Quentin THÉBAULT
[-- Attachment #2 --]
root@computer:~ # iocage create -e -n pkgbug
pkgbug successfully created!
root@computer:~ # mkdir -p /iocage/jails/pkgbug/root/usr/local/etc/pkg/repos
root@computer:~ # mkdir -p /iocage/jails/pkgbug/root/usr/share/keys/pkg
root@computer:~ # cp -r /usr/share/keys/pkg/* /iocage/jails/pkgbug/root/usr/share/keys/pkg/
root@computer:~ # cp /usr/local/etc/pkg/repos/* /iocage/jails/pkgbug/root/usr/local/etc/pkg/repos/
root@computer:~ # pkg -r /iocage/jails/pkgbug/root/ info
root@computer:~ # pkg -r /iocage/jails/pkgbug/root/ install FreeBSD-bhyve
Updating FreeBSD-kmods repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
Fetching data.pkg: 100%   30 KiB  30.8kB/s    00:01
Processing entries: 100%
FreeBSD-kmods repository update completed. 209 packages processed.
Updating FreeBSD-base repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
Fetching data.pkg: 100%   48 KiB  49.2kB/s    00:01
Processing entries: 100%
FreeBSD-base repository update completed. 525 packages processed.
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
Fetching data.pkg: 100%   10 MiB   1.2MB/s    00:09
Processing entries: 100%
FreeBSD-ports repository update completed. 36540 packages processed.
All repositories are up to date.
The following 19 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        FreeBSD-bhyve: 14.3p2 [FreeBSD-base]
        FreeBSD-blocklist: 14.3p2 [FreeBSD-base]
        FreeBSD-clibs: 14.3p2 [FreeBSD-base]
        FreeBSD-lib9p: 14.3p2 [FreeBSD-base]
        FreeBSD-libarchive: 14.3p2 [FreeBSD-base]
        FreeBSD-libbsm: 14.3p2 [FreeBSD-base]
        FreeBSD-libbz2: 14.3p2 [FreeBSD-base]
        FreeBSD-libcasper: 14.3p2 [FreeBSD-base]
        FreeBSD-libldns: 14.3p2 [FreeBSD-base]
        FreeBSD-liblzma: 14.3p2 [FreeBSD-base]
        FreeBSD-libmagic: 14.3p2 [FreeBSD-base]
        FreeBSD-libucl: 14.3p2 [FreeBSD-base]
        FreeBSD-libvmmapi: 14.3p2 [FreeBSD-base]
        FreeBSD-openssl-lib: 14.3p2 [FreeBSD-base]
        FreeBSD-runtime: 14.3p2 [FreeBSD-base]
        FreeBSD-tcpd: 14.3p2 [FreeBSD-base]
        FreeBSD-ufs: 14.3p2 [FreeBSD-base]
        FreeBSD-utilities: 14.3p2 [FreeBSD-base]
        FreeBSD-zfs: 14.3p2 [FreeBSD-base]

Number of packages to be installed: 19

The process will require 103 MiB more space.
20 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/19] Fetching FreeBSD-libbsm-14.3p2.pkg: 100%   37 KiB  37.7kB/s    00:01
[2/19] Fetching FreeBSD-tcpd-14.3p2.pkg: 100%   27 KiB  27.9kB/s    00:01
[3/19] Fetching FreeBSD-libucl-14.3p2.pkg: 100%   58 KiB  59.5kB/s    00:01
[4/19] Fetching FreeBSD-zfs-14.3p2.pkg: 100%    2 MiB 612.6kB/s    00:03
[5/19] Fetching FreeBSD-liblzma-14.3p2.pkg: 100%   94 KiB  95.8kB/s    00:01
[6/19] Fetching FreeBSD-runtime-14.3p2.pkg: 100%    2 MiB 853.4kB/s    00:03
[7/19] Fetching FreeBSD-libarchive-14.3p2.pkg: 100%  350 KiB 358.1kB/s    00:01
[8/19] Fetching FreeBSD-bhyve-14.3p2.pkg: 100%  227 KiB 232.9kB/s    00:01
[9/19] Fetching FreeBSD-libmagic-14.3p2.pkg: 100%  811 KiB 830.6kB/s    00:01
[10/19] Fetching FreeBSD-libcasper-14.3p2.pkg: 100%   10 KiB  10.1kB/s    00:01
[11/19] Fetching FreeBSD-clibs-14.3p2.pkg: 100%    2 MiB   1.6MB/s    00:01
[12/19] Fetching FreeBSD-libldns-14.3p2.pkg: 100%  158 KiB 161.4kB/s    00:01
[13/19] Fetching FreeBSD-lib9p-14.3p2.pkg: 100%   37 KiB  38.0kB/s    00:01
[14/19] Fetching FreeBSD-blocklist-14.3p2.pkg: 100%   28 KiB  28.8kB/s    00:01
[15/19] Fetching FreeBSD-utilities-14.3p2.pkg: 100%   11 MiB   1.3MB/s    00:09
[16/19] Fetching FreeBSD-openssl-lib-14.3p2.pkg: 100%    2 MiB 617.3kB/s    00:03
[17/19] Fetching FreeBSD-ufs-14.3p2.pkg: 100%  223 KiB 228.5kB/s    00:01
[18/19] Fetching FreeBSD-libvmmapi-14.3p2.pkg: 100%   12 KiB  11.9kB/s    00:01
[19/19] Fetching FreeBSD-libbz2-14.3p2.pkg: 100%   36 KiB  36.9kB/s    00:01
Checking integrity... done (0 conflicting)
[1/19] Installing FreeBSD-bhyve-14.3p2...
[1/19] Extracting FreeBSD-bhyve-14.3p2: 100%
[2/19] Installing FreeBSD-blocklist-14.3p2...
[2/19] Extracting FreeBSD-blocklist-14.3p2: 100%
[3/19] Installing FreeBSD-clibs-14.3p2...
[3/19] Extracting FreeBSD-clibs-14.3p2: 100%
[4/19] Installing FreeBSD-lib9p-14.3p2...
[4/19] Extracting FreeBSD-lib9p-14.3p2: 100%
[5/19] Installing FreeBSD-libarchive-14.3p2...
[5/19] Extracting FreeBSD-libarchive-14.3p2: 100%
[6/19] Installing FreeBSD-libbsm-14.3p2...
[6/19] Extracting FreeBSD-libbsm-14.3p2: 100%
[7/19] Installing FreeBSD-libbz2-14.3p2...
[7/19] Extracting FreeBSD-libbz2-14.3p2: 100%
[8/19] Installing FreeBSD-libcasper-14.3p2...
[8/19] Extracting FreeBSD-libcasper-14.3p2: 100%
[9/19] Installing FreeBSD-libldns-14.3p2...
[9/19] Extracting FreeBSD-libldns-14.3p2: 100%
[10/19] Installing FreeBSD-liblzma-14.3p2...
[10/19] Extracting FreeBSD-liblzma-14.3p2: 100%
[11/19] Installing FreeBSD-libmagic-14.3p2...
[11/19] Extracting FreeBSD-libmagic-14.3p2: 100%
[12/19] Installing FreeBSD-libucl-14.3p2...
[12/19] Extracting FreeBSD-libucl-14.3p2: 100%
[13/19] Installing FreeBSD-libvmmapi-14.3p2...
[13/19] Extracting FreeBSD-libvmmapi-14.3p2: 100%
[14/19] Installing FreeBSD-openssl-lib-14.3p2...
[14/19] Extracting FreeBSD-openssl-lib-14.3p2: 100%
[15/19] Installing FreeBSD-runtime-14.3p2...
[15/19] Extracting FreeBSD-runtime-14.3p2: 100%
[16/19] Installing FreeBSD-tcpd-14.3p2...
[16/19] Extracting FreeBSD-tcpd-14.3p2: 100%
[17/19] Installing FreeBSD-ufs-14.3p2...
[17/19] Extracting FreeBSD-ufs-14.3p2: 100%
[18/19] Installing FreeBSD-utilities-14.3p2...
[18/19] Extracting FreeBSD-utilities-14.3p2: 100%
[19/19] Installing FreeBSD-zfs-14.3p2...
[19/19] Extracting FreeBSD-zfs-14.3p2: 100%
root@computer:~ # pkg -r /iocage/jails/pkgbug/root/ autoremove
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 9 packages:

Installed packages to be REMOVED:
        FreeBSD-blocklist: 14.3p2
        FreeBSD-libcasper: 14.3p2
        FreeBSD-libldns: 14.3p2
        FreeBSD-libmagic: 14.3p2
        FreeBSD-libucl: 14.3p2
        FreeBSD-tcpd: 14.3p2
        FreeBSD-ufs: 14.3p2
        FreeBSD-utilities: 14.3p2
        FreeBSD-zfs: 14.3p2

Number of packages to be removed: 9

The operation will free 83 MiB.

Proceed with deinstalling packages? [y/N]: N
root@computer:~ #
home | help

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