LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2009, 05:29 AM   #1
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
Cool New package format for slackware 13?


Quote:
Originally Posted by current-changelog
a/pkgtools-12.34567890-noarch-1.tgz: Added support for .tbz, .tlz, and .txz
packages in addition to the traditional .tgz format.
It seems like Patrick is considering other options.
Why do you think other compression formats would be useful?
 
Old 04-14-2009, 06:00 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Unfortunately the other formats tend to be slower at decompressing than gz, but they also have better compression ratios. It's a trade-off. Maybe to speed it up a C program should be made, kinda like spkg. That would speed up the install phase enough that the decompression phase may not matter.
 
Old 04-14-2009, 06:56 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,460
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Overdue, IMO.

Slackware's getting bigger. I guess there has to be better compression alternatives if it's going to need to continue to be able to fit on a DVD.
 
Old 04-14-2009, 07:03 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,900

Rep: Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023
I can understand wanting to move to a newer/stronger compressions algorithm such as bz2 to be able to fit more onto the dvd media, but supporting 4 of them seems a little over the top and decidedly unslackwarelike. Oh well, I guess he has his reasons. Perhaps he's just experimenting with them all and will choose one of them prior to the 13.0 release.
 
Old 04-14-2009, 07:16 AM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,460
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by GazL View Post
but supporting 4 of them seems a little over the top and decidedly unslackwarelike.
Really? Slackware supports more than 4 compression formats. Has done for quite some time. Extending the package manager in this way only makes sense. To me, anyway.
 
Old 04-14-2009, 07:31 AM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,900

Rep: Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023
Quote:
Originally Posted by rkelsen View Post
Really? Slackware supports more than 4 compression formats. Has done for quite some time. Extending the package manager in this way only makes sense. To me, anyway.
lol, you know damn well what I meant!

I just don't like the idea of having more than one format for a package (even if it is only the compression used that changes). It's bad enough with .deb, .rpm and all the others without slackware having several to choose from all of its own.

Anyway, as I said, he's probably just trying them all out to see which is best.
 
Old 04-14-2009, 07:46 AM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,460
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by GazL View Post
lol, you know damn well what I meant!
... by "unslackwarelike" ??? No. Who decides what is "Slackwarelike"?
Quote:
Originally Posted by GazL View Post
I just don't like the idea of having more than one format for a package (even if it is only the compression used that changes). It's bad enough with .deb, .rpm and all the others without slackware having several to choose from all of its own.
I don't see a problem with it. Personally, I think it opens up some positive options. Back when I first started using Slackware (v7.0), I changed the scripts to support tbz packages myself.
Quote:
Originally Posted by GazL View Post
Anyway, as I said, he's probably just trying them all out to see which is best.
Maybe. There are better ways of benchmarking compression formats though.

What's to say that PV is going to use any of the formats himself? Support for something doesn't automatically mean anything. Perhaps people are jumping to conclusions here. Slackware supports rpm packages, but does PV ship any?

Last edited by rkelsen; 04-14-2009 at 07:47 AM.
 
Old 04-14-2009, 08:11 AM   #8
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by rkelsen View Post
Slackware supports rpm packages, but does PV ship any?
Can you do
Code:
installpkg foo.bar-*.rpm
This is modifying the slackware package tools, not shipping an rpm-4.4.2.3-i486-2.tgz package.
 
Old 04-14-2009, 08:44 AM   #9
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
Quote:
Why do you think other compression formats would be useful?
Perhaps the answer lies in this entry in the Changelog.
Quote:
usb-and-pxe-installers/: Rebuilt usbboot.img with newly compiled
kernel modules. Added support for .tbz, .tlz, and .txz packages.
 
Old 04-14-2009, 09:10 AM   #10
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,900

Rep: Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023
Quote:
Originally Posted by rkelsen View Post
... by "unslackwarelike" ??? No. Who decides what is "Slackwarelike"?
)
Well, within the context of trying to communicate my opinion, It's my definition that matters as that's what will convey the message I was trying to put across. I thought the regulars here would understand what I meant by that, but I guess it's a bit too generic a term and may mean different things to different people.

Anyway, to make myself clearer; to me, 'Slackwarelike' means following the "keep it simple" philosophies.

Having One single package format is significantly simpler to me than having four supported formats to choose from. I really don't mind which of the four is used, but I do believe that there should only be one 'official' format used for the sake of simplicity. There's nothing to suggest that this isn't still the case so it's really not worth making a big deal out of this. I just posted my comment as I thought this change was a little strange that's all.


