NetBSDfr / pkgin

pkgin's official github repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pkgin should allow user prioritizing of pkg_summary archive formats

goshhhy opened this issue · comments

i work with pkgin on several slow machines (<200mhz), and between gz, bz2, and xz, bz2 is by far the slowest archive format to extract - so much so that with bz2 the server typically gives up and closes the connection before the operation completes.

i would greatly appreciate having the ability to configure or pass a flag to pkgin so that it prefers a pkg_summary.gz file over a pkg_summary.bz2 file without having to build a custom patched version on all of my machines.

I'd go so far as to say this would benefit from an selectable default as well - either build time based on CPU arch, or runtime based on available memory

This has been added, and I've updated the pkgsrc package. It is enabled by default on a list of architectures (which other developers may want to add to), but if yours is not listed then you can also use the new pkgin-prefer-gzip option to enable it.

Thanks!