How to create multiple RAR files with it's own Archive

Discussion in 'macOS' started by MSDNAA, Oct 3, 2013.

  1. MSDNAA

    MSDNAA MDL Senior Member

    Aug 6, 2013
    449
    225
    10
    Dear Experts,

    I have a seedbox with Linux Debian running rTorrent in it. I would like to create a RAR file from a Folder which has more files. Someone please help me with the Linux Command Line (Command), also i would also want to create the RAR files in it's own archive. Just like an option we have in PC WinRAR "Put each file to separate archive"

    Thanks in advance.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mikorist

    Mikorist MDL Member

    Dec 26, 2012
    201
    139
    10
    #2 Mikorist, Oct 3, 2013
    Last edited by a moderator: Apr 20, 2017
    to install rar / unrar:

    Code:
    sudo apt-get install unrar rar

    Code:
    rar a folder_name.rar  /folder_name/*


    something like this with rar:

    Code:
    for file in *;  do  rar a  ${file%/.*}.rar  ./$file;  done;
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Mikorist

    Mikorist MDL Member

    Dec 26, 2012
    201
    139
    10
    #3 Mikorist, Oct 3, 2013
    Last edited by a moderator: Apr 20, 2017
    or RUN PC WinRAR Full directly



    Code:
    wget rarlab.com/rar/WinRARLinux.tar.gz
    tar -xzf WinRARLinux.tar.gz
    cd WinRARLinux*
    sh WinRAR.sh
    ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. MSDNAA

    MSDNAA MDL Senior Member

    Aug 6, 2013
    449
    225
    10
    Thanks for the links but the WinRAR is not opening it simply returns to the command prompt. Would appreciate the steps with example.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Mikorist

    Mikorist MDL Member

    Dec 26, 2012
    201
    139
    10
    #5 Mikorist, Oct 3, 2013
    Last edited: Oct 3, 2013

    you need to have WinRARSetup.exe installer there in WinRAR Installers folder. :biggrin:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. MSDNAA

    MSDNAA MDL Senior Member

    Aug 6, 2013
    449
    225
    10
    #6 MSDNAA, Oct 3, 2013
    Last edited: Oct 3, 2013
    (OP)

    I have tried the above steps but still i couldn't get it to work. Also, I have clearly told you that i need a installation steps because I am not linux expert. Also i don't have wine installed in the server i tried to install Wine but I am getting the following error

    wine : Depends: wine-bin (>= 1.4.1-4) but it is not going to be installed or
    wine64-bin (>= 1.4.1-4) but it is not installable
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).



    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. MSDNAA

    MSDNAA MDL Senior Member

    Aug 6, 2013
    449
    225
    10
    Anyone - I have some files pending for compression

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Mikorist

    Mikorist MDL Member

    Dec 26, 2012
    201
    139
    10

    you have PM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. MSDNAA

    MSDNAA MDL Senior Member

    Aug 6, 2013
    449
    225
    10
    #9 MSDNAA, Oct 4, 2013
    Last edited: Oct 4, 2013
    (OP)
    Thanks for the steps and i have replied to your PM please check it and reply me.

    Edit: I would like to thank Mikorist for his great help. :worthy:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...