How do I unrar a file if I cannot install unrar ? Below is the error message I got.
sudo apt install unrar-free
is not in the sudoers file. This incident will be reported.
How do I unrar a file if I cannot install unrar ? Below is the error message I got.
sudo apt install unrar-free
is not in the sudoers file. This incident will be reported.
Okay, it seems you are either using a public PC (in a cyber cafe, or a computer lab) where you do not have the root / sudo password, or there are restrictions.
You can try extracting it online (NOTE: To be on the safer side make sure your rar file doesn't contain any sensitive information.).
For example, you can use this site: http://online.b1.org/online
or
You can try using a portable app (for example an Appimage of an archiving software like 7zip or Peazip) on your pendrive. These softwares don't need any installation, just download the appimage file, right click on the file and allow executing as a program (or use chmod command to make it executable if it is not) as described here: How to make a file (e.g. a .sh script) executable, so it can be run from a terminal (If it is not an appimage, follow the instructions given on the release page of the file.) ...and take it to whichever PC you need it, plug the pendrive, and run the portable program! That's all.
Another solution is to use PeaZip program which is quite portable and you can use it natively in linux without the need of a sudoer user.
It supports multiple archive types including RAR. Since it's on your system , you don't have to worry about the disclosure of your information ( as it's maybe the case in online extractors)