Every now and then when I come back to use my daily driver running #Debian #Linux, I got surprised why #apt still does not provided short-formed commands like #pkg in #FreeBSD and #pkgin in #NetBSD do such as:
# FreeBSD#Unix #BSD #FOSS
pkg ins vim # same as pkg install vim
pkg sea vim # same as pkg search vim
# NetBSD
pkgin in vim # same as pkgin install vim
pkgin se vim # same as pkgin search vim
# while in Debian
apt search vim # no apt se/sea
apt install vim # no apt in/ins
What I want, now, is a pkg command to list unregistered packages.
Oops, too late 🙃
I want structured output from `pkg repositories` (e.g. JSON, XML, something).
The goal: parse the data via my code.
Here's what we're dealing with:
[22:44 r730-01 dvl ~] % pkg repositories local
local: {
url : "http://fedex.int.unixathome.org/packages/FreeBSD:14:amd64/",
enabled : yes,
priority : 0,
signature_type : "PUBKEY",
pubkey : "/etc/ssl/slocum.unixathome.org.cert"
}
Before I go coding which might break with each update, is there an existing method?
Thanks.
pkg query --evaluate '%o = base' '%o\n\n%e\n\n----\n\n'
Why does it not get descriptions of installed base packages?
pkg-query(8)
<https://man.freebsd.org/cgi/man.cgi?query=pkg-query&sektion=8&manpath=freebsd-ports>
pkg query --evaluate '%o = base' '%o\n\n%e\n\n----\n\n'
Why does it not get descriptions of installed base packages?
pkg-query(8)
<https://man.freebsd.org/cgi/man.cgi?query=pkg-query&sektion=8&manpath=freebsd-ports>
FreeBSD 15.0-ALPHA5 Now Available
https://lists.freebsd.org/archives/freebsd-stable/2025-October/003330.html
For freebsd-update:
― "THE STEP OF UPDATING YOUR EXISTING SYSTEM FIRST IS NECESSARY …"
https://www.reddit.com/r/freebsd/comments/1nyu2ky/comment/nhx8x53/
Screenshots below are of a multi-desktop environment system that used pkg for the update from ALPHA4 to ALPHA5.
#alpha #Cinnamon #MATE #KDE #Plasma #SDDM #Firefox #FreeBSD #Foundation
FreeBSD Installer: using the installer's offline packages
FreeBSD Installer: using the installer's offline packages
FreeBSD 15.0-ALPHA4 Now Available
<https://lists.freebsd.org/archives/freebsd-stable/2025-September/003265.html>
― FREEBSD-UPDATE SHOULD NOT BE USED TO UPGRADE TO 15.0-ALPHA4 AT PRESENT.
<https://www.reddit.com/r/freebsd/comments/1ns5onx/comment/ngjiwl9/> pictures a successful major upgrade that used pkg instead of freebsd-update.