71

Is there a way to extract all RAR files using unrar.exe via the command line without passing it each part?

I have lots of multipart RAR files in mixed formats: .part1.rar, .part2.rar or .rar, .r00, .r01, etc.

Is there a trick I'm missing or this is something only possible from WinRAR (where you just right click Extract and it knows to extract from the other parts as well)?

Hennes
  • 65,804
  • 7
  • 115
  • 169

4 Answers4

85

I've had this very problem before and here is the answer.

unrar x filename.part1.rar
slhck
  • 235,242
jayd189
  • 851
15

I know this is an old question, but I did it with just the following command, using UNRAR 4.10 freeware

unrar e filename.rar

This handled the multiparts just fine.

4

Coming back to this in 2023, with Ubuntu 22.04, neither of the other answers worked for me. unrar said "Skipped" with the e option, and simply "Failed" with the x option.

However, unar filename.part1.rar worked perfectly.

Draconis
  • 141
0

You can use unrar x filename.part[0|00]1.rar, this will extract your files with full path.

Using unrar e filename.part[0|00]1.rar will just extract without full path.