Yes, that's new. I noticed it as well on the last package upgrade: https://pkg.freebsd.org/FreeBSD:15:amd64/quarterly/This seems to be a feature I don't recall in the past.
Apparently files.pkg is decompressed and re-compressed again, to safe space. Nothing to do with ZFS. Not every FreeBSD file system is ZFS, there are users using UFS.What's being compressed, and if I have ZFS compression already, why does it need to be compressed twice?
% ls -l
-rw-r--r-- 1 root wheel 31149062 Dec 2 21:39 files
% file files
files: Zstandard compressed data (v0.8+), Dictionary ID: None
DESCRIPTION
...
files.pkg is an optional compressed archive containing files, a
directory-grouped listing of all files present in all packages in the
repository. It is only generated when the -l flag is used. The file
uses a compact line-based text format where paths are grouped by
directory. When fetched by pkg-update(8), this data enables
pkg-rwhich(8) to look up which remote package provides a given file. See
pkg-repository(5) for a full description of the format.
% pkg rwhich /usr/local/bin/sudo
/usr/local/bin/sudo is provided by package sudo-1.9.17p2_5
/usr/local/bin/sudo is provided by package sudo-rs-0.2.15_2
/usr/local/bin/sudo is provided by package sudo-sssd-1.9.17p2_5
The fetching of files.pkg should be optional, not default. Not everybody wants to look up files provided by remote packages.It's especially painful with multiple jails.
Strange, as https://github.com/freebsd/pkg/blob/2.9.4/docs/pkg-rwhich.8 exists; also for 2.9.3.Note, the manual pkg-rwhich(8) as of pkg version 2.9.4 doesn't exist yet.
PKG_RWHICH_DATABASE: NO
rwhich
- Store the filesite as a compressed archive parsed in memory, removing the
pkg_files and file_dirs tables from the repo SQLite database (~96% of
the DB size)
pkg info -l capability when disabling the rwhich database?No.Does this mean one (also) looses thepkg info -lcapability when disabling the rwhich database?
Perfect, thank you! Although the configuration syntax confuses me as the man file description doesn't match the respective config files' contents. It does appear to work though.Setin /usr/local/etc/pkg.conf.Code:PKG_RWHICH_DATABASE: NO
https://man.freebsd.org/cgi/man.cgi?query=pkg.conf
Thanks. A less annoyance.Setin /usr/local/etc/pkg.conf.Code:PKG_RWHICH_DATABASE: NO
https://man.freebsd.org/cgi/man.cgi?query=pkg.conf