Extract or uncompress 7z 7zip files on Ubuntu 13.04 12.10 12.04 11.10 11.04

Extract or uncompress 7z 7zip files on Ubuntu 13.04 12.10 12.04 11.10 11.04

7zip

Step 1: Install 7zip on Ubuntu

root@ip-10-48-234-13:~# sudo apt-get install p7zip
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libjpeg-turbo8 libjpeg8 ttf-dejavu-core dbconfig-common libmcrypt4 libt1-5 fontconfig-config libxpm4 libgd2-xpm libfontconfig1
Use ‘apt-get autoremove’ to remove them.
Suggested packages:
p7zip-full
The following NEW packages will be installed:
p7zip
0 upgraded, 1 newly installed, 0 to remove and 72 not upgraded.
Need to get 373 kB of archives.
After this operation, 1,009 kB of additional disk space will be used.
Get:1 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise/universe p7zip amd64 9.20.1~dfsg.1-4 [373 kB]
Fetched 373 kB in 1s (265 kB/s)
Selecting previously unselected package p7zip.
(Reading database … 48424 files and directories currently installed.)
Unpacking p7zip (from …/p7zip_9.20.1~dfsg.1-4_amd64.deb) …
Processing triggers for man-db …
Setting up p7zip (9.20.1~dfsg.1-4) …
root@ip-10-48-234-13:~#

 

root@ip-10-48-234-13:~# apt-get install p7zip-full
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libjpeg-turbo8 libjpeg8 ttf-dejavu-core dbconfig-common libmcrypt4 libt1-5 fontconfig-config libxpm4 libgd2-xpm libfontconfig1
Use ‘apt-get autoremove’ to remove them.
Suggested packages:
p7zip-rar
The following NEW packages will be installed:
p7zip-full
0 upgraded, 1 newly installed, 0 to remove and 72 not upgraded.
Need to get 1,561 kB of archives.
After this operation, 3,995 kB of additional disk space will be used.
Get:1 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise/universe p7zip-full amd64 9.20.1~dfsg.1-4 [1,561 kB]
Fetched 1,561 kB in 1s (1,309 kB/s)
Selecting previously unselected package p7zip-full.
(Reading database … 48486 files and directories currently installed.)
Unpacking p7zip-full (from …/p7zip-full_9.20.1~dfsg.1-4_amd64.deb) …
Processing triggers for man-db …
Setting up p7zip-full (9.20.1~dfsg.1-4) …
root@ip-10-48-234-13:~#

2. Test extract and uncompress 7z files

root@ip-10-48-234-13:~# wget http://downloads.sourceforge.net/sevenzip/7z920_extra.7z
–2013-05-13 10:22:55– http://downloads.sourceforge.net/sevenzip/7z920_extra.7z
Resolving downloads.sourceforge.net (downloads.sourceforge.net)… 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.20/7z920_extra.7z [following]
–2013-05-13 10:22:55– http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.20/7z920_extra.7z
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response… 302 Found
Location: http://heanet.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7z920_extra.7z [following]
–2013-05-13 10:22:56– http://heanet.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7z920_extra.7z
Resolving heanet.dl.sourceforge.net (heanet.dl.sourceforge.net)… 193.1.193.66, 2001:770:18:aa40::c101:c142
Connecting to heanet.dl.sourceforge.net (heanet.dl.sourceforge.net)|193.1.193.66|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 520477 (508K) [application/x-7z-compressed]
Saving to: `7z920_extra.7z’100%[===========================================================================================================================================================>] 520,477 2.21M/s in 0.2s2013-05-13 10:22:56 (2.21 MB/s) – `7z920_extra.7z’ saved [520477/520477]root@ip-10-48-234-13:~#

Extract that file:

root@ip-10-48-234-13:~# 7za e 7z920_extra.7z
7-Zip (A) [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU)Processing archive: 7z920_extra.7zExtracting Installer/cr.bat
Extracting Installer/config.txt
Extracting FAR/far7z.txt
Extracting history.txt
Extracting License.txt
Extracting readme.txt
file readme.txt
already exists. Overwrite with
Installer/readme.txt?
(Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? Y
Extracting Installer/readme.txt
Extracting FAR/far7z.reg
Extracting FAR/7zToFar.ini
Extracting FAR/7-ZipEng.hlf
Extracting FAR/7-ZipRus.hlf
Extracting FAR/7-ZipEng.lng
Extracting FAR/7-ZipRus.lng
Extracting 7zr.exe
Extracting FAR/7-ZipFar.dll
Extracting FAR/7-ZipFar64.dll
Extracting x64/7za.dll
file 7za.dll
already exists. Overwrite with
7za.dll?
(Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? A
Extracting 7za.dll
Extracting x64/7zxa.dll
Extracting 7zxa.dll
Extracting 7zS.sfx
Extracting 7zS2.sfx
Extracting 7zS2con.sfx
Extracting 7zSD.sfxEverything is OkFiles: 24
Size: 2131443
Compressed: 520477
root@ip-10-48-234-13:~#

That’s it . Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>