Re: `pkg autoremove` uninstalls pkg itself
- Reply: Yasuhiro Kimura : "Re: `pkg autoremove` uninstalls pkg itself"
- In reply to: Yasuhiro Kimura : "`pkg autoremove` uninstalls pkg itself"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Apr 2024 16:02:22 UTC
On Thu, Apr 4, 2024 at 1:27 PM Yasuhiro Kimura <yasu@freebsd.org> wrote: > > Hello, > > I tried following steps. > > 1. Make clean install of 14.0-RELEASE amd64. > 2. Login as root > 3. pkg install git-tiny > 4. cd /usr/ports > 5. git clone https://git.freebsd.org/ports.git . > 6. pkg delete -afy > 7. cd security/sudo (Probably any other ports are OK expect ports-mgmt/pkg) > 8. make install > 9. pkg-static autoremove -y > > Then step 9 uninstalls pkg package itself. And it is a bit surprising > for me. > > Then is it expected behavior? Yes, this is the expected behavior. Bonus points for figuring out how to install pkg on a system that doesn't have it. :-) -- Regards, Torfinn Ingolgfsen