Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 May 2025 07:32:34 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-current@freebsd.org, freebsd-pkg@freebsd.org
Subject:   pkg: invalid option --, and pkg: illegal option --
Message-ID:  <c04ba507-9764-4357-b877-cffa57ccc3cc@gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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)
^C
You have new mail.
root@mowa219-gjp4-zbook-freebsd:~ # pkg -v ; uname -mvKU
2.1.2
FreeBSD 15.0-CURRENT main-n276940-8d136fb027ba GENERIC-NODEBUG amd64 
1500039 1500039
root@mowa219-gjp4-zbook-freebsd:~ #


The attached file includes an example of:

pkg:illegal option --r

– in response to:

pkg upgrade -y -r local-current pkg

[-- Attachment #2 --]
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
grahamperrin@mowa219-gjp4-zbook-freebsd /u/h/grahamperrin> su -
Password:
root@mowa219-gjp4-zbook-freebsd:~ # poudriere jail -u -j current && poudriere ports -u
[00:00:00] Upgrading using pkgbase
pkg: invalid option -- o
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating pkgbase repository catalogue...
Fetching data.pkg: 100%   50 KiB  51.6kB/s    00:01    
Processing entries: 100%
pkgbase repository update completed. 538 packages processed.
All repositories are up to date.
pkg: invalid option -- o
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating pkgbase repository catalogue...
pkgbase repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 100%
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        FreeBSD-src-sys: 15.snap20250430223824 -> 15.snap20250501095652 [pkgbase]

Number of packages to be upgraded: 1

87 MiB to be downloaded.
[1/1] Fetching FreeBSD-src-sys-15.snap20250501095652.pkg: 100%   87 MiB   1.5MB/s    01:02    
Checking integrity... done (0 conflicting)
[1/1] Upgrading FreeBSD-src-sys from 15.snap20250430223824 to 15.snap20250501095652...
[1/1] Extracting FreeBSD-src-sys-15.snap20250501095652: 100%
[00:01:18] Recording filesystem state for clean... done
[00:00:00] Updating portstree "default" with git+https... done
root@mowa219-gjp4-zbook-freebsd:~ # date ; uptime
Thu May  1 15:50:06 BST 2025
 3:50PM  up 9 mins, 5 users, load averages: 0.92, 1.11, 0.58
root@mowa219-gjp4-zbook-freebsd:~ # pkg -v
2.1.0
root@mowa219-gjp4-zbook-freebsd:~ # poudriere jail -u -j current 
[00:00:00] Upgrading using pkgbase
pkg: invalid option -- o
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating pkgbase repository catalogue...
pkgbase repository is up to date.
All repositories are up to date.
pkg: invalid option -- o
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating pkgbase repository catalogue...
pkgbase repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
[00:00:01] Recording filesystem state for clean... done
root@mowa219-gjp4-zbook-freebsd:~ # pkg upgrade -y -r local-current pkg
pkg: invalid option -- r
Updating local-current repository catalogue...
local-current repository is up to date.
local-current is up to date.
New version of pkg detected; it needs to be installed first.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        pkg: 2.1.0 -> 2.1.2 [local-current]

Number of packages to be upgraded: 1
[1/1] Upgrading pkg from 2.1.0 to 2.1.2...
[1/1] Extracting pkg-2.1.2: 100%
You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
pkg: illegal option -- r
Updating local-current repository catalogue...
local-current repository is up to date.
local-current is up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
root@mowa219-gjp4-zbook-freebsd:~ # poudriere jail -u -j current
[00:00:00] Upgrading using pkgbase
pkg: invalid option -- o
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating pkgbase repository catalogue...
pkgbase repository is up to date.
All repositories are up to date.
pkg: invalid option -- o
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating pkgbase repository catalogue...
pkgbase repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
[00:00:01] Recording filesystem state for clean... done
root@mowa219-gjp4-zbook-freebsd:~ # poudriere jail -i -j current
Jail name:         current
Jail version:      15.0-CURRENT
Jail arch:         amd64
Jail method:       pkgbase
Jail mount:        /usr/local/poudriere/jails/current
Jail fs:           internalssd/poudriere/jails/current
Jail updated:      2025-05-01 15:51:06
Jail pkgbase:      disabled
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:~ # bectl list -c creation | tail -n 3
1500038-007-base        -      -          8.49M 2025-04-27 22:15
1500038-008-base-ports  -      -          9.35G 2025-04-28 09:58
1500038-009-base-007    NR     /          226G  2025-05-01 13:12
root@mowa219-gjp4-zbook-freebsd:~ # uname -mvKU
FreeBSD 15.0-CURRENT main-n276920-4e3a6fe0134e GENERIC-NODEBUG amd64 1500038 1500038
root@mowa219-gjp4-zbook-freebsd:~ # 
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c04ba507-9764-4357-b877-cffa57ccc3cc>