Results 1 to 4 of 4
Morning,
I have a .rar file needed to be extracted. I installed unrar as I have seen others post is a good one but is not working.
unrar -x [file_name]
...
- 12-08-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
unrar 0.0.1 not working on rar files
Morning,
I have a .rar file needed to be extracted. I installed unrar as I have seen others post is a good one but is not working.
unrar -x [file_name]
gave me this error
Extracting from /opt/minecraft3/Cathedral+of+Azrail+Seal+of+Darkness.rar
unknown archive type, only plain RAR 2.0 supported(normal and solid archives), SFX and Volumes are NOT supported!
All OK
also this is all CLI, do not have a gui
Thanks =)
- 12-08-2011 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
RAR is not a free format. As the error states, your version of the "free" unrar does not support the way this file was compressed.
RAR - Wiki
Free unrar source code:
Code:int IsArchive (void) { if (fread (&markheader, 1, sizeof (markheader), inputfile) != sizeof (markheader)) return 0; /* original RAR v2.0 header */ /* FIXME: Endian */ if (!(markheader.head_crc == 0x6152 && markheader.head_type == 0x72 && markheader.head_flags == 0x1a21 && markheader.head_size == 0x0007)) { fputs ("unknown archive type, only plain RAR 2.0 supported" "(normal and solid archives), " "SFX and Volumes are NOT supported!\n", stderr); return 0; } if (ReadHeader (MAIN_HEAD) != SIZEOF_NEWMHD) return 0; return 1; }
- 12-09-2011 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
Unrar is at version 4.0.7 at the least, so yours is very much out-of-date. Also, I don't use unrar to extract rar archives, but the rar tool, using the command: rar x 'filename*.rar'
I have been using that for extracting rar archives for years now, with no problems or incompatibilities.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 12-09-2011 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
FWIW, RAR may be "proprietary", but there are plenty of reverse-engineered tools out there to archive/extract in this format. The RHEL rar package is at version 3.9.3-4 and unrar at 4.0.7-1. The rar package is in the atrpms repository, and unrar is in the rpmforge repository. Not sure about ubuntu, but I know that I have been able to install the rar package using Synaptic.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote