NetBSDfr / pkgin

pkgin's official github repository
130 stars 40 forks source link

pkgin should allow user prioritizing of pkg_summary archive formats #112

Closed goshhhy closed 2 years ago

goshhhy commented 3 years ago

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.

abs0 commented 2 years ago

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

jperkin commented 2 years ago

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!