apt.conf CompressionTypes
NoOp
glgxg at sbcglobal.net
Sat May 22 21:20:58 UTC 2010
On 05/20/2010 01:47 PM, Chuck Peters wrote:
> While upgrading a slow 233MHz machine I noticed the changelog says we can
> now prefer less CPU intensive compression of the deb packages.
>
> apt (0.7.24) unstable; urgency=low
>
> * Already included in the last version but now with better documentation
> is the possibility to add/prefer different compression types while
> downloading archive informations, which can decrease the time needed for
> update on slow machines. See apt.conf (5) manpage for details.
>
>
> I did a little googling, reading man pages and greping files and it's not
> clear to me how I should implement this feature or if it would do any good.
>
>
> Should I just put the "Acquire::CompressionTypes::Order { "lzma"; "gz"; };"
> in any /etc/apt/apt.con.d/file?
/etc/apt/apt.conf
>
> Are the ubuntu archives setup to allow this compression preference?
I _think_ that you'd configure as in this example:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/71746
Acquire::CompressionTypes {
".gz";
".bz2";
}
I have an apt.conf file in /etc/apt/ (/etc/apt/apt.conf) that I've
modified to have apt downloads not to exceed a certain speed that
follows the same:
$ cat /etc/apt/apt.conf
//---------------------------
// Options for limiting Update Manager download speeds
Acquire
{
Queue-Mode "access"; // host|access
http
{
Dl-Limit "100"; // 100Kb/sec maximum download rate
};
};
//--------------------------
The '//' marks are in my file are for comments only.
And /usr/share/doc/apt/examples/config-index shows:
CompressionTypes
{
bz2 "bzip2";
lzma "lzma";
gz "gzip";
Order { "gz"; "lzma"; "bz2"; };
};
But
http://manpages.ubuntu.com/manpages/lucid/en/man5/apt.conf.5.html
and /usr/share/doc/apt/examples/apt-https-method-example.conf shows
THE ACQUIRE GROUP
The Acquire group of options controls the download of packages and the
URI handlers.
Acquire::CompressionTypes::FileExtension "Methodname";
Acquire::CompressionTypes::Order { "lzma"; "gz"; };
so perhaps that will work instead. As for the repositories, I think they
only use .gz and .bz2. So if you prefer bz2 first;
Acquire::CompressionTypes::Order { "bz2"; "gz"; };
or
CompressionTypes
{
bz2 "bzip2";
lzma "lzma";
gz "gzip";
Order { "bz2"; "gz"; };
};
?? I don't actually know. But perhaps all this will spark someone to
come along who does.
This may be of interest:
http://lists.debian.org/deity/2009/11/msg00115.html
[marked as done (apt: Acquire::CompressionTypes causes infinite loop)]
but that refers to the usr using 0.7.23 & the developer recommends
0.7.24. 0.7.24 is no longer showing as an option (only 23 and 25):
https://launchpad.net/ubuntu/+source/apt
so maybe 24 got pulled? Also, Ubuntu's 23 adds the patch mentioned in
71746.
More information about the ubuntu-users
mailing list