Difference between revisions of "Mengekstrak File 7z di Ubuntu"

From OnnoWiki
Jump to navigation Jump to search
(New page: Sumber: http://www.thegeekstuff.com/2010/04/7z-7zip-7za-file-compression/ Question: How do I uncompress a *.7z file ( 7zip file ) in UNIX / Linux ? Can you explain with a simple example?...)
 
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
Verify whether you have 7za command on your system.
 
Verify whether you have 7za command on your system.
  
# whereis 7za
+
# whereis 7za
7za: /usr/bin/7za /usr/share/man/man1/7za.1.gz
+
7za: /usr/bin/7za /usr/share/man/man1/7za.1.gz
  
 
If you don’t have 7za command, install p7zip package as shown below.
 
If you don’t have 7za command, install p7zip package as shown below.
 
Install p7zip to unzip *.7z files on Fedora
 
Install p7zip to unzip *.7z files on Fedora
  
# yum install p7zip
+
# yum install p7zip
  
 
Install p7zip to unzip *.7z files on Debian and Ubuntu
 
Install p7zip to unzip *.7z files on Debian and Ubuntu
  
$ sudo apt-get install p7zip
+
$ sudo apt-get install p7zip
 +
$ sudo apt-get install p7zip-full
 +
 
  
 
Uncompressing a *.7z 7zip files in Linux using 7za
 
Uncompressing a *.7z 7zip files in Linux using 7za
  
$ 7za e myfiles.7z
+
7za e FB0G_Andro-ID_V3.3-RC3.7z  
 
 
7-Zip (A) 9.04 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-05-30
 
p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU)
 
 
 
Processing archive: ../../myfiles.7z
 
  
Extracting  myfiles/test1
+
Hasilnya
Extracting  myfiles/test2
 
Extracting  myfiles/test
 
Extracting  myfiles
 
  
Everything is Ok
+
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,2 CPUs)
 +
 +
Processing archive: FB0G_Andro-ID_V3.3-RC3.7z
 +
 +
Everything is Ok
 +
 +
Size:      446557148
 +
Compressed: 184807619
  
Folders: 1
 
Files: 3
 
Size:      7880
 
Compressed: 404
 
  
 
     7za – command name
 
     7za – command name
Line 47: Line 45:
 
Creating a 7zip compression file in Linux
 
Creating a 7zip compression file in Linux
  
$ 7za a myfiles.7z myfiles/
+
$ 7za a myfiles.7z myfiles/
 
 
7-Zip (A) 9.04 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-05-30
 
p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU)
 
Scanning
 
 
 
Creating archive myfiles.7z
 
 
 
Compressing  myfiles/test1
 
Compressing  myfiles/test2     
 
  
Everything is Ok
+
7-Zip (A) 9.04 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-05-30
 +
p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU)
 +
Scanning
 +
 +
Creating archive myfiles.7z
 +
 +
Compressing  myfiles/test1
 +
Compressing  myfiles/test2     
 +
 +
Everything is Ok
  
 
Files and sub directories of myfiles/ will be added to the myfiles.7z.
 
Files and sub directories of myfiles/ will be added to the myfiles.7z.

Latest revision as of 09:12, 4 June 2013

Sumber: http://www.thegeekstuff.com/2010/04/7z-7zip-7za-file-compression/


Question: How do I uncompress a *.7z file ( 7zip file ) in UNIX / Linux ? Can you explain with a simple example?

Answer: Use 7za command to unzip a 7z file ( 7zip file ) on Unix platform as shown below.

Verify whether you have 7za command on your system.

# whereis 7za
7za: /usr/bin/7za /usr/share/man/man1/7za.1.gz

If you don’t have 7za command, install p7zip package as shown below. Install p7zip to unzip *.7z files on Fedora

# yum install p7zip

Install p7zip to unzip *.7z files on Debian and Ubuntu

$ sudo apt-get install p7zip
$ sudo apt-get install p7zip-full


Uncompressing a *.7z 7zip files in Linux using 7za

7za e FB0G_Andro-ID_V3.3-RC3.7z 

Hasilnya

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,2 CPUs)

Processing archive: FB0G_Andro-ID_V3.3-RC3.7z

Everything is Ok

Size:       446557148
Compressed: 184807619


   7za – command name
   e – specifies the 7z to be extracted
   myfiles.7z – is the file that is to be extracted

Creating a 7zip compression file in Linux

$ 7za a myfiles.7z myfiles/
7-Zip (A) 9.04 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-05-30
p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU)
Scanning

Creating archive myfiles.7z

Compressing  myfiles/test1
Compressing  myfiles/test2      

Everything is Ok

Files and sub directories of myfiles/ will be added to the myfiles.7z.

   a – add to archive
   file.7z – archive file to which these files and dir from dir1 will be added to.




Referensi