Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I uncompress a *.7z file in Ubuntu and keep the directory structure?

share|improve this question

2 Answers 2

up vote 27 down vote accepted

First install the p7zip-full package:

sudo apt-get install p7zip-full

With this, Nautilus should have an option to uncompress 7-Zip Files.

I also recommend p7zip-rar so it also include the RAR files.

This is assuming you want to do it via GUI with Nautilus. If not, after downloading the packages above do the following:

7z x PACKAGE.7z that should eXtract the packages with full path.

share|improve this answer

sudo apt-get install p7zip-full p7zip-rar in the terminal
Or search through the ubuntu software center as 7zip and unrar and install the packages

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.