You are not logged in.

#1 2011-09-17 18:02:16

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

xz packages

I was just seeing how many packages i have in my pacman cache, and found that most packages have been switched to .tar.xz format.

But, some haven't and the most interesting was

xz-5.0.3-1-i686.pkg.tar.gz

lol

So, any reason why some packages are still using .tar.gz instead, since it's been about 18 months since the switch began.

Offline

#2 2011-09-17 18:12:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: xz packages

If you're running pacman pre-3.3 you need *.pkg.tar or *.pkg.tar.gz packages.
http://projects.archlinux.org/pacman.gi … ?id=v3.3.0

xz archive format supported for packages and databases

The current pacman and some other packages are still kept as *.pkg.tar.gz.
http://mailman.archlinux.org/pipermail/ … 00234.html

Last edited by karol (2011-09-17 18:24:51)

Offline

#3 2011-09-17 18:44:41

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: xz packages

Sounds like a henn-egg problem. I never thought about this, but it might be fatal in one or the other recovery situation to have xz packed as .xz :-D

Offline

#4 2011-09-17 18:51:13

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: xz packages

it would be awesome if all packages and repo databases are xz-compressed


"After you do enough distro research, you will choose Arch."

Offline

#5 2011-09-17 18:52:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: xz packages

taylorchu wrote:

it would be awesome if all packages and repo databases are xz-compressed

Why?

Offline

#6 2011-09-17 19:01:34

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: xz packages

why?
although xz takes more time to decompress, it has much better compress ratio. Therefore pacman -Syy will be faster.


"After you do enough distro research, you will choose Arch."

Offline

#7 2011-09-17 19:09:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: xz packages

taylorchu wrote:

why?
although xz takes more time to decompress, it has much better compress ratio. Therefore pacman -Syy will be faster.

For the biggest db - community.db - it's a difference of 455K for gzip v. 328K for xz.
If you're using Arch, you should be updating regularly so some 200K more for dbs shouldn't matter.

Offline

#8 2011-09-17 19:33:04

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: xz packages

Awebb wrote:

Sounds like a henn-egg problem. I never thought about this, but it might be fatal in one or the other recovery situation to have xz packed as .xz :-D

This. xz and pacman are kept in gzip form to provide clean upgrade paths.

Offline

#9 2011-09-17 23:03:29

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: xz packages

@karol
100kb out of 400kb is 25%. It is about 2-3 secs waiting time for laptop wireless.

@falconindy

This. xz and pacman are kept in gzip form to provide clean upgrade paths.

how does that work?


"After you do enough distro research, you will choose Arch."

Offline

#10 2011-09-17 23:22:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,658
Website

Re: xz packages

Old installs do not have xz support in libarchive.   So there are sets of packages that need to be kept as gzip files if we want to have people able to upgrade from them.

Offline

#11 2011-09-17 23:34:32

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: xz packages

so for this reason, I purpose "arch deadline" (run pacman -Syu by 2011/12/31 23:59:59)  smile
2012 will be the year of xz-compressed arch.


"After you do enough distro research, you will choose Arch."

Offline

#12 2011-09-17 23:40:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: xz packages

taylorchu wrote:

so for this reason, I purpose "arch deadline" (run pacman -Syu by 2011/12/31 23:59:59)  smile
2012 will be the year of xz-compressed arch.

This is up to the devs, they should know if there's a usecase why somebody would not update for a long time.

Again, If you update regularly, you download many MBs of packages, 200K doesn't make a difference.

Offline

#13 2011-09-18 06:11:10

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: xz packages

Hmm.. since arch is rolling release, most people update it quite regularly. If someone really updates arch after a long time, they'll likely have a lot of headache. For how long do the devs intend to keep these few critical packages in .tar.gz format? Not that it matters much, but there should be a rationale for the decisions.

This since the arch devs are usually the first ones to set the precedence, when it comes to adopting newer version of software or newer software themselves, as seen in the case of python3, gnome3 etc.

Offline

#14 2011-09-18 06:44:07

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,658
Website

Re: xz packages

Well... lets say a rough guideline is keeping them until at least both the current and previous installer versions have packages that support this.   So maybe after the next installer release.

Offline

#15 2011-09-18 22:46:01

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: xz packages

Really, we need no rationale. We can do what we want. I have no problem with them always being gzip-compressed, and this is one of the least important things we need to worry about.

Offline

Board footer

Powered by FluxBB