LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2010, 06:45 AM   #1
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Rep: Reputation: 15
Can't Unrar archive


Hello,

I've downloaded some torrents, and someone CONVENIENTLY made them a multiple file archive instead of a single file.

I've tried unrar -x <filename>-part1.rar, which it says it completes, then I don't see the file. What do I need to do? WinRAR usually decompresses them just fine, but on Linux is where I have the problem.

More importantly, why on Earth would anybody do this?
 
Old 02-09-2010, 08:33 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by kuriharu View Post
I've tried unrar -x <filename>-part1.rar
'man unrar' says "-x" means excluding a file from decompression: try "e"?
 
Old 02-09-2010, 08:48 AM   #3
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Original Poster
Rep: Reputation: 15
Tried that, too

No luck. It says it's decompressing, and it finishes quickly but I get no file.
 
Old 02-09-2010, 08:56 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Mind that it's "unrar x archive.rar" not "-x". You should also check the archive for errors using "unrar t archive.rar"
 
Old 02-09-2010, 08:59 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Or try:

Code:
7z x archive.part1.rar
Install p7zip.
 
Old 02-09-2010, 03:12 PM   #6
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Original Poster
Rep: Reputation: 15
Tried that, too

Quote:
Originally Posted by bathory View Post
Mind that it's "unrar x archive.rar" not "-x". You should also check the archive for errors using "unrar t archive.rar"
Thanks, bathory.

I'm sorry, I forgot to mention, I've tried both unrar and unrar-free, since unrar doesn't work I thought I'd try unrar-free. And unrar-free is the one that says to use -x. My bad for not mentioning it.

unrar t archive.rar seems to work, and I unpacked the archive in Windows (I couldn't take it anymore so I rebooted and WinRAR did the job as it always does)

Unrar x archive-part1.rar didn't work - said "Failed". But WinRAR managed to decompress it just fine. Since there's like 15 files, I did the first one. It's annoying that it works fine in Windows but doesn't work in Linux. That should be backwards.

I know that I'm doing something wrong, I just don't know what.
 
Old 02-09-2010, 03:14 PM   #7
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H View Post
Or try:

Code:
7z x archive.part1.rar
Install p7zip.
Thanks for the tip. I did manage to install p7zip but 7x says "command not found". I tried using p7zip x file.part01.rar, but it still didn't work. Arrrggghhh!! Why does WinRAR work and the command line doesn't???
 
Old 02-09-2010, 04:48 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It should extract with both unrar and 7z, unless it uses some new winrar properties.
If you get "command not found" that means that 7z is not in your PATH. If you have downloaded the binary version, use the included install.sh script to install 7z and add /usr/local/bin in your PATH (if not already there)

Regards
 
Old 02-10-2010, 03:08 AM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by kuriharu View Post
Thanks for the tip. I did manage to install p7zip but 7x says "command not found". I tried using p7zip x file.part01.rar, but it still didn't work. Arrrggghhh!! Why does WinRAR work and the command line doesn't???
How did you install it ? Might want to make sure that it builds and installs 7z.
 
Old 02-11-2010, 05:37 PM   #10
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Original Poster
Rep: Reputation: 15
I hate to say it, but

Thanks for all your help from everyone who tried to offer assistance. This just doesn't work in Linux. I resorted to using WinRAR, which did the job quickly and easily.

I hate to admit it, I really do, but this was one area that using Windows actually got the job done. I really, really hate saying that, but neither the command line NOR a GUI tool would work in Linux. I had no choice but to use Windows. It kills me to say it, and it's ironic, given that rar is more of an open-source format, but Windows actually worked, and Linux didn't.

I'm not saying that to invite flames. I spent at least TWO HOURS trying to get this to work in Linux with NO success. I spent less than 4 minutes getting this file decompressed in Windows. If nothing else, just let me vent at the two hours I lost trying to do this without success, okay?
 
Old 02-11-2010, 05:54 PM   #11
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Obviously, it's frustrating that it didn't seem to work correctly with linux, and your venting is well understood. But I have to throw it out there, I have never had any trouble with unrar from the command line, or with split rar files.

Quote:
It kills me to say it, and it's ironic, given that rar is more of an open-source format, but Windows actually worked, and Linux didn't.
Er, rar is a proprietary format and unrar is not under an open source license.
http://fedoraproject.org/wiki/Licensing/Unrar
 
Old 02-11-2010, 06:16 PM   #12
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Original Poster
Rep: Reputation: 15
I stand corrected

Quote:
Originally Posted by reed9 View Post
Obviously, it's frustrating that it didn't seem to work correctly with linux, and your venting is well understood. But I have to throw it out there, I have never had any trouble with unrar from the command line, or with split rar files.



Er, rar is a proprietary format and unrar is not under an open source license.
http://fedoraproject.org/wiki/Licensing/Unrar

Thanks, I stand corrected. I should have said it's more popular with Linux users than Windows users, who typically rely on the ubiquious (and annoying) zip format.

Thanks for letting me vent.
 
Old 09-11-2011, 08:23 PM   #13
technicalbloke
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Raising the dead as nobody mentioned...

sudo apt-get install p7zip-rar

This worked for me, the "full" 7z package doesn't include all the codecs apparently.

Roger
 
Old 09-12-2011, 02:32 PM   #14
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
WinRAR can be installed and run under Wine in Linux. Splitting large files into smaller pieces is common on Usenet. Perhaps your torrent was at one time posted there. Usenet users know how to put them back together. Any decent Usenet HowTo site should include directions.

Ken
 
Old 09-12-2011, 02:55 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You don't need Wine for that, the WinRAR people offer a commandline version of their product for Linux. Of course it is, like WinRAR, a commercial product, so you can only download a trial version and have to buy it you want to use it further.
 
  


Reply

Tags
already, compress, compression, files, rar



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I change ca.archive.ubuntu.com to ca2.archive.ubuntu.com at the command line kennymw Linux - Newbie 3 09-01-2009 02:52 AM
Torrent Plants vs. Zombies archive type not supported after installing unrar cman26 Linux - Games 1 06-04-2009 03:28 PM
Can not unrar Christoffer81 Linux - Newbie 3 06-15-2004 08:38 AM
How to use unrar? JunZ Linux - Software 1 06-05-2004 08:36 PM
importing an MS Outlook archive archive.pst alloydog Linux - Software 2 08-29-2003 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration