[Bug 254050] pkgbase: pkg autoremove is removing packages it shouldn't

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Jan 2022 08:11:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254050

Henrik Rosenke <rosenke@dssgmbh.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rosenke@dssgmbh.de

--- Comment #3 from Henrik Rosenke <rosenke@dssgmbh.de> ---
I got the Same Problem in 12 Stable Revision 370727. After a basic Install of
ca 77 packages pkg wants to remove 68 of them.

[root@dsssrvt4j1 /usr/local/etc/rc.d]# pkg info -d FreeBSD-libarchive
FreeBSD-libarchive-12.2.s20220105232846:
[root@dsssrvt4j1 /usr/local/etc/rc.d]# pkg info -r FreeBSD-libarchive
FreeBSD-libarchive-12.2.s20220105232846:

My current workaroung when setting up jails is 
for port in $(jexec ${jailname} pkg autoremove -n | grep FreeBSD | xargs -n 1);
do
    jexec ${jailname} pkg lock -y ${port}
done

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.