How to UnRAR files in Linux Command Line
- Added new sections in Server project. Also edited the wording so that voice is mostly first-person.
- Added new entries to Imbentori project.
- Edited this site’s footer. Notably, I changed from 512KB Club to the leaner 250KB Club.
- Edited some lines in Always Carry project.
Recently, I had to download some file from the internet.
But said file is compressed into
According to the Debian packages,
sudo apt install unrar won’t work anymore because it “is missing, has been obsoleted, or is only available from another source.”
I don’t deal with that.
So here’s my workaround. The following assumes you1 have a Debian-like Linux 64-bit distro, and are comfortable with the terminal.
My UnRAR Workaround
- Get RAR archiver from RARLAB Archiver.
You can either:
- Go their website, and click on the link that matches your system; or
- Enter in the terminal:
curl -LO https://www.rarlab.com/rar/rarlinux-x64-6.0.1.tar.gz
Note that at the time of writing, the current version is
6.0.1. Be sure to check the site for latest updates.
- Go to the folder where it got downloaded to.
tarto extract the files
tar -xvzf rarlinux-x64-6.0.1.tar.gz
-xoption means extracts the file/s from tar
-voption means verbose, to see the extraction progress
-zoption decompresses all the files within, if any
-foption indicates the filename you’ll work on
- Go into the extracted folder.
It should have a
unrarexecutables, among other files. Run
cd rar/ sudo make
This will copy the executables to the
/usr/local/binand is now available to the user (you!).
- Time to extract the
.rarfile you got there:
unrar e legallyDownloadedFile.rar
eoption means extract.
I’m actually talking to my future self. This is my notes. ↩︎