Re: --case-sensitive (was: Questions about pkgbase)
- In reply to: Graham Perrin : "--case-sensitive (was: Questions about pkgbase)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Oct 2025 16:38:07 UTC
On Oct 2, 2025, at 21:33, Graham Perrin <grahamperrin@gmail.com> wrote:
> On 02/10/2025 10:42, Yasuhiro Kimura wrote:
>
>> … it seems package name of all pkgbase packages starts with
>> 'FreeBSD-'. On the other hand AFAIK ports framework don't prohibit to
>> add port whose package name starts with 'FreeBSD-'. It seems
>> confliction of package name may happen between base system and ports.
>
>
> I'm aware of only one conflict/similarity, which is not case-sensitive.
>
> <https://github.com/freebsd/pkg/issues/2526#issuecomment-3322119287> described use of:
>
> --case-sensitive
>
> With the closure, there arises a question about the meaning of this option for pkg-version(8):
>
> -C
For reference (from pkg 2.3.1 , so not updated yet
for the default case sensitivity) . . .
-C, --case-sensitive
Make the standard or the regular expression (-x) matching against
pkg-name case sensitive.
-i, --case-insensitive
Use case insensitive standard or regular expression (-x)
matching with pattern. This is the default unless
CASE_SENSITIVE_MATCH has been set to true in pkg.conf.
(The detailed wording can vary some.)
Which pkg commands have command line options for that:
pkg annotate [-qy] -A|M [-Cgix]
pkg check -d|-s [-nqvy] [-Cgix]
pkg delete [-DfnqRy] [-Cgix]
pkg fetch [-r reponame] [-dqUy] [-Cgix]
pkg info [-ABbDdefIklOpqRrs] [-Cgix]
pkg install [-AfIMnFqRUy] [-r reponame] [-Cgix]
pkg lock [-lqy] [-Cgix]
pkg query [-Cgix]
pkg remove [-DfnqRy] [-Cgix]
pkg rquery [-U] [-Cgix]
pkg search [-U] [-r reponame] [-S search] [-L label] [-Q query-modifier]
[-Cegix]
pkg set [-a] [-A 0|1] [-n oldname:newname] [-o oldorigin:neworigin] [-p]
[-v 0|1] [-y] [-Cgix]
pkg unlock [-lqy] [-Cgix]
pkg updating [--case-insensitive]
pkg upgrade [-fInFqUy] [-r reponame] [-Cgix]
pkg version [-IPR] [-hoqvU] [-l limchar] [-L limchar] [-Cegix pattern]
Note: "pkg updating" is unusual in that it only has an
explicit command line request for --case-insensitive
(and the -i form of that). It has no words about
CASE_SENSITIVE_MATCH .
Note: "man pkg-remove" shows the pkg-delete page. So
I included an example. But the man page does not show
"pkg remove". Yet, "pkg -l" does list "remove".
Note: There is no pkg-plugins man page but "pkg -l"
lists "plugins".
For reference for case insensitive FreeBSD-* matches:
# pkg rquery -rFreeBSD-ports -g %o 'FreeBSD-*' | sort
audio/freebsd-13-mixer
deskutils/freebsd-update-notify
devel/freebsd-git-devtools
devel/freebsd-nvme-shim
ftp/freebsd-ftpd
misc/freebsd-doc-all
misc/freebsd-release-manifests
net/freebsd-route6d
net/freebsd-routed
net/freebsd-telnetd
net/freebsd-uucp
ports-mgmt/freebsd-bugzilla-cli
sysutils/freebsd-bsdlabel
sysutils/freebsd-fdisk
sysutils/freebsd-rustdate
sysutils/freebsd-shar
sysutils/freebsd-snapshot
x11-themes/freebsd-8k-wallpapers
x11-themes/freebsd-8k-wallpapers-kde
===
Mark Millard
marklmi at yahoo.com