How to open rar file in linux?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
35
down vote

favorite
5












I have a file with .rar extension, ex: foo.rar



I want to extract content from that file, how do I extract it?










share|improve this question



















  • 5




    Install p7zip and try it: 7z x foo.rar.
    – user140866
    Dec 1 '15 at 6:04






  • 1




    @siblynx, the Fedora manual for 7z(1) states that rar support was removed due to non-open license. rar is not open source, and this *** will not*** be shipped by Fedora.
    – vonbrand
    Feb 23 '16 at 12:39










  • That's a fedora problem. Download stock p7zip source code and see unrar support is still there.
    – user140866
    Feb 23 '16 at 16:21














up vote
35
down vote

favorite
5












I have a file with .rar extension, ex: foo.rar



I want to extract content from that file, how do I extract it?










share|improve this question



















  • 5




    Install p7zip and try it: 7z x foo.rar.
    – user140866
    Dec 1 '15 at 6:04






  • 1




    @siblynx, the Fedora manual for 7z(1) states that rar support was removed due to non-open license. rar is not open source, and this *** will not*** be shipped by Fedora.
    – vonbrand
    Feb 23 '16 at 12:39










  • That's a fedora problem. Download stock p7zip source code and see unrar support is still there.
    – user140866
    Feb 23 '16 at 16:21












up vote
35
down vote

favorite
5









up vote
35
down vote

favorite
5






5





I have a file with .rar extension, ex: foo.rar



I want to extract content from that file, how do I extract it?










share|improve this question















I have a file with .rar extension, ex: foo.rar



I want to extract content from that file, how do I extract it?







rar






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 1 '15 at 23:07









Gilles

512k12010151546




512k12010151546










asked Dec 1 '15 at 6:01









shas

5782827




5782827







  • 5




    Install p7zip and try it: 7z x foo.rar.
    – user140866
    Dec 1 '15 at 6:04






  • 1




    @siblynx, the Fedora manual for 7z(1) states that rar support was removed due to non-open license. rar is not open source, and this *** will not*** be shipped by Fedora.
    – vonbrand
    Feb 23 '16 at 12:39










  • That's a fedora problem. Download stock p7zip source code and see unrar support is still there.
    – user140866
    Feb 23 '16 at 16:21












  • 5




    Install p7zip and try it: 7z x foo.rar.
    – user140866
    Dec 1 '15 at 6:04






  • 1




    @siblynx, the Fedora manual for 7z(1) states that rar support was removed due to non-open license. rar is not open source, and this *** will not*** be shipped by Fedora.
    – vonbrand
    Feb 23 '16 at 12:39










  • That's a fedora problem. Download stock p7zip source code and see unrar support is still there.
    – user140866
    Feb 23 '16 at 16:21







5




5




Install p7zip and try it: 7z x foo.rar.
– user140866
Dec 1 '15 at 6:04




Install p7zip and try it: 7z x foo.rar.
– user140866
Dec 1 '15 at 6:04




1




1




@siblynx, the Fedora manual for 7z(1) states that rar support was removed due to non-open license. rar is not open source, and this *** will not*** be shipped by Fedora.
– vonbrand
Feb 23 '16 at 12:39




@siblynx, the Fedora manual for 7z(1) states that rar support was removed due to non-open license. rar is not open source, and this *** will not*** be shipped by Fedora.
– vonbrand
Feb 23 '16 at 12:39












That's a fedora problem. Download stock p7zip source code and see unrar support is still there.
– user140866
Feb 23 '16 at 16:21




That's a fedora problem. Download stock p7zip source code and see unrar support is still there.
– user140866
Feb 23 '16 at 16:21










8 Answers
8






active

oldest

votes

















up vote
33
down vote













You can install unrar - "Unarchiver for .rar files" or unp - "unpack (almost) everything with one command"



To unrar a file:



  • unrar x <myfile>

To unp a file:



  • unp <myfile.rar>

Since unrar is not open source, some distros might not have it in their package manager already. If it's not, try unrar-free.



Notice that unrar x <myfile> will preserve directory structure in archive, in difference with unrar e <myfile> which will flatten it






share|improve this answer


















  • 1




    There is also a rar command. It is binary-only and a bit less easy to use, but can open some files that unrar cannot.
    – Wouter Verhelst
    Dec 1 '15 at 6:47










  • On my Linux Mint 18.2 installation, unrar appears to be already installed and available by default.
    – JonathanHayward
    Sep 18 '17 at 17:15


















