Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-15-2004, 12:49 AM   #1
LQ Newbie
Registered: Jun 2004
Distribution: Mandrake 10
Posts: 5

Rep: Reputation: 0
Can not unrar

Hi, I want to unrar files in mandrake 10.0.
I have tried with Fille-Roller and it gives me this error: "/bin/sh: line 1: unrar: command not found" , ARK tells me that the tool is not in my PATH. I have tried with 3 different archives, so it is not because its a broken archive. I have tried to get man pages for unrar and rar, but it returns noting.
So what do I do?
Old 06-15-2004, 01:27 AM   #2
Registered: Apr 2004
Location: Los(t) Angeles
Distribution: Fedora Core2, RH9, FreeBSD, Debian, Knoppix,
Posts: 53

Rep: Reputation: 15
SOunds like you need to install rar and unrar. You can get them for linux from
Old 06-15-2004, 05:06 AM   #3
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Or you could add external sources to your Software Media Manager, after which you could use the urpmi command or the GUI front end in the Mandrake Control Center (RPMDrake) to install the RPMs from Mandrake's own repositories, as iirc, rar and unrar are either in the "contrib" or the "PLF" repositories.

Go to Easy URPMI, and follow the instructions there. If you're on dial-up, make sure to check the "Use compressed index, much smaller than normal, with less informations" checkbox.

The instruction "Type this in a terminal as root" is performed as follows:

1) Open a terminal.

2) Type su and hit enter.

3) Type the root password at the Password: prompt and hit Enter. The password will not be echoed to the screen, even with stars, so type carefully.

4) If the password was correctly typed, the prompt should change from a "$" which indicates user access, to a "#" which indicates root access. All commands typed into this terminal window from this point on will be performed as if root had requested them. If this does not work (and you have correctly entered the root password), the problem is that the user is not a member of the wheel group; go to the Mandrake User Management tool in the Mandrake Control Center and add the user to that group, then try steps 2 and 3 again.

5) Select and copy one line of output from the Easy URPMI page (from urpmi.addmedia to or depending on whether you checked the "use compressed index box) and paste that line into the root terminal using CTRL+Shift+V. You should see the repository being added before you are returned to the prompt. Repeat for all repositiores listed in the Easy URPMI Step 3 output.

You should now be able to open RPMDrake (Mandrake Control Center=>Software Management=>RPMDrake (Install Software) and see a great deal of software available for download and installation. You will see even more if you change the filter at the top of the dialog from "Mandrake Choices" (the default) to "All Software by...." (I usually use "by group", but you can choose from several options). Since you know what program you're wanting to install, you could also type "rar" in the Search box to filter the list of available software to exactly what you want atm. Or, you could open a terminal, su to root, and type urpmi unrar, which should install both rar and unrar, as iirc unrar depends on rar, and urpmi has automatic dependency resolution.

If you're using RPMDrake, to install any program, check its checkbox, and the program and all dependencies will be downloaded (or pulled off the CDs, which will be requested by Mandrake complete with ejection of your CD tray) and installed. Be warned that large programs with many dependencies will obviously take a long time for you to download if you're on dialup, so keep an eye on the details before clicking the "install" button.

You may also get alarming-looking messages telling you that there was "no public GPG key found", and asking if you want to install anyway; if you are installing from Mandrake mirrors, you can safely install, and get the GPG keys later to stop this message even coming up.

GPG signatures are encryptions on the RPMs to ensure that the file has not been tampered with. The packager signs the final RPM with a private key and with a public key, then makes the public key available to the public (you and me). RPMDrake compares the key on the RPM with the key on your GPG keyring (the little keyring in your system tray when you run the Mandrake Control Center), and gives this error message if the two do not conform (in this case, because you don't have the key on your keyring at all, so RPMDrake has nothing to compare the RPM's key with).

Mandrake's public GPG keys can be found in the /base/ folder of the Mandrake mirror that EasyURPMI gave you as output for Step 3; if you put the url (without the "with (synthesis.)" part) into a browser, and go up a level in the FTP site that will be displayed, you will see the /base/ folder. Go into that folder and you will see 3 "pubkey" files; select them and right-click to download them to a safe location. The public key for the PLF repository is right in the folder given in the Easy URPMI output, so you will see it if you type that address into a browser. Download that, too.

Once you have downloaded the keys, open a terminal, su to root (as above) and then use the cd command to browse to the folder that you saved the files to. Then do an ls to display the names of the files in that folder for easy reference for the next step.

Type gpg --import <keyfile_one_name> <keyfile_two_name> <keyfile_three_name> <keyfile_four_name> (that's why we displayed the file list; you should be able to type in the names correctly since you can just look on the terminal screen to see what they are), and hit Enter.

The keys should be added to your keyring, and you should get no more key-related errors when installing software (unless there's really something wrong with the key).

Hope this helps.
Old 06-15-2004, 09:38 AM   #4
LQ Newbie
Registered: Jun 2004
Distribution: Mandrake 10
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you both.
I went with motub approach, mainly because the result means less cluttering.
All went flawless.
I think its a very nice concept off doing things. And if one knows the URL's you don't have a problem if the site goes down.
Again tnx for a very good answer :-)

Last edited by Christoffer81; 06-15-2004 at 09:47 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
UNRAR Password inonothing Linux - Software 4 09-27-2009 08:59 AM
unrar installation The_Messiah Linux - Software 2 04-15-2005 03:14 PM
not getting way to unrar the file b0nd Linux - Newbie 3 04-04-2005 02:08 PM
How to use unrar? JunZ Linux - Software 1 06-05-2004 09:36 PM
Unrar 3.x for Slackware 3.5 Brett-NZ Linux - Newbie 0 10-07-2003 11:56 PM

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration