LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unrar problem (need to uninstall / reinstall) (https://www.linuxquestions.org/questions/linux-newbie-8/unrar-problem-need-to-uninstall-reinstall-303100/)

ArthurDent 03-18-2005 05:18 AM

unrar problem (need to uninstall / reinstall)
 
Hi Chaps,

I have managed to make a bit of a mess of my unrar utility.

I discovered that it was not installed so I downloaded a version (v2.71) from tucows and installed it from source.

"unrar e somefile.rar" gave me "corrupted header" errors on a known working archive so I thought I had better uninstall that version and find another.

"make unistall" gave me a "no target to make - stop" error so I guess that there was no option to unistall. Instead I did a "locate unrar" and a "whereis unrar" (after updatedb) which seemed to show no trace or unrar anywhere except in the directory I untarred the source and in /usr/local/bin. So I simply deleted all the executable and the untar direcory.

Next I installed another version of unrar - thi time using apt-get (should have done that first!) this time version 3.4.3-1.1.fc3.fr.

Now when I try "unrar e somefile.rar" I get
Code:

[mark@localhost rars]$ unrar e somefile.rar
bash: /usr/local/bin/unrar: No such file or directory

and when I do a "whereis" I get this
Code:

[mark@localhost rars]$ whereis unrar
unrar: /usr/bin/unrar /usr/share/man/man1/unrar.1.gz

So it seems that my FC3 system is still expecting to find unrar in /usr/local/bin while the real version is actually in /usr/bin

How do I tell Fedora where it should be looking?

How should I have uninstalled that rogue software (without being able to do "make uninstall") so that this won't happen again?

Thanks guys...

Mark

prasanta 03-18-2005 05:36 AM

Your PATH environment variable is not set properly. Your system should also look inside /usr/bin directory.

Add this line to your /etc/profile or your .bashrc file
Code:

export PATH=$PATH:/usr/bin
You should always use package management to install software. Installing software from sources sometimes may not give the option of uninstallation

-Prasanta


ArthurDent 03-18-2005 05:49 AM

Thanks Prasanta,

Actually all I did was to run "updatedb" again and it seemed to sort the problem out. I was just coming back here to say that when I found that you had posted your reply.

Thanks again...

Mark

Tanc 03-18-2005 06:50 AM

I've heard that rar was not free , can somebody confim ?
Can't we extract a rar document with ark ?

prasanta 03-18-2005 07:13 AM

The rar utility is not free. It is a shareware.

-Prasanta


All times are GMT -5. The time now is 01:56 AM.