Linux/7-Zip

From Omnia
Jump to navigation Jump to search

p7zip - Very high compression ratio file archiver

wget "http://dag.wieers.com/rpm/packages/p7zip/p7zip-4.57-1.el5.rf.i386.rpm"
wget "http://dag.wieers.com/rpm/packages/p7zip/p7zip-plugins-4.57-1.el5.rf.i386.rpm"
rpm -Uvh p7zip-4.57-1.el5.rf.i386.rpm
rpm -Uvh p7zip-plugins-4.57-1.el5.rf.i386.rpm

Manual:

wget http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2/download
tar -jvxf p7zip_9.20.1_src_all.tar.bz2
cd p7zip_9.20.1
make clean
make install
# make install DEST_HOME=/opt/7zip
./install.sh /usr/local/bin /usr/local/lib/p7zip /usr/local/man /usr/local/share/doc/p7zip
- installing /usr/local/bin/7za
- installing /usr/local/man/man1/7z.1
- installing /usr/local/man/man1/7za.1
- installing /usr/local/man/man1/7zr.1
- installing /usr/local/share/doc/p7zip/README
- installing /usr/local/share/doc/p7zip/ChangeLog
- installing HTML help in /usr/local/share/doc/p7zip/DOCS

Binaries:

7z uses plugins (7z.so and Codecs/Rar29.so) to handle archives.
7za is a stand-alone executable.
7za handles less archive formats than 7z.exe.
7zr is a light stand-alone executable that supports only 7z/LZMA/BCJ/BCJ2.

Usage:

# Extract files
#7zip x [COMPRESSED FILE]
7za x [COMPRESSED FILE]

This can also be used to extract files from an ISO.