You're quite right about adding support for, and adopting the use of being completely different things, but if you're not going to do the latter, why do the former?

As ever, this is just my personal opinion which has differed to that of others on here before and I'm sure will do again in future.
 
Old 04-14-2009, 10:43 AM   #11
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
So does this mean that Slackware will now support FreeBSD packages (.tbz)? I don't know of any Linux distros that use .tbz, only FreeBSD. I don't even know what .tlz, and .txz are from. Never heard of those.
 
Old 04-14-2009, 11:23 AM   #12
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by Jeebizz View Post
So does this mean that Slackware will now support FreeBSD packages (.tbz)? I don't know of any Linux distros that use .tbz, only FreeBSD. I don't even know what .tlz, and .txz are from. Never heard of those.
Look at makepkg, then you will see that there is basically no difference. The tar file is generated the same way in all formats, the only difference is what compression is applied to the tar file.

I see nothing else changed in the way the package is created with the new pkgtools.
 
Old 04-14-2009, 01:23 PM   #13
joutlancpa
Member
 
Registered: Apr 2009
Location: Orlando, FL
Distribution: Scientific Linux 6 x64
Posts: 211
Blog Entries: 1

Rep: Reputation: 31
From a newbie: KISS, one format....I'm having trouble remembering the one format....lol
 
Old 04-14-2009, 02:05 PM   #14
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
I'll echo titopoquito a bit: It's not really a new package format, just alternate compression schemes. It's still a tarball of new files to be extracted to / and has a special install/ dir with doinst.sh and slack-desc. When I saw this thread I first thought that The Man might have been switched to PET packages or support some dependency checking (and thus invalidate current existing packages). I sometimes wish that pkgtools supported a dorem.sh for extended cleanup when uninstalling the package.

Anyway, this compression support is rather exciting to me cause now src2pkg can detect if installpkg supports these alternate compression schemes and make packages with the "best" compression possible.

Smaller packages are always better, no matter what. It's rather silly to worry about decompression speed since installing a package is inherently slow. Memory usage does matter somewhat though. It's not good for a package installation to take over the system completely.
 
Old 04-14-2009, 06:24 PM   #15
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
I remember when Archlinux was going to do the same thing.

Here's one of the tests performed.

Quote:
gzip -9 openoffice-base-3.0.0-4-i686.pkg.tar 48,20s user 0,30s system 99% cpu 48,609 total
lzma -1 openoffice-base-3.0.0-4-i686.pkg.tar 50,16s user 0,42s system 99% cpu 50,969 total
bzip2 -1 openoffice-base-3.0.0-4-i686.pkg.tar 58,37s user 0,34s system 99% cpu 58,986 total
lzma -2 openoffice-base-3.0.0-4-i686.pkg.tar 72,19s user 0,36s system 99% cpu 1:12,60 total

decompression:
gzip -d openoffice-base-3.0.0-4-i686.pkg.tar.gz 3,33s user 0,39s system 98% cpu 3,783 total
lzma -d openoffice-base-3.0.0-4-i686.pkg.tar.lzma 14,39s user 0,36s system 99% cpu 14,839 total
bzip2 -d openoffice-base-3.0.0-4-i686.pkg.tar.bz2 18,61s user 0,44s system 98% cpu 19,260 total

sizes:
303M openoffice-base-3.0.0-4-i686.pkg.tar
141M openoffice-base-3.0.0-4-i686.pkg.tar.gz
139M openoffice-base-3.0.0-4-i686.pkg.tar.bz2
129M openoffice-base-3.0.0-4-i686.pkg.tar.lzma
119M openoffice-base-3.0.0-4-i686.pkg.tar.lzma-2
lzma is interesting, there's a ~9% file size reduction in the case above. RPM (Suse) already uses lzma

Of course some things compress better than others, but even a 5% size reduction on 4gigs of data adds up

And the reason (I assume ) is because of this update
l/libarchive-2.6.2-i486-1.tgz: Added libarchive-2.6.2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a compiled program in tgz format into an rpm package. xode Linux - Software 1 01-04-2008 12:54 PM
LXer: Linux Standard Base plans cross-format package API LXer Syndicated Linux News 0 01-17-2007 10:54 PM
apt package repositories/format question Michael_S Debian 2 12-05-2006 02:40 PM
Native package format wombat53 Slackware 8 06-13-2005 07:10 PM
Possible NEW package format Kocil Slackware 21 09-11-2004 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration