Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So I created a .rar file on windows and it's password protected, and now I'm uploading it to a server, how can I unrar that file on the server to work with the password protected file.

I guess tar -xzfwon't work

share|improve this question

migrated from serverfault.com Apr 18 '12 at 0:50

This question came from our site for professional system and network administrators.

    
The tar command opens tar archives that may have been compressed with gzip, bzip2 or something else. If you want to open a rar archive, then you need to use a tool that recognizes the rar format. –  Zoredache Apr 17 '12 at 22:57
add comment

1 Answer

up vote 2 down vote accepted

You'll need to install unrar or unrar-free

sudo apt-get install unrar-free

Then:

unrar-free -x -p password file

share|improve this answer
add comment

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.