How can I extract multipart RAR files using the command line unrar.exe?

50

13

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)?

xyster

Posted 2011-01-09T06:37:20.977

Reputation:

Answers

55

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

unrar x filename.part1.rar

jayd189

Posted 2011-01-09T06:37:20.977

Reputation: 551

If the archive contains a file foo in the directory bar it will be extracted like that under SUSE. Under Red Hat it will become a file called bar/foo for a pity. – Thorsten Staerk – 2015-10-09T12:58:38.880

11

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.

Søren Lorentzen

Posted 2011-01-09T06:37:20.977

Reputation: 233

3You can use the free (as in freedom) unar too as foolows; unar filename.rar – aairey – 2016-03-10T20:42:39.130

6Strangley, in Debian, the unrar package was able to extract my multi-part rars, but the unrar-free was not. This is a bit confusing, because running the unrar command from the unrar package (which is supposedly not free) states that it is UNRAR 4.10 freeware as you mentioned. Thank you, I have been unable to get this working for quite some time. – bhinesley – 2013-05-21T04:57:49.750

2To follow up, in Debian, if you don't see a package called 'unrar', make sure you're including contrib and non-free in your apt sources. Unrar is a non-free package. – Jeff Welling – 2013-10-12T20:16:58.543