Questions tagged [rar]

rar is the Linux version of winrar, a file compression program created by Eugene & Alexander Roshal. It was created in 1993 and is still in wide use. Features include multipart archives, encryption, and self-extracting. It is available on Linux, MacOS, Windows, Android, and MSDOS. Official website: http://rarlab.com/

51 questions
158
votes
11 answers

How to open rar file in linux?

I have a file with .rar extension, ex: foo.rar I want to extract content from that file, how do I extract it?
shas
  • 2,578
  • 4
  • 17
  • 31
19
votes
4 answers

Extracting SFX files in Linux

I am trying to extract an SFX file under Linux Mint 15 (64 bit) but it's not working. I've done chmod +x on the file and tried to run it like a script with no luck (it gives me an error that there's no such file or directory. What's interesting is…
Aaron
  • 297
  • 1
  • 2
  • 10
19
votes
5 answers

Is it possible to add error correction codes (BCH, RS or etc.) to a single file?

As far as I know, WinRAR archives may contain ECC (error correction codes), so if the archive is slightly damaged, then it can be fixed by itself. For example, I can first encode archives.tar to archives.tar.ecc, and then upload it to my server. If…
Kevin Dong
  • 1,139
  • 1
  • 9
  • 18
16
votes
6 answers

Find recursively all archive files of diverse archive formats and search them for file name patterns

At best I would like to have a call like this: $searchtool /path/to/search/ -contained-file-name "*vacation*jpg" ... so that this tool does a recursive scan of the given path takes all files with supported archive formats which should at least be…
mdo
  • 271
  • 1
  • 2
  • 6
11
votes
1 answer

How to use p7zip to open RAR files?

This is a more specific question of How to open rar file in linux (asked in 2015) that had no detailed answer for p7zip to open RAR files at this time of writing. p7zip is essentially the 7-zip archive manager on Linux, except that does not include…
user125388
9
votes
2 answers

Working with rar files

I have a directory full of rar files, with extensions ranging from .r00 to .r30. It also has one file with .rar extension. From all of this must come a video file. How do I do it?
tshepang
  • 64,472
  • 86
  • 223
  • 290
6
votes
3 answers

How to get extract/compress option on right clicking?

I am using Linux Mint 14 Nadia . Earlier whenever I right clicked any folder I got options like Extract it, Compress etc. But now I am not getting them . Probably I changed/deleted some of the utilities . I have nautilus installed on my system . Is…
tusharmakkar08
  • 1,805
  • 1
  • 22
  • 23
5
votes
3 answers

How can I extract a RAR file on Debian?

I've got a 20GB RAR file to extract with a password on Debian Linux Google Cloud VM. I first tried sudo apt-get install unrar but the following output was given: Reading package lists... Done Building dependency tree Reading state…
magmacollaris
  • 63
  • 1
  • 1
  • 4
5
votes
3 answers

Unrar to folder with same name as archive

I have a lot of rar files - Folder/ --- Spain.rar --- Germany.rar --- Italy.rar All the files contains no root folder so it's just files. What I want to achieve when extracting is this structure: - Folder/ -- Spain/ ---- Spain_file1.txt ----…
4
votes
1 answer

How to unrar nested RAR files?

I have a recursive directory structure which contains a lot of RAR files. I have been using this unrar command to extract all contained files into the current working directory: unrar e -r -o- *.rar This is fine. How ever, some RAR files contain…
Viktor
  • 161
  • 1
  • 5
4
votes
1 answer

unrar part of a multipart rar file

Suppose you have a multipart rar file, say file.part1.rar, file.part2.rar, file.part3.rar. I know that I can extract only the first parts using for example unrar e -kb file.part1.rar However assume that I have only file.part3.rar and not part 1…
student
  • 17,875
  • 31
  • 103
  • 169
4
votes
4 answers

Creating recursively sorted RAR archive

For various reasons I decided to use RAR archive to store some data, instead compressed tar. Happy with decision, except for one thing: I can't find a way to store files sorted. Order of files is important as I plan to query archive and results…
zetah
  • 1,997
  • 4
  • 20
  • 21
3
votes
2 answers

How to convert from rar or tgz to squashfs without having to extract to temporary folder?

I enjoy using squashfs for compression because of the simplicity of mounting them as loop devices to access the files inside. I have a lot of rar, tgz and zip files that I would like to convert to squashfs. In this answer, I saw that it is possible…
localhost
  • 223
  • 1
  • 9
3
votes
1 answer

Unrar specific files using wildcards

I want to extract only a specific file type using unrar. With unzip command I can extract all archives with a specific extension. unzip "$FileName" *[.txt,.TXT] How can I do the same with unrar? Do I need to iterate through every file?
DarkXDroid
  • 219
  • 2
  • 9
3
votes
1 answer

Bash completion for `unrar`

When bash-completion is loaded, unrar x completes after pressing tab to RAR-archives in the directory. But for multipart archives with the new naming convention, like Filename.part01.rar Filename.part02.rar Filename.part03.rar it doesn't see…
viuser
  • 2,564
  • 3
  • 29
  • 57
1
2 3 4