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
pkg.conf manpage:COMPRESSION_LEVEL: integer
Set the default compression level, special values are:
0 default value per libarchive developers
-1 default value per pkg developers (default)
0 and it's definitely faster than the default -1. pkg feature.tar instead of tzst, but you lose the possibility for the CPU to use multiple threads which is only for txz and tzst. COMPRESSION_FORMAT: string
Set the default compression format: tzst, txz, tbz, tar.
Default: tzst.
COMPRESSION_THREADS: integer
Set the number of threads to use during compression and decom-
pression (only functional for txz and tzst).
Default: -1 (automatic).
A feature I didn't ask for. I don't know if I will use it, but I went my way without it as of today.the newpkgfeature.
The FreeBSD Project do not need to consult any of us to implement features they want into their own OS.A feature I didn't ask for.
The FreeBSD Project do not need to consult any of us to implement features they want into their own OS.
The way I see it, FreeBSD is not a community OS, it has a strong community for sure but that's a whole different thing.
The FreeBSD Project do not need to consult any of us to implement features they want into their own OS.
I agree with both of you.If you are "selling" pkgbase as being, in part, a faster solution to current methodologies to maintaining the software it probably behooves you not to make it intentionally much slower.
It seems introducing regressions that affect many users is nowadays accepted in FreeBSD.In some ways, it's a regression and the funny thing here is this also impacts those that don't use pkgbase.
Seems to be technology generally these days. Or am I just turning into a grumpy old man shouting at clouds?we need to break stuff, especialy stuff that works and has been a solved problem for ages, because linuxland is doing it, so it must be good.