Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2025 09:25:05 -0500
From:      "S. Ross Gohlke" <ross@bisd.ro>
To:        freebsd-current@freebsd.org
Subject:   Re: Questions about pkgbase
Message-ID:  <5ff7bf8d-6385-4193-8a0b-b7661b2ceea4@bisd.ro>
In-Reply-To: <20251002.184250.407649009874750263.yasu@utahime.org>
References:  <20251002.180121.980053125503545103.yasu@FreeBSD.org> <aN5DKrWeSlT978zr@amaryllis.le-fay.org> <20251002.184250.407649009874750263.yasu@utahime.org>

index | next in thread | previous in thread | raw e-mail


On 10/2/25 04:42, Yasuhiro Kimura wrote:
> Hi Lexi,
>
> Thanks for quick reply!
>
> From: Lexi Winter <ivy@freebsd.org>
> Subject: Re: Questions about pkgbase
> Date: Thu, 2 Oct 2025 10:17:30 +0100
>
>>> Then is there any way to (re|un)install all installed non-pkgbase
>>> packages?
>> this should be possible using 'pkg delete -r FreeBSD-ports', but
>> currently this option does not exist.  there is a feature request
>> to add it: https://github.com/freebsd/pkg/issues/2494.
> It solves the issue of `pkg-static delete -afy` but doesn't one of
> `pkg-static upgrade -fy`. IMHO option of pkg(8) should be added that
> limits target of action to either pkgbase pacakges or non-pkbbase
> ones.

pkg-query(8) evaluation format does not have variable for repository, 
but you can lock/unlock FreeBSD-base packages before/after:

# sh -c 'pkg query "%n %R" | grep " FreeBSD-base" | while read A B; 
do pkg lock -y $A; done'

# pkg-static upgrade -fy

...

# sh -c 'pkg query "%n %R" | grep " FreeBSD-base" | while read A B; 
do pkg unlock -y $A; done'

> BTW, 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.
>
> ---
> Yasuhiro Kimura
>
Regards,

Ross



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5ff7bf8d-6385-4193-8a0b-b7661b2ceea4>