Re: pkg: invalid option --, and pkg: illegal option --
Date: Fri, 02 May 2025 07:15:53 UTC
On 02.05.25 08:32, Graham Perrin wrote: > root@mowa219-gjp4-zbook-freebsd:~ # pkg version -C -vRL= | grep -v orphaned > pkg: invalid option -- C > pkg: invalid option -- v > pkg: invalid option -- R > pkg: invalid option -- L > pkg: invalid option -- = > Updating FreeBSD-ports repository catalogue... > FreeBSD-ports repository is up to date. > Updating FreeBSD-base repository catalogue... > FreeBSD-base repository is up to date. > Updating local-current repository catalogue... > local-current repository is up to date. > All repositories are up to date. > AppStreamQt6-1.0.4 < needs updating (remote has 1.0.4_1) I was about to report the same. I frequently use pkg info -x and pkg search -x. Which gives similar messages, but works anyway. Looking at the commit logs I suspect be61deae0aa2 and pkg-bootstrap not pkg itself which appears to be confirmed by my testing. Also, I don't see it on up to date 14.x systems. root@mail:~ # pkg info -x postf postfix-3.10.1,1 root@mail:~ # pkg install pkg [...] Installed packages to be UPGRADED: pkg: 2.1.0 -> 2.1.2 [flo] [...] [1/1] Extracting pkg-2.1.2: 100% [...] root@mail:~ # pkg info -x postf postfix-3.10.1,1 root@mail:~ # pkg upgr [...] The following 259 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: [...] FreeBSD-pkg-bootstrap: 15.snap20250419140427 -> 15.snap20250501133208 [base] FreeBSD-pkg-bootstrap-man: 15.snap20250401134651 -> 15.snap20250430011047 [base] [...] [349/445] Deinstalling FreeBSD-pkg-bootstrap-man-15.snap20250401134651... [349/445] Deleting files for FreeBSD-pkg-bootstrap-man-15.snap20250401134651: 100% [350/445] Deinstalling FreeBSD-pkg-bootstrap-15.snap20250419140427... [350/445] Deleting files for FreeBSD-pkg-bootstrap-15.snap20250419140427: 100% [351/445] Installing FreeBSD-pkg-bootstrap-15.snap20250501133208... [351/445] Extracting FreeBSD-pkg-bootstrap-15.snap20250501133208: 100% [352/445] Installing FreeBSD-pkg-bootstrap-man-15.snap20250430011047... [352/445] Extracting FreeBSD-pkg-bootstrap-man-15.snap20250430011047: 100% [...] root@mail:~ # pkg info -x postf pkg: invalid option -- x postfix-3.10.2,1 root@mail:~ # Florian