Find the answer to your Linux question:
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] ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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 =)

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,763
    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; 
    }

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    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!

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •