Ubuntu HowTo: How to install 7zip to extract rar files

Original Source Link

How do I install 7zip through Terminal to extract rar files?

I don’t know why would you like specifically 7-zip’s binary to extract RAR, but here we go:

To unrar files with… unrar:

sudo apt-get install unrar-free
unrar e some.rar

To extract rar files with 7-zip:

sudo apt-get install p7zip-full
7z x some.rar

e and x mean extract obviously.

You may use p7zip. And you can install p7Zip using command : sudo apt-get install p7zip.

To extract RAR archives, you’ll need to install package “p7zip-rar”, too.

Install it using : sudo apt-get install p7zip-rar

Or you can get it done in single command : sudo apt-get install p7zip p7zip-rar

Read p7zip manual for more information: man p7zip

Use the following command to Install 7Zip:

$ sudo apt-get install p7zip-full

Extract files using 7zip:

$ 7z e example.zip

(Or use the x option instead of e to preserve file paths).

Compress files using 7zip:

$ 7z a compress.zip

For more information, visit the reference

Tagged : /

Ubuntu HowTo: Corrupted 7z file

Original Source Link

I recently wanted to try out Fedora. So I transfered all my files to it via USB. Then I got frustrated with it, placed all my files in a 7z archive and then copied them back to the drive. Now, every time I try to open the archive, “an error occurred while loading the archive” Thanks for your help

There is no password on the archive.

ls -alF file.7z

-rw-r--r-- 1 jesse jesse 2422670837 Nov  3 22:58 file.7z

7z t file.7z

7-Zip [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,4 CPUs)

Processing archive: jesse.7z

Error: Can not open file as archive

$ 7z l file.7z | head -15

7-Zip [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,4 CPUs)

Error: jesse.7z: Can not open file as archive

Errors: 1

There are two 7zip programs in the Ubuntu archives: p7zip and p7zip-full. Make sure p7zip-full is installed. Reboot to make double sure.

Otherwise, try copying the archive to a Windows recognized filesystem on a pen drive or something and try it on a Windows machine with 7z installed.

If the above procedures do not work, the .7z file is incomplete or damaged and must be redone. If you deleted your data, unfortunately, your only hope is to recover as much of the most valuable pieces as possible from the medium you got it from in the first place.

The error “an error occurred while loading the archive” surely means the file is corrupted. No doubt about it!

If you want to recover your data from corrupt 7z archive, you must Google some 3rd party recovery software. I can recommend you SysInfoTools Archive Recovery software here. Try its free demo version first to scan your corrupt 7z file. In demo version, you will come to know how much data will be recovered from the corrupt 7z file. To save the data, you need full version.

Try its free demo version first.

Tagged : / /