up vote
26
down vote













You can use unar. This is not related to the non-free unrar, it's free software.






share|improve this answer






















  • @vonbrand: availability depends on the specific GNU/Linux distribution. For example unar is available for Parabola GNU/Linux-libre. Anyway I didn't mention "unrar", and unar != unrar
    – Francesco Turco
    Feb 23 '16 at 18:06

















up vote
5
down vote













You can get unar from fedora repo, it's open and licence-pure:



dnf install unar
unar file.rar





share|improve this answer




















  • Not available. unrar is not open source (it is forbidden to analyze the code to reverse engineer a compression program), so Fedora won't ship it.
    – vonbrand
    Feb 23 '16 at 10:24










  • su -c 'dnf install download1.rpmfusion.org/free/fedora/… -E %fedora).noarch.rpm download1.rpmfusion.org/nonfree/fedora/… -E %fedora).noarch.rpm'
    – shcherbak
    Feb 24 '16 at 11:06










  • dnf install unrar
    – shcherbak
    Feb 24 '16 at 11:07










  • also you can use unar for fedora 23. did the author of the question asked about feora or opensource sollution or about unix rar sollution? @vonbrand
    – shcherbak
    Feb 24 '16 at 11:10











  • To install on debian, use: sudo apt-get install unar
    – VectorVortec
    Mar 2 at 18:12


















up vote
3
down vote













sudo apt-get install p7zip
7zr x myfile.rar


On Windows I rely on 7zip for rar and every other archive file, and it works on Linux, too.



Hope that helps.






share|improve this answer




















  • I used this approach and It worked. Thanks.
    – Rodol Velasco
    Jul 3 at 14:03

















up vote
1
down vote













Note that unrar is not open source (the license to the available source forbids using it to reverse engineer the compression, which violates point 6 "No Discrimination Against Fields of Endeavor" of the Open Source Definition), and thus will not be shipped by Fedora.



