Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you compress with lzma at max compression?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Wed Dec 03, 2008 3:57 pm    Post subject: How do you compress with lzma at max compression? Reply with quote

How do you compress with lzma at max compression? I can do the following:

lzma e file file.lzma

But I need the option for super compressed ;)
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Wed Dec 03, 2008 4:51 pm    Post subject: Reply with quote

Lzma understands compression levels (1-9) just like bzip2. "lzma -9" or "lzma --best" is the maximum. Also see the manpage.
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Wed Dec 03, 2008 5:08 pm    Post subject: Reply with quote

zyko wrote:
Lzma understands compression levels (1-9) just like bzip2. "lzma -9" or "lzma --best" is the maximum. Also see the manpage.


Did not like that:

gentoo_x86_32 src # lzma e --best linux-2.6.25-gentoo-r7.tar linux-2.6.25-gentoo-r7.tar.lzma

LZMA 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06

Error: Incorrect command


Usage: LZMA <e|d> inputFile outputFile [<switches>...]
e: encode file
d: decode file
b: Benchmark
<Switches>
-a{N}: set compression mode - [0, 1], default: 1 (max)
-d{N}: set dictionary - [0,30], default: 23 (8MB)
-fb{N}: set number of fast bytes - [5, 273], default: 128
-mc{N}: set number of cycles for match finder
-lc{N}: set number of literal context bits - [0, 8], default: 3
-lp{N}: set number of literal pos bits - [0, 4], default: 0
-pb{N}: set number of pos bits - [0, 4], default: 2
-mf{MF_ID}: set Match Finder: [bt2, bt3, bt4, hc4], default: bt4
-mt{N}: set number of CPU threads
-eos: write End Of Stream marker
-si: read data from stdin
-so: write data to stdout

Error

This works: lzma e -d25 linux-2.6.25-gentoo-r7.tar linux-2.6.25-gentoo-r7.tar.lzma

But I have no idea what level that compression is...
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 675

PostPosted: Wed Dec 03, 2008 5:46 pm    Post subject: Reply with quote

Try using app-arch/lzma-utils instead of app-arch/lzma

The lzma-utils executable's invocations match gzip, bzip2, etc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum