LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-05-2007, 10:48 AM   #1
brazilnut
Member
 
Registered: Nov 2007
Posts: 113

Rep: Reputation: 16
small open source archive code


Hi, i'm looking for some small independent source for an archive facility to use within some code. Ideally it'll also compress, i've been looking at bzip2, gzip, tar, sharutils, etc from GNU but the dependents are many (yet there possible). I've got some source for LZW which is very small, but the archive's tend to be a third bigger than the original (and I don't believe it handles directory structures)(I've just checked and it's actually just compression (not archiver)... and this example actually came out half the size, lol).

Anyone have any suggestions / examples?


ARCHIVE: ar, cpio, shar, tar, LBR
COMPRESS: bzip2, gzip, LZMA, lzop, rzip, SQ, compress, LZW
BOTH: ARC, Cabinet, LHA · LZX, RAR, zoo
(src http://en.wikipedia.org/wiki/List_of_archive_formats)
 
Old 11-05-2007, 10:54 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu (x86), Debian (PPC)
Posts: 3,528

Rep: Reputation: 60
How about zip files?
 
Old 11-05-2007, 12:00 PM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 51
Quote:
Originally Posted by brazilnut View Post
I've got some source for LZW which is very small, but the archive's tend to be a third bigger than the original.
You probably compressed very small data file. Try on bigger one.

Check this: http://arj.sourceforge.net/
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Open-Xchange Brings User-Friendly Open Source Collaboration Software to Small Businesses LXer Syndicated Linux News 0 07-16-2007 05:46 PM
LXer: Open Source coders caught stealing Open Source code LXer Syndicated Linux News 1 04-06-2007 07:08 AM
LXer: Krugle offers code search engine for open source, with open source LXer Syndicated Linux News 0 02-27-2007 08:04 AM
LXer: Voip Encryption, source code open source LXer Syndicated Linux News 0 07-09-2006 03:21 PM
where to find the source code for a small easily loadable filesystem ramya272 Linux - Newbie 0 02-26-2004 10:16 AM


All times are GMT -5. The time now is 05:24 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration