WinRAR on Ubuntu

As a novice Linux and Ubuntu Fiesty Fawn user I have faced some issues related to RAR Archives. WinRAR is the Windows tool widely used for this purpose and it is also a powerful archiver. If one has wine installed as mentioned in one of my earlier blogs they can install WinRAR in no time following this.

I am just mentioning the steps in short.
  • Download WinRAR 3.7
  • wine {PATH_TO_EXE}. E.g. wine wrar371.exe. Having Desktop emulation configured using Wine is necessary. winecfg -> Graphics -> Emulate.... checkbox
  • Run WinRAR with the following command: wine {PATH_TO_INSTALLATION}/WinRAR.exe
I hope all enjoys WinRAR on Ubuntu.

20 comments:

  1. What issues did you have with RAR files under linux? File Roller works just as well if not better than WinRAR plus it's free. For par files I use GPar2.

    -Eric

    ReplyDelete
  2. My File Roller can not open RAR archives. Furthermore if I do sudo apt-get install rar it says that there is no such package. Let me know if you solve it because I also prefer File Roller over WinRAR.

    ReplyDelete
  3. That's because the syntax is...

    sudo apt-get install unrar

    or

    sudo apt-get install unrar-free

    -Eric

    ReplyDelete
  4. I should mention that once you install unrar or unrar-free that you will be able to right click on files and select "Create an Archive" and one of the options should be .rar.

    -Eric

    ReplyDelete
  5. Thanks. But I already had Unrar-free installed and just to recheck I apt-get remove unrar-free and again did apt-get install unrar-free. But I still do not get the RAR option in the create archive. Not to mention the problem of openning RARs with the File Roller :(

    ReplyDelete
  6. Thanks for the GPar2 recommendation

    ReplyDelete
  7. Make sure that you have the "multiverse" repos enabled.

    I'm using the...

    apt-get install unrar

    ...version and everything works.

    fyi... the unrar version is the ...

    http://www.rarlabs.com/ (i.e. WinRar)


    ..version.


    - Eric

    ReplyDelete
  8. After checking multiverse as a source I could install unrar and that allowed me to view RAR archives but not create one. Later than I installed 'rar' package and that allowed me to create RAR archives as well. Thanks for all the helps Eric.

    ReplyDelete
  9. imyousuf,

    Just thought I would make sure that you are OK. I've been watching coverage of the Cyclone. Hope all is well.

    -Eric

    ReplyDelete
  10. Thanks Eric, I was in Oslo when it happened, though I am in Bangladesh now again and yes my family is doing fine. Thanks a lot once again, btw where are you from?

    ReplyDelete
  11. I'm very glad to hear that you and your family are ok. Stay safe!

    I live in Albuquerque, New Mexico USA. I've been watching everything unfold in Bangladesh on CNN and MSNBC. Very heart breaking. My thoughts are with you and your country.

    -Eric

    ReplyDelete
  12. can anyone help me to execute winrar under wine, and have it open an archive in the same bash command?

    ie. wine "c:\\program files\\winrar\\winrar.exe" && /home/dad/archivename.part1.rar

    or. wine "c:\\program files\\winrar\\winrar.exe" | /home/dad/archivename.part1.rar

    i just can't figure the right syntax...

    ReplyDelete
  13. First: is...

    c:\\program files\\winrar\\winrar.exe

    ...the actual path to the WinRar.exe?

    it should be something like...

    /home/foo/.wine/drive_c/Program Files/WinRar/WinRar.exe

    Also you can use the Linux Unrar...

    sudo apt-get install unrar

    or

    sudo apt-get install unrar-free


    This should allow you to open winrar files with Linux's File Roller...

    Eric

    ReplyDelete
  14. my true path to winrar is /home/dad/.wine/drive_c/Program Files/WinRar/winrar.exe
    as i'm playing in bash i've discovered that bash recognizes "c:" as /home/dad/wine/drive_c ; as long as it is after the wine command and in quotes with double backslash paths. i have no problem launching the app from bash, but i cannot throw a command to have it dispay an archive when it opens, i have to navigate to the archive [i]after[/i] winrar is opened.
    thx for replying :)

    ReplyDelete
  15. i use winrar thru wine on Ubuntu Intrepid x64(gnome). the programs works great, but i can't get it to where i can right-click,open a rar file with it. i think the problem is that linux sends winrar a linux-formated directory path(forward-slashes) and winrar needs to see backslashes to interperet the path properly. i have tried using the bash command: wine "/home/.../winrar.exe \home\...\rar.rar" it still doesnt seem to interperet the path. i am a linux noob, but i think this could be accomplished with a shell script, tho i dont know how to do it.

    ReplyDelete
  16. Hi Ron, did you try the rar, unrar package which integrates RAR support to file-roller (Archive Manager), that would provide you what you are looking for.

    ReplyDelete
  17. thanks for share.....

    ReplyDelete
  18. you can try http://www.openrarfile.com/open-rar-file

    ReplyDelete
  19. I was always facing problem to open a .rar file . Window was showing an error “window cannot open this file ” .Now my problem hasbeen solved .Thank’s for this tip

    ReplyDelete

Search