Preferring /usr/local/sbin/pkg (was: pkg: invalid option --, and pkg: illegal option --)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 May 2025 11:53:42 UTC
On 02/05/2025 08:15, Florian Smeets wrote: > … I suspect be61deae0aa2 … Thanks! I remembered "breaking change" somewhere, couldn't find it before I sent my previous email. <https://github.com/freebsd/freebsd-src/commit/be61deae0aa2923bb9908fc5b37b35712603e622> So, I can work around by specifying the path to the pkg binary that's _not_ in base. root@mowa219-gjp4-zbook-freebsd:~ # which pkg /usr/sbin/pkg root@mowa219-gjp4-zbook-freebsd:~ # pkg which /usr/sbin/pkg /usr/sbin/pkg was installed by package FreeBSD-pkg-bootstrap-15.snap20250501133208 root@mowa219-gjp4-zbook-freebsd:~ # pkg which /usr/local/sbin/pkg /usr/local/sbin/pkg was installed by package pkg-2.1.2 root@mowa219-gjp4-zbook-freebsd:~ # pkg repos -el | sort -f pkg: invalid option -- e pkg: invalid option -- l FreeBSD-base FreeBSD-ports local-current root@mowa219-gjp4-zbook-freebsd:~ # /usr/local/sbin/pkg repos -el | sort -f FreeBSD-base FreeBSD-ports local-current root@mowa219-gjp4-zbook-freebsd:~ #