Re: Understanding vital with version 2.2.2 of pkg in FreeBSD 16.0-CURRENT (1600000)

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Wed, 24 Sep 2025 16:46:46 UTC
On 24/09/2025 00:56, Graham Perrin wrote:
> A package that is neither missing, nor vital, is reportedly missing 
> when deletion is attempted without force, because the non-vital 
> package is a dependency of a vital meta package that is not mentioned 
> when the non-missing package is reportedly missing.
>
> True or false?


An example: FreeBSD-ppp


root@sixteen:~ # pkg delete FreeBSD-ppp

Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
1 packages requested for removal: 0 locked, 1 missing
root@sixteen:~ # pkg delete -fy FreeBSD-ppp

Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 
packages in the universe):

Installed packages to be REMOVED:
     FreeBSD-ppp: 16.snap20250923232126

Number of packages to be removed: 1
[1/1] Deinstalling FreeBSD-ppp-16.snap20250923232126...
…
[1/1] Deleting files for FreeBSD-ppp-16.snap20250923232126: 100%
root@sixteen:~ # pkg check -d

Checking all packages:   0%
…
Checking all packages: 100%
FreeBSD-set-minimal has a missing dependency: FreeBSD-ppp

 >>> Missing package dependencies were detected.
 >>> Found 1 issue(s) in the package database.

Checking integrity... done (0 conflicting)
The following packages will be installed:

New packages to be INSTALLED:
     FreeBSD-ppp: 16.snap20250923232126

Number of packages to be installed: 1

 >>> Try to fix the missing dependencies? [y/N]: y
[1/1] Installing FreeBSD-ppp-16.snap20250923232126...
…
[1/1] Extracting FreeBSD-ppp-16.snap20250923232126: 100%
 >>> Summary of actions performed:

FreeBSD-ppp dependency has been fixed

 >>> Missing dependencies were fixed successfully.
pkg: Package database is busy while closing!
root@sixteen:~ # pkg iinfo FreeBSD-ppp

FreeBSD-ppp-16.snap20250923232126
root@sixteen:~ # pkg delete FreeBSD-ppp

Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
1 packages requested for removal: 0 locked, 1 missing
root@sixteen:~ #