LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-16-2005, 06:14 PM   #1
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
Question best compression format


What is the best (makes the file smallest/can be reliably decompressed) compression format?

gzip seems to be the standard for linux
zip for windows
and bzip2

from what I can tell zip compresses the least and bzip2 compresses the most, but I some som files that were .xdelta on the KDE download sites, and they seemed to be compressed a whole lot.

I googled xdelta but it looked like some file management something or other and not a means of compression. Has anyone had experiance with this file type, and is it better that bzip2?
 
Old 04-16-2005, 06:23 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
I read once where rzip compressed the best but was slower comparing to bzip and gzip. I think they said overall bzip was overall the better of the three, it was faster and compressed better than gzip but overall rzip could get the largest files down to a minimal size of compression.
 
Old 04-16-2005, 11:27 PM   #3
AndrewZorn
Member
 
Registered: Apr 2005
Posts: 108

Rep: Reputation: 15
i like winrar
(is avail for linux but ive never used it on linux)
 
Old 04-17-2005, 01:00 PM   #4
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
I dowloaded rzip. Suprisingly the website said that it was faster than bz2? Rar, it seems, you have to pay for, so that's out of the picture.

The freshmeat page for xdelta said:

Xdelta is a complete system for managing delta-compressed storage and network transport. Using the Xdelta system, you can easily incorporate this functionality into your application. The system offers improvements over the use of RCS for back-end delta-compressed storage, common in version control systems, and also provides primitive support for delta-compressed transport in a manner similar to CVSup.

so it's definatly not a means of compression, but I still have no clue what it is. I try looking up the delta compression that the freshmeat site mentioned
 
Old 04-17-2005, 02:03 PM   #5
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Quote:
Originally posted by dosnlinux
Rar, it seems, you have to pay for, so that's out of the picture.
Nope... If you can't get it with your distro's package system(which is unlikely), download it from here:
http://www.downseek.com/download/20086.asp

In my opinion, if you want to distribute a compressed file, use RAR. Otherwise, bz2 is perfect.
One of the advantages of RAR over ZIP is that you can decompress files even when they're not fully downloaded.

Regards,
 
Old 04-17-2005, 02:23 PM   #6
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Rep: Reputation: 15
I could be mistaken, but from the description you posted, I think xdelta is like CVS. It's for managing different versions of the same file. Each new version is stored as the difference between it and the previous version. So if you have file.txt.v1 with 1000 lines of text, and you add one line to make file.txt.v2, then the system only stores the line you added for the v2 file. This way you can store 6 versions of one file without storing a mostly similar file 6 times.

Hopes this makes sense.
 
Old 04-19-2005, 03:38 PM   #7
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by lokee
Nope... If you can't get it with your distro's package system(which is unlikely), download it from here:
http://www.downseek.com/download/20086.asp
what exactly does it mean by trial? If it's the whole 30 day thing I'd really rather not bother since I have bz2 and don't plan on distibuting much.

Quote:
Originally posted by Itzac
I could be mistaken, but from the description you posted, I think xdelta is like CVS. It's for managing different versions of the same file. Each new version is stored as the difference between it and the previous version. So if you have file.txt.v1 with 1000 lines of text, and you add one line to make file.txt.v2, then the system only stores the line you added for the v2 file. This way you can store 6 versions of one file without storing a mostly similar file 6 times.

Hopes this makes sense.
Oooooohhhhh. So that what CVS does.
Yep. that's what Xdelta is. It's like CVS only for delta compressed stuff. It's used a lot in security patches from what I've seen. Now, to find out where to find out about delta compression

Delta's supposed to compress a whole lot.
 
Old 04-19-2005, 06:47 PM   #8
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Actually, it works forever!
I noticed you use slackware, get the corresponding package at:
http://kreiger.linuxgods.com/slackpack/ap/comp/

But as you say, you're probably better off using bz2.

Regards,
 
Old 04-20-2005, 09:12 AM   #9
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
Well delta is a type of compression but it's really hard to find a way to use it, so I dont plan on using it for anything really, especially since I I lose the downloaded file it'll be a pain to find.

Thank you everyone for your help. I'll try rzip and see how that works, but I'll probably end up sticking to the standard .gz/.bz2 on most things.

Last edited by dosnlinux; 04-20-2005 at 09:17 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 06:30 AM
Converting wma format to mp3 format. fakie_flip Linux - General 6 10-02-2005 07:49 PM
replace empty function from the old format to the new format powah Programming 4 07-12-2005 08:07 PM
Format Problems Saving Star Office Docs in Word Format kkempter Linux - Software 4 08-27-2003 04:23 PM
RH7.2 install & 'invalid compression format' ajayn Linux - Software 5 03-16-2002 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:08 PM.

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