The prevalent question is:
How do I uncompress and compress a *.7z file ( 7zip file ) in UNIX / Linux ?
Compressing files is a way to create single compressed files available for sending through emails, downloads or just plain backups. We’ve discussed compressing and uncompressing files using the bzip2 utility
7zip is a similar utility. It has its own advantages and disadvantages, which we aren’t going to talk about here. However, this is a quick
yum info on 7zip.
# yum info p7zip Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: repo.umbeehosting.com * epel: www.mirrorservice.org * extras: mirror.sov.uk.goscomb.net * updates: mirror.sov.uk.goscomb.net Available Packages Name : p7zip Arch : x86_64 Version : 9.20.1 Release : 2.el6 Size : 624 k Repo : epel Summary : Very high compression ratio file archiver URL : http://p7zip.sourceforge.net/ License : LGPLv2 and (LGPLv2+ or CPL) Description : p7zip is a port of 7za.exe for Unix. 7-Zip is a file archiver with a very high : compression ratio. The original version can be found at http://www.7-zip.org/.
Compressing files using 7zip
# 7za a backup.7z backup/
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 backup.7z
Compressing backup/picture1.jpg Compressing backup/picture2.jpg Compressing backup/picture3.jpg Compressing backup/picture4.jpg
Everything is Ok
Uncompressing files using 7zip
# 7za e backup.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: backup.7z
Extracting backup/picture1.jpg Extracting backup/picture2.jpg Extracting backup/picture3.jpg Extracting backup
Everything is Ok
Folders: 1 Files: 4 Size: 8880 Compressed: 500