Results 1 to 8 of 8

Thread: Multiple .Rar Archeives

  1. #1
    Join Date
    Jul 2008
    Location
    Scotland.. Ayr
    Beans
    4

    Exclamation Multiple .Rar Archeives

    Recently I just finished downloading around 26 rar archives, each around 100mb in size.
    But the thing is, its an ISO and I need it to extract all of the files. When one file is extracted it asks for the password for the same file (multiple times..)..

    So is there anyway to get them all extracted ? I know you can do it on windows but I am not sure how to do it on Ubuntu..

    Any help would be helpful. Thanks.

  2. #2
    Join Date
    Jul 2008
    Location
    Serbia, Novi Sad
    Beans
    182

    Re: Multiple .Rar Archeives

    You must install rar:
    Code:
    sudo apt-get install rar
    Then right click on the first part->Extract here (if prompted for password enter it) and it will extract all parts and merge the files as it should.
    If this doesn't happen then something's wrong with your rar files.

  3. #3
    Join Date
    Jul 2008
    Location
    Scotland.. Ayr
    Beans
    4

    Re: Multiple .Rar Archeives

    Yes I have it already. Thanks for your help though =]

  4. #4
    Join Date
    Aug 2006
    Location
    Orlando, FL
    Beans
    Hidden!

    Re: Multiple .Rar Archeives

    or you can do

    Code:
    unrar e filename.rar
    note not -e just plain e

    and when it's done, you can clean things up a bit with

    Code:
    rm *.rar
    I haven't tried it but in theory you should be able to pipe it together..

    Code:
    unrar e filename.rar && rm *.rar
    Last edited by Gun_Smoke; March 17th, 2009 at 09:25 PM. Reason: corrected code

  5. #5
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Multiple .Rar Archeives

    Quote Originally Posted by Gun_Smoke View Post
    I haven't tried it but in theory you should be able to pipe it together..

    Code:
    unrar e filename.rar | rm *.rar
    No no no. don't do that. That will delete the rar files while extracting them, which will most likely fail. The safe way is
    Code:
    unrar x filename.rar && rm *.rar
    which will delete the rar files if and only if unrar completed successfully.

    @itztex

    Sometimes when the archive manager asks for password, it's not because it's password protected, but because one or more of the rar files are corrupt. It's a bug with the archive manager.

  6. #6
    Join Date
    Aug 2006
    Location
    Orlando, FL
    Beans
    Hidden!

    Re: Multiple .Rar Archeives

    You are correct. && is what should be done.

    Why x and not e?

  7. #7
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Multiple .Rar Archeives

    Quote Originally Posted by Gun_Smoke View Post
    Why x and not e?
    To keep the proper path.

    Code:
    unrar --help
    ...
    <Commands>
      e             Extract files to current directory
    ...
      x             Extract files with full path

  8. #8
    Join Date
    Aug 2006
    Location
    Orlando, FL
    Beans
    Hidden!

    Re: Multiple .Rar Archeives

    Nice.. Good to know.

Tags for this Thread

Bookmarks

Posting Permissions

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