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.

On windows command-line I can extract archives like this:

7za e somefile.zip

I know 7zip supports .rar in the gui but can it be done in commandline mode? Thanks

share|improve this question

1 Answer 1

Yes, you can extract .rar archives from command line but only if you use 7z not 7za:

7za.exe (a = alone) is a standalone version of 7-Zip. 7za.exe supports only 7z, lzma, cab, zip, gzip, bzip2, Z and tar formats. 7za.exe doesn't use external modules.

The above applies to both Linux and Windows and the syntax is identical:

Windows:

C:\Users\me>7z e dll-test.rar
7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Processing archive: dll-test.rar

Extracting  mso97.dll

Everything is Ok

Size:       3782416
Compressed: 1857291

Linux:

[me ~]$ 7z e dll-test.rar 

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

Processing archive: dll-test.rar

Extracting  mso97.dll

Everything is Ok

Size:       3782416
Compressed: 1857291
share|improve this answer
    
Fair warning: 7za.exe doesn't support .rar only the 7z.exe does. –  Matt Clarkson Feb 18 at 15:00

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.