1

I wanted to install rar from packages ( https://packages.ubuntu.com/search?keywords=unrar ), unfortunately it seems that it is impossible on Raspbian:

pi@raspberrypi:~ $ rar
bash: rar: command not found
pi@raspberrypi:~ $ sudo apt install unrar
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package unrar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'unrar' has no installation candidate
pi@raspberrypi:~ $ sudo apt install rar
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package rar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'rar' has no installation candidate
pi@raspberrypi:~ $ 

Is it necessary to install from source due to lack of build for Pi or is there an alternative?

2

You can unpack RAR files with 7-zip.

Install that with sudo apt install p7zip p7zip-full

Use 7z e my_rar_file to extract the contents. NOTE: 7z can't create rar files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.