Go to Rar Labs, check out the source for unrar (be careful, the version might have changed!), build and install (you'll need g++ and make), preferably for your account only:



$ tar zxf unrarsrc-5.3.11.tar.gz
$ cd unrar
$ make DESTDIR=$HOME all
$ make DESTDIR=$HOME install-unrar


Add $HOME/bin to your PATH, and you are all set.



Yes, there is a RPM offered. I would't touch it with the proverbial 10 feet pole, more often than not third parties have no clue on how to create a correct RPM (it isn't exactly rocket science, but there are lots of details that have to be just right, see e.g. Fedora's guidelines). Besides, there are differences between Fedora versions, "one size fits all" can't cut it.






share|improve this answer




















  • worked on my Fedora 23
    – DmitrySemenov
    Jun 18 '16 at 0:50

















up vote
0
down vote













I'd suggest using a nearest available file manager, either Norton-like (Midnight Commander, Double Commander, Tux Commander, etc., whatever is present in your distribution) or window-based (as Dolphin). Most of them have enough intelligence to open all kinds of archives in a manner suitable for manual contents exploring, but, sometimes, they use external tools. For instance, my Kubuntu suggests Ark in such cases. They would need an external tool, as unrar, for accessing proprietary archive formats; if so, install the latter using a package manager.



If you want to extract the entire archive or a single specified file, unrar e extracts without full path, and unrar x also makes intermediate directories.






share|improve this answer




















  • Since unrar is not open source, Fedora won't ship support for it in any form.
    – vonbrand
    Feb 23 '16 at 12:59










  • @vonbrand Ubuntu provides both unrar and unrar-free. If Fedora can't include the latter, it's not a license issue.
    – Netch
    Feb 27 '16 at 20:04










  • @vonbrand moreover, there is no word for Fedora from original author. Your approach to limit question to the only non-most-used distribution is destructive.
    – Netch
    Feb 27 '16 at 20:09


















up vote
0
down vote













Install the unrar package. On Fedora, for eample, you can do so with:



sudo yum install unrar


Then, use it to extract the files:



unrar e filename.rar





share|improve this answer






















  • Fedora 23 has no unrar package among its official packages. I got the source an installed it in my account.
    – vonbrand
    Feb 23 '16 at 10:20










  • This is completely misleading. There is no such package.
    – vonbrand
    Feb 23 '16 at 20:49

















up vote
0
down vote













On Ubuntu, you have a GUI solution, Archive Manager. It provides extraction of such archive files as .rar files.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f246535%2fhow-to-open-rar-file-in-linux%23new-answer', 'question_page');

    );

    Post as a guest






























    8 Answers
    8






    active

    oldest

    votes








    8 Answers
    8






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    33
    down vote













    You can install unrar - "Unarchiver for .rar files" or unp - "unpack (almost) everything with one command"



    To unrar a file:



    • unrar x <myfile>

    To unp a file:



    • unp <myfile.rar>

    Since unrar is not open source, some distros might not have it in their package manager already. If it's not, try unrar-free.



    Notice that unrar x <myfile> will preserve directory structure in archive, in difference with unrar e <myfile> which will flatten it






    share|improve this answer


















    • 1




      There is also a rar command. It is binary-only and a bit less easy to use, but can open some files that unrar cannot.
      – Wouter Verhelst
      Dec 1 '15 at 6:47










    • On my Linux Mint 18.2 installation, unrar appears to be already installed and available by default.
      – JonathanHayward
      Sep 18 '17 at 17:15















    up vote
    33
    down vote













    You can install unrar - "Unarchiver for .rar files" or unp - "unpack (almost) everything with one command"



    To unrar a file:



    • unrar x <myfile>

    To unp a file:



    • unp <myfile.rar>

    Since unrar is not open source, some distros might not have it in their package manager already. If it's not, try unrar-free.



    Notice that unrar x <myfile> will preserve directory structure in archive, in difference with unrar e <myfile> which will flatten it






    share|improve this answer


















    • 1




      There is also a rar command. It is binary-only and a bit less easy to use, but can open some files that unrar cannot.
      – Wouter Verhelst
      Dec 1 '15 at 6:47










    • On my Linux Mint 18.2 installation, unrar appears to be already installed and available by default.
      – JonathanHayward
      Sep 18 '17 at 17:15













    up vote
    33
    down vote










    up vote
    33
    down vote









    You can install unrar - "Unarchiver for .rar files" or unp - "unpack (almost) everything with one command"



    To unrar a file:



    • unrar x <myfile>

    To unp a file:



    • unp <myfile.rar>

    Since unrar is not open source, some distros might not have it in their package manager already. If it's not, try unrar-free.



    Notice that unrar x <myfile> will preserve directory structure in archive, in difference with unrar e <myfile> which will flatten it






    share|improve this answer














    You can install unrar - "Unarchiver for .rar files" or unp - "unpack (almost) everything with one command"



    To unrar a file:



    • unrar x <myfile>

    To unp a file:



    • unp <myfile.rar>

    Since unrar is not open source, some distros might not have it in their package manager already. If it's not, try unrar-free.



    Notice that unrar x <myfile> will preserve directory structure in archive, in difference with unrar e <myfile> which will flatten it







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Oct 9 '17 at 21:19









    VanDavv

    15110




    15110










    answered Dec 1 '15 at 6:06









    cutrightjm

    1,93221224




    1,93221224







    • 1




      There is also a rar command. It is binary-only and a bit less easy to use, but can open some files that unrar cannot.
      – Wouter Verhelst
      Dec 1 '15 at 6:47










    • On my Linux Mint 18.2 installation, unrar appears to be already installed and available by default.
      – JonathanHayward
      Sep 18 '17 at 17:15













    • 1




      There is also a rar command. It is binary-only and a bit less easy to use, but can open some files that unrar cannot.
      – Wouter Verhelst
      Dec 1 '15 at 6:47










    • On my Linux Mint 18.2 installation, unrar appears to be already installed and available by default.
      – JonathanHayward
      Sep 18 '17 at 17:15








    1




    1




    There is also a rar command. It is binary-only and a bit less easy to use, but can open some files that unrar cannot.
    – Wouter Verhelst
    Dec 1 '15 at 6:47




    There is also a rar command. It is binary-only and a bit less easy to use, but can open some files that unrar cannot.
    – Wouter Verhelst
    Dec 1 '15 at 6:47












    On my Linux Mint 18.2 installation, unrar appears to be already installed and available by default.
    – JonathanHayward
    Sep 18 '17 at 17:15





    On my Linux Mint 18.2 installation, unrar appears to be already installed and available by default.
    – JonathanHayward
    Sep 18 '17 at 17:15













    up vote
    26
    down vote













    You can use unar. This is not related to the non-free unrar, it's free software.






    share|improve this answer






















    • @vonbrand: availability depends on the specific GNU/Linux distribution. For example unar is available for Parabola GNU/Linux-libre. Anyway I didn't mention "unrar", and unar != unrar
      – Francesco Turco
      Feb 23 '16 at 18:06














    up vote
    26
    down vote













    You can use unar. This is not related to the non-free unrar, it's free software.






    share|improve this answer






















    • @vonbrand: availability depends on the specific GNU/Linux distribution. For example unar is available for Parabola GNU/Linux-libre. Anyway I didn't mention "unrar", and unar != unrar
      – Francesco Turco
      Feb 23 '16 at 18:06












    up vote
    26
    down vote










    up vote
    26
    down vote









    You can use unar. This is not related to the non-free unrar, it's free software.






    share|improve this answer














    You can use unar. This is not related to the non-free unrar, it's free software.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 23 '16 at 21:53









    don_crissti

    47.5k15126155




    47.5k15126155










    answered Feb 23 '16 at 9:04









    Francesco Turco

    1,30531529




    1,30531529











    • @vonbrand: availability depends on the specific GNU/Linux distribution. For example unar is available for Parabola GNU/Linux-libre. Anyway I didn't mention "unrar", and unar != unrar
      – Francesco Turco
      Feb 23 '16 at 18:06
















    • @vonbrand: availability depends on the specific GNU/Linux distribution. For example unar is available for Parabola GNU/Linux-libre. Anyway I didn't mention "unrar", and unar != unrar
      – Francesco Turco
      Feb 23 '16 at 18:06















    @vonbrand: availability depends on the specific GNU/Linux distribution. For example unar is available for Parabola GNU/Linux-libre. Anyway I didn't mention "unrar", and unar != unrar
    – Francesco Turco
    Feb 23 '16 at 18:06




    @vonbrand: availability depends on the specific GNU/Linux distribution. For example unar is available for Parabola GNU/Linux-libre. Anyway I didn't mention "unrar", and unar != unrar
    – Francesco Turco
    Feb 23 '16 at 18:06










    up vote
    5
    down vote













    You can get unar from fedora repo, it's open and licence-pure:



    dnf install unar
    unar file.rar





    share|improve this answer




















    • Not available. unrar is not open source (it is forbidden to analyze the code to reverse engineer a compression program), so Fedora won't ship it.
      – vonbrand
      Feb 23 '16 at 10:24










    • su -c 'dnf install download1.rpmfusion.org/free/fedora/… -E %fedora).noarch.rpm download1.rpmfusion.org/nonfree/fedora/… -E %fedora).noarch.rpm'
      – shcherbak
      Feb 24 '16 at 11:06










    • dnf install unrar
      – shcherbak
      Feb 24 '16 at 11:07










    • also you can use unar for fedora 23. did the author of the question asked about feora or opensource sollution or about unix rar sollution? @vonbrand
      – shcherbak
      Feb 24 '16 at 11:10











    • To install on debian, use: sudo apt-get install unar
      – VectorVortec
      Mar 2 at 18:12















    up vote
    5
    down vote













    You can get unar from fedora repo, it's open and licence-pure:



    dnf install unar
    unar file.rar





    share|improve this answer




















    • Not available. unrar is not open source (it is forbidden to analyze the code to reverse engineer a compression program), so Fedora won't ship it.
      – vonbrand
      Feb 23 '16 at 10:24










    • su -c 'dnf install download1.rpmfusion.org/free/fedora/… -E %fedora).noarch.rpm download1.rpmfusion.org/nonfree/fedora/… -E %fedora).noarch.rpm'
      – shcherbak
      Feb 24 '16 at 11:06










    • dnf install unrar
      – shcherbak
      Feb 24 '16 at 11:07










    • also you can use unar for fedora 23. did the author of the question asked about feora or opensource sollution or about unix rar sollution? @vonbrand
      – shcherbak
      Feb 24 '16 at 11:10











    • To install on debian, use: sudo apt-get install unar
      – VectorVortec
      Mar 2 at 18:12













    up vote
    5
    down vote










    up vote
    5
    down vote









    You can get unar from fedora repo, it's open and licence-pure:



    dnf install unar
    unar file.rar





    share|improve this answer












    You can get unar from fedora repo, it's open and licence-pure:



    dnf install unar
    unar file.rar






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 1 '15 at 8:05









    shcherbak

    35019




    35019











    • Not available. unrar is not open source (it is forbidden to analyze the code to reverse engineer a compression program), so Fedora won't ship it.
      – vonbrand
      Feb 23 '16 at 10:24










    • su -c 'dnf install download1.rpmfusion.org/free/fedora/… -E %fedora).noarch.rpm download1.rpmfusion.org/nonfree/fedora/… -E %fedora).noarch.rpm'
      – shcherbak
      Feb 24 '16 at 11:06










    • dnf install unrar
      – shcherbak
      Feb 24 '16 at 11:07










    • also you can use unar for fedora 23. did the author of the question asked about feora or opensource sollution or about unix rar sollution? @vonbrand
      – shcherbak
      Feb 24 '16 at 11:10











    • To install on debian, use: sudo apt-get install unar
      – VectorVortec
      Mar 2 at 18:12

















    • Not available. unrar is not open source (it is forbidden to analyze the code to reverse engineer a compression program), so Fedora won't ship it.
      – vonbrand
      Feb 23 '16 at 10:24










    • su -c 'dnf install download1.rpmfusion.org/free/fedora/… -E %fedora).noarch.rpm download1.rpmfusion.org/nonfree/fedora/… -E %fedora).noarch.rpm'
      – shcherbak
      Feb 24 '16 at 11:06










    • dnf install unrar
      – shcherbak
      Feb 24 '16 at 11:07










    • also you can use unar for fedora 23. did the author of the question asked about feora or opensource sollution or about unix rar sollution? @vonbrand
      – shcherbak
      Feb 24 '16 at 11:10











    • To install on debian, use: sudo apt-get install unar
      – VectorVortec
      Mar 2 at 18:12
















    Not available. unrar is not open source (it is forbidden to analyze the code to reverse engineer a compression program), so Fedora won't ship it.
    – vonbrand
    Feb 23 '16 at 10:24




    Not available. unrar is not open source (it is forbidden to analyze the code to reverse engineer a compression program), so Fedora won't ship it.
    – vonbrand
    Feb 23 '16 at 10:24












    su -c 'dnf install download1.rpmfusion.org/free/fedora/… -E %fedora).noarch.rpm download1.rpmfusion.org/nonfree/fedora/… -E %fedora).noarch.rpm'
    – shcherbak
    Feb 24 '16 at 11:06




    su -c 'dnf install download1.rpmfusion.org/free/fedora/… -E %fedora).noarch.rpm download1.rpmfusion.org/nonfree/fedora/… -E %fedora).noarch.rpm'
    – shcherbak
    Feb 24 '16 at 11:06












    dnf install unrar
    – shcherbak
    Feb 24 '16 at 11:07




    dnf install unrar
    – shcherbak
    Feb 24 '16 at 11:07












    also you can use unar for fedora 23. did the author of the question asked about feora or opensource sollution or about unix rar sollution? @vonbrand
    – shcherbak
    Feb 24 '16 at 11:10





    also you can use unar for fedora 23. did the author of the question asked about feora or opensource sollution or about unix rar sollution? @vonbrand
    – shcherbak
    Feb 24 '16 at 11:10













    To install on debian, use: sudo apt-get install unar
    – VectorVortec
    Mar 2 at 18:12





    To install on debian, use: sudo apt-get install unar
    – VectorVortec
    Mar 2 at 18:12











    up vote
    3
    down vote













    sudo apt-get install p7zip
    7zr x myfile.rar


    On Windows I rely on 7zip for rar and every other archive file, and it works on Linux, too.



    Hope that helps.






    share|improve this answer




















    • I used this approach and It worked. Thanks.
      – Rodol Velasco
      Jul 3 at 14:03














    up vote
    3
    down vote













    sudo apt-get install p7zip
    7zr x myfile.rar


    On Windows I rely on 7zip for rar and every other archive file, and it works on Linux, too.



    Hope that helps.






    share|improve this answer




















    • I used this approach and It worked. Thanks.
      – Rodol Velasco
      Jul 3 at 14:03












    up vote
    3
    down vote










    up vote
    3
    down vote









    sudo apt-get install p7zip
    7zr x myfile.rar


    On Windows I rely on 7zip for rar and every other archive file, and it works on Linux, too.



    Hope that helps.






    share|improve this answer












    sudo apt-get install p7zip
    7zr x myfile.rar


    On Windows I rely on 7zip for rar and every other archive file, and it works on Linux, too.



    Hope that helps.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 29 '17 at 2:24









    phyatt

    22117




    22117











    • I used this approach and It worked. Thanks.
      – Rodol Velasco
      Jul 3 at 14:03
















    • I used this approach and It worked. Thanks.
      – Rodol Velasco
      Jul 3 at 14:03















    I used this approach and It worked. Thanks.
    – Rodol Velasco
    Jul 3 at 14:03




    I used this approach and It worked. Thanks.
    – Rodol Velasco
    Jul 3 at 14:03










    up vote
    1
    down vote













    Note that unrar is not open source (the license to the available source forbids using it to reverse engineer the compression, which violates point 6 "No Discrimination Against Fields of Endeavor" of the Open Source Definition), and thus will not be shipped by Fedora.



    Go to Rar Labs, check out the source for unrar (be careful, the version might have changed!), build and install (you'll need g++ and make), preferably for your account only:



    $ tar zxf unrarsrc-5.3.11.tar.gz
    $ cd unrar
    $ make DESTDIR=$HOME all
    $ make DESTDIR=$HOME install-unrar


    Add $HOME/bin to your PATH, and you are all set.



    Yes, there is a RPM offered. I would't touch it with the proverbial 10 feet pole, more often than not third parties have no clue on how to create a correct RPM (it isn't exactly rocket science, but there are lots of details that have to be just right, see e.g. Fedora's guidelines). Besides, there are differences between Fedora versions, "one size fits all" can't cut it.






    share|improve this answer




















    • worked on my Fedora 23
      – DmitrySemenov
      Jun 18 '16 at 0:50














    up vote
    1
    down vote













    Note that unrar is not open source (the license to the available source forbids using it to reverse engineer the compression, which violates point 6 "No Discrimination Against Fields of Endeavor" of the Open Source Definition), and thus will not be shipped by Fedora.



    Go to Rar Labs, check out the source for unrar (be careful, the version might have changed!), build and install (you'll need g++ and make), preferably for your account only:



    $ tar zxf unrarsrc-5.3.11.tar.gz
    $ cd unrar
    $ make DESTDIR=$HOME all
    $ make DESTDIR=$HOME install-unrar


    Add $HOME/bin to your PATH, and you are all set.



    Yes, there is a RPM offered. I would't touch it with the proverbial 10 feet pole, more often than not third parties have no clue on how to create a correct RPM (it isn't exactly rocket science, but there are lots of details that have to be just right, see e.g. Fedora's guidelines). Besides, there are differences between Fedora versions, "one size fits all" can't cut it.






    share|improve this answer




















    • worked on my Fedora 23
      – DmitrySemenov
      Jun 18 '16 at 0:50












    up vote
    1
    down vote










    up vote
    1
    down vote









    Note that unrar is not open source (the license to the available source forbids using it to reverse engineer the compression, which violates point 6 "No Discrimination Against Fields of Endeavor" of the Open Source Definition), and thus will not be shipped by Fedora.



    Go to Rar Labs, check out the source for unrar (be careful, the version might have changed!), build and install (you'll need g++ and make), preferably for your account only:



    $ tar zxf unrarsrc-5.3.11.tar.gz
    $ cd unrar
    $ make DESTDIR=$HOME all
    $ make DESTDIR=$HOME install-unrar


    Add $HOME/bin to your PATH, and you are all set.



    Yes, there is a RPM offered. I would't touch it with the proverbial 10 feet pole, more often than not third parties have no clue on how to create a correct RPM (it isn't exactly rocket science, but there are lots of details that have to be just right, see e.g. Fedora's guidelines). Besides, there are differences between Fedora versions, "one size fits all" can't cut it.






    share|improve this answer












    Note that unrar is not open source (the license to the available source forbids using it to reverse engineer the compression, which violates point 6 "No Discrimination Against Fields of Endeavor" of the Open Source Definition), and thus will not be shipped by Fedora.



    Go to Rar Labs, check out the source for unrar (be careful, the version might have changed!), build and install (you'll need g++ and make), preferably for your account only:



    $ tar zxf unrarsrc-5.3.11.tar.gz
    $ cd unrar
    $ make DESTDIR=$HOME all
    $ make DESTDIR=$HOME install-unrar


    Add $HOME/bin to your PATH, and you are all set.



    Yes, there is a RPM offered. I would't touch it with the proverbial 10 feet pole, more often than not third parties have no clue on how to create a correct RPM (it isn't exactly rocket science, but there are lots of details that have to be just right, see e.g. Fedora's guidelines). Besides, there are differences between Fedora versions, "one size fits all" can't cut it.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 23 '16 at 12:57









    vonbrand

    14k22444




    14k22444











    • worked on my Fedora 23
      – DmitrySemenov
      Jun 18 '16 at 0:50
















    • worked on my Fedora 23
      – DmitrySemenov
      Jun 18 '16 at 0:50















    worked on my Fedora 23
    – DmitrySemenov
    Jun 18 '16 at 0:50




    worked on my Fedora 23
    – DmitrySemenov
    Jun 18 '16 at 0:50










    up vote
    0
    down vote













    I'd suggest using a nearest available file manager, either Norton-like (Midnight Commander, Double Commander, Tux Commander, etc., whatever is present in your distribution) or window-based (as Dolphin). Most of them have enough intelligence to open all kinds of archives in a manner suitable for manual contents exploring, but, sometimes, they use external tools. For instance, my Kubuntu suggests Ark in such cases. They would need an external tool, as unrar, for accessing proprietary archive formats; if so, install the latter using a package manager.



    If you want to extract the entire archive or a single specified file, unrar e extracts without full path, and unrar x also makes intermediate directories.






    share|improve this answer




















    • Since unrar is not open source, Fedora won't ship support for it in any form.
      – vonbrand
      Feb 23 '16 at 12:59










    • @vonbrand Ubuntu provides both unrar and unrar-free. If Fedora can't include the latter, it's not a license issue.
      – Netch
      Feb 27 '16 at 20:04










    • @vonbrand moreover, there is no word for Fedora from original author. Your approach to limit question to the only non-most-used distribution is destructive.
      – Netch
      Feb 27 '16 at 20:09















    up vote
    0
    down vote













    I'd suggest using a nearest available file manager, either Norton-like (Midnight Commander, Double Commander, Tux Commander, etc., whatever is present in your distribution) or window-based (as Dolphin). Most of them have enough intelligence to open all kinds of archives in a manner suitable for manual contents exploring, but, sometimes, they use external tools. For instance, my Kubuntu suggests Ark in such cases. They would need an external tool, as unrar, for accessing proprietary archive formats; if so, install the latter using a package manager.



    If you want to extract the entire archive or a single specified file, unrar e extracts without full path, and unrar x also makes intermediate directories.






    share|improve this answer




















    • Since unrar is not open source, Fedora won't ship support for it in any form.
      – vonbrand
      Feb 23 '16 at 12:59










    • @vonbrand Ubuntu provides both unrar and unrar-free. If Fedora can't include the latter, it's not a license issue.
      – Netch
      Feb 27 '16 at 20:04










    • @vonbrand moreover, there is no word for Fedora from original author. Your approach to limit question to the only non-most-used distribution is destructive.
      – Netch
      Feb 27 '16 at 20:09













    up vote
    0
    down vote










    up vote
    0
    down vote









    I'd suggest using a nearest available file manager, either Norton-like (Midnight Commander, Double Commander, Tux Commander, etc., whatever is present in your distribution) or window-based (as Dolphin). Most of them have enough intelligence to open all kinds of archives in a manner suitable for manual contents exploring, but, sometimes, they use external tools. For instance, my Kubuntu suggests Ark in such cases. They would need an external tool, as unrar, for accessing proprietary archive formats; if so, install the latter using a package manager.



    If you want to extract the entire archive or a single specified file, unrar e extracts without full path, and unrar x also makes intermediate directories.






    share|improve this answer












    I'd suggest using a nearest available file manager, either Norton-like (Midnight Commander, Double Commander, Tux Commander, etc., whatever is present in your distribution) or window-based (as Dolphin). Most of them have enough intelligence to open all kinds of archives in a manner suitable for manual contents exploring, but, sometimes, they use external tools. For instance, my Kubuntu suggests Ark in such cases. They would need an external tool, as unrar, for accessing proprietary archive formats; if so, install the latter using a package manager.



    If you want to extract the entire archive or a single specified file, unrar e extracts without full path, and unrar x also makes intermediate directories.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 1 '15 at 6:25









    Netch

    1,802910




    1,802910











    • Since unrar is not open source, Fedora won't ship support for it in any form.
      – vonbrand
      Feb 23 '16 at 12:59










    • @vonbrand Ubuntu provides both unrar and unrar-free. If Fedora can't include the latter, it's not a license issue.
      – Netch
      Feb 27 '16 at 20:04










    • @vonbrand moreover, there is no word for Fedora from original author. Your approach to limit question to the only non-most-used distribution is destructive.
      – Netch
      Feb 27 '16 at 20:09

















    • Since unrar is not open source, Fedora won't ship support for it in any form.
      – vonbrand
      Feb 23 '16 at 12:59










    • @vonbrand Ubuntu provides both unrar and unrar-free. If Fedora can't include the latter, it's not a license issue.
      – Netch
      Feb 27 '16 at 20:04










    • @vonbrand moreover, there is no word for Fedora from original author. Your approach to limit question to the only non-most-used distribution is destructive.
      – Netch
      Feb 27 '16 at 20:09
















    Since unrar is not open source, Fedora won't ship support for it in any form.
    – vonbrand
    Feb 23 '16 at 12:59




    Since unrar is not open source, Fedora won't ship support for it in any form.
    – vonbrand
    Feb 23 '16 at 12:59












    @vonbrand Ubuntu provides both unrar and unrar-free. If Fedora can't include the latter, it's not a license issue.
    – Netch
    Feb 27 '16 at 20:04




    @vonbrand Ubuntu provides both unrar and unrar-free. If Fedora can't include the latter, it's not a license issue.
    – Netch
    Feb 27 '16 at 20:04












    @vonbrand moreover, there is no word for Fedora from original author. Your approach to limit question to the only non-most-used distribution is destructive.
    – Netch
    Feb 27 '16 at 20:09





    @vonbrand moreover, there is no word for Fedora from original author. Your approach to limit question to the only non-most-used distribution is destructive.
    – Netch
    Feb 27 '16 at 20:09











    up vote
    0
    down vote













    Install the unrar package. On Fedora, for eample, you can do so with:



    sudo yum install unrar


    Then, use it to extract the files:



    unrar e filename.rar





    share|improve this answer






















    • Fedora 23 has no unrar package among its official packages. I got the source an installed it in my account.
      – vonbrand
      Feb 23 '16 at 10:20










    • This is completely misleading. There is no such package.
      – vonbrand
      Feb 23 '16 at 20:49














    up vote
    0
    down vote













    Install the unrar package. On Fedora, for eample, you can do so with:



    sudo yum install unrar


    Then, use it to extract the files:



    unrar e filename.rar





    share|improve this answer






















    • Fedora 23 has no unrar package among its official packages. I got the source an installed it in my account.
      – vonbrand
      Feb 23 '16 at 10:20










    • This is completely misleading. There is no such package.
      – vonbrand
      Feb 23 '16 at 20:49












    up vote
    0
    down vote










    up vote
    0
    down vote









    Install the unrar package. On Fedora, for eample, you can do so with:



    sudo yum install unrar


    Then, use it to extract the files:



    unrar e filename.rar





    share|improve this answer














    Install the unrar package. On Fedora, for eample, you can do so with:



    sudo yum install unrar


    Then, use it to extract the files:



    unrar e filename.rar






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 1 '15 at 12:24









    terdon♦

    124k29234408




    124k29234408










    answered Dec 1 '15 at 10:27









    Ramesh Chand Kalirawana

    483




    483











    • Fedora 23 has no unrar package among its official packages. I got the source an installed it in my account.
      – vonbrand
      Feb 23 '16 at 10:20










    • This is completely misleading. There is no such package.
      – vonbrand
      Feb 23 '16 at 20:49
















    • Fedora 23 has no unrar package among its official packages. I got the source an installed it in my account.
      – vonbrand
      Feb 23 '16 at 10:20










    • This is completely misleading. There is no such package.
      – vonbrand
      Feb 23 '16 at 20:49















    Fedora 23 has no unrar package among its official packages. I got the source an installed it in my account.
    – vonbrand
    Feb 23 '16 at 10:20




    Fedora 23 has no unrar package among its official packages. I got the source an installed it in my account.
    – vonbrand
    Feb 23 '16 at 10:20












    This is completely misleading. There is no such package.
    – vonbrand
    Feb 23 '16 at 20:49




    This is completely misleading. There is no such package.
    – vonbrand
    Feb 23 '16 at 20:49










    up vote
    0
    down vote













    On Ubuntu, you have a GUI solution, Archive Manager. It provides extraction of such archive files as .rar files.






    share|improve this answer
























      up vote
      0
      down vote













      On Ubuntu, you have a GUI solution, Archive Manager. It provides extraction of such archive files as .rar files.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        On Ubuntu, you have a GUI solution, Archive Manager. It provides extraction of such archive files as .rar files.






        share|improve this answer












        On Ubuntu, you have a GUI solution, Archive Manager. It provides extraction of such archive files as .rar files.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 19 at 13:00









        MAChitgarha

        1114




        1114



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f246535%2fhow-to-open-rar-file-in-linux%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay