LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-13-2006, 09:58 AM   #1
esb
LQ Newbie
 
Registered: Dec 2006
Location: Norway
Distribution: Gentoo, RedHat
Posts: 5

Rep: Reputation: 0
Question Help! Newbie needs to uninstall (on RH).


I tried to install a program. I downloaded a tar-file. I created a "download" directory in the tmp dir and downloaded the tar-file to that. I then unpacked the source files to that same directory (which I now know is not a good thing to do). I installed the files using make and make install. The problem is that it doesn't work properly and I would like to uninstall everything and try once more.
I could of course try to remove the "download" dir I created and everything in it, but during the install process files and dirs were put everywhere. How do I get rid of these?
Linux is totally new for me (used to the practical uninstall commands of Microsoft Windows).

I use RedHat.

All help appreciated!
 
Old 12-13-2006, 10:33 AM   #2
Broder
Member
 
Registered: Oct 2006
Location: Santa Barbara, C.A.
Distribution: Mood dependent
Posts: 117

Rep: Reputation: 15
What is the program that you installed? If your program is available through the repositories then you could possibly uninstall using yum.

yum remove program

then do a tidy install using

yum install program

You might need to set up your yum.repo first if you haven't already ...

We can come back to that ....

Last edited by Broder; 03-13-2007 at 01:23 PM.
 
Old 12-13-2006, 10:49 AM   #3
esb
LQ Newbie
 
Registered: Dec 2006
Location: Norway
Distribution: Gentoo, RedHat
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your quick repl!y! (but I am afraid I didn't understand much of it)

I am such a newbie that I don't even know what a repository is or how to see if may see if my the program is available through it!

I was supposed to install asterisk server (for SIP communication). Only the man function works. I am not able to run the program at all now. I somehow managed to run it from one directory last night, but now I cant't remember where that was.


What is yum?
 
Old 12-13-2006, 10:59 AM   #4
Broder
Member
 
Registered: Oct 2006
Location: Santa Barbara, C.A.
Distribution: Mood dependent
Posts: 117

Rep: Reputation: 15
yum is short for 'yellow dog update manager'. Do ls /etc/yum.repo.d/ and you should have some files in there. These files list repositories which are data stores on servers where the installation files are stored. So when you issue a yum command, assuming you are online?, such as yum install xine then the update manager will find the install files for xine from the redhat sites (or elsewhere) and install it. The beauty of it is that it will also deal with any dependency issues you might have. Not all the programs you may want will be available in the repositories but alot of the stuff you will need will be. You might need to add some extra files to your yum.repo.d directory.

For the moment, let us know:
1) What program you are installing
2) What is the output of ls /etc/yum.repo.d/ command?
 
Old 12-13-2006, 11:23 AM   #5
esb
LQ Newbie
 
Registered: Dec 2006
Location: Norway
Distribution: Gentoo, RedHat
Posts: 5

Original Poster
Rep: Reputation: 0
I wrote
ls /etc/yum.repo.d/

from root and got

ls: /etc/yum.repo.d/: No such file or directory

I am trying to install asterisk (view http://www.asterisk.org/)

Do you get anything out of this?
 
Old 12-13-2006, 02:08 PM   #6
Broder
Member
 
Registered: Oct 2006
Location: Santa Barbara, C.A.
Distribution: Mood dependent
Posts: 117

Rep: Reputation: 15
What distro exactly are you using?
Can you return the contents of locate yum
 
Old 12-13-2006, 06:10 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
FYI, YUM uses a DB it updates when you run the yum cmd(s).
If the OP manually downloaded & installed from a tar file without invoking yum, yum will NOT know about it....
 
Old 12-13-2006, 10:12 PM   #8
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Many software packages that you install using "./configure && make && make install" can be uninstalled using "make uninstall" from the source directory.

With regards to using YUM, I think it is better to use the programs in the repositories rather than building from source. This saves a lot of headaches later. Also, as was pointed out above, programs installed using YUM can be removed cleanly using YUM. Unfortunately, YUM will not remove programs compiled from source.

What version of Redhat are you using?

--Ian
 
Old 12-15-2006, 08:23 AM   #9
esb
LQ Newbie
 
Registered: Dec 2006
Location: Norway
Distribution: Gentoo, RedHat
Posts: 5

Original Poster
Rep: Reputation: 0
Hi again

I use RedHat Enterprise Linux 4

And though I now have learned the hard way that rpm instals are easier to handle, I thought I had to do this sooner or later as I am going to edit the code and later compile it from code again.

Anyway I would like to be able to use yum for other downloads. What do I do to make it work?

When i run locate yum I get:
/etc/log.d/conf/logfiles/yum.conf
/etc/log.d/conf/services/yum.conf
/etc/log.d/scripts/services/yum
/usr/share/apps/ksirc/pics/emoticons/yummie.png
/usr/share/rhn/rhn_applet/rhn_applet_yum.py
/usr/share/rhn/rhn_applet/rhn_applet_yum.pyc
/usr/share/rhn/up2date_client/repoBackends/yumRepo.py
/usr/share/rhn/up2date_client/repoBackends/yumBaseRepo.pyc
/usr/share/rhn/up2date_client/repoBackends/yumBaseRepo.py
/usr/share/rhn/up2date_client/repoBackends/yumRepo.pyc
/usr/lib/ooo-1.1/share/psprint/fontmetric/Ryumin-Light.Roman.afm
/usr/lib/ooo-1.1/share/psprint/fontmetric/Ryumin-Light-83pv-RKSJ-H.afm
 
Old 12-15-2006, 08:06 PM   #10
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
It looks like YUM is not installed. You can download it from Here. Make sure you get the suitable version for RHEL4.

--Ian
 
  


Reply


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
how to uninstall rpm [i'm newbie] vanhelsing Linux - Software 2 05-27-2004 02:11 AM
Problem with uninstall - newbie alert Rav3n Slackware 1 09-10-2003 07:57 PM
Problem with uninstall - newbie alert Rav3n Linux - Newbie 2 09-05-2003 07:19 PM
Uninstall programs rh 8.0 Help the newbie! Spyder~1 Linux - Newbie 5 07-25-2003 04:36 PM


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

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