LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-14-2012, 08:42 AM   #1
dailyoliver
LQ Newbie
 
Registered: Feb 2012
Posts: 8

Rep: Reputation: Disabled
Yum erase/remove and uninstall rpm files


Hello everyone I would really appreciate a little bit of advice, so any help would be greatly appreciated.


I have 4 quick questions that involves YUM and rpm files.

1- what is the difference between 'yum erase' and 'yum remove'?

2- when using 'yum remove <package_name>' do you also have to ALSO do ' rpm -e package_name' to remove the rpm file?

3- is it ok (after two previous steps) to delete the original package_name.rpm by doing 'rm -rf /dir/package_name.rpm'

4- do you have to manually delete all the programs folders i.e. for postgresql 'rm -rf /usr/pgsql-9.0@ ??

I am quite confused how you uninstall everything correctly as there seems to be files all over the place, even after running yum remove

a clear explanation would be very much appreciated.

a big thanks - daily oliver...
 
Old 02-14-2012, 08:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
1 - nothing.

2 - no.

3 - yes (but the "-r" is pointless as its not a directory)

4 - no. Well... additional configuration files can be left behind, so reinstalling can pick up where it left off, if in doubt, just check, but generally no. It's not like it would be acceptable to delete your data by uninstalling postgresql. It will generally remove what it put there.
 
Old 02-14-2012, 08:49 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,669

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
sounds a little bit like homework but maybe not

normally only
Code:
su -
yum remove ??????
--- or this ---
yum erase ???????
is just fine
you might want to read the man page
Code:
su -
man yum
for most 99.9% there is no need to remove folders.
UNLESS there are files in them that were NOT installed by the package manager

yum IS used so you do not have to use "rpm" except as a last resort

and never never NEVER use the " -y" option with uninstalling programs
 
Old 02-14-2012, 08:52 AM   #4
dailyoliver
LQ Newbie
 
Registered: Feb 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
GUYS

What can I say?

Helpful

Professional

and very clear!!!

Thanks a lot - Daily Oliver...
 
Old 02-14-2012, 08:52 AM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,755

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
@ Reply

Hello dailyoliver,

Welcome to LQ!!!

Quote:
1- what is the difference between 'yum erase' and 'yum remove'?
1. Both are the same. If you will do man yum you will find that it will list both options as one.

Quote:
]2- when using 'yum remove <package_name>' do you also have to ALSO do ' rpm -e package_name' to remove the rpm file?
2. No, it is not needed. Yum and rpm are two different methods of package management. Yum is a useful tool when you have got repository configured. Yum will automatically resolve the dependecies and will install the package. rpm is usually used when you are trying to install a single rpm file. Remember if you know that the rpm you are trying to install has got dependencies then it is a good idea to incorporate that rpm file in your repository so that you can use yum to resolve the related dependencies for you.

Quote:
3- is it ok (after two previous steps) to delete the original package_name.rpm by doing 'rm -rf /dir/package_name.rpm'
3. Don't get confused between yum and rpm. These are two different methods for package managment. Have a look at the following link to get the information on yum and rpm: http://www.google.co.in/url?sa=t&rct...Rn_yIw&cad=rja

Quote:
4- do you have to manually delete all the programs folders i.e. for postgresql 'rm -rf /usr/pgsql-9.0@ ??
4. As far as I am aware not required.
 
Old 02-14-2012, 08:54 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
John, you su to read manpages???
 
Old 02-14-2012, 11:40 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,669

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
"su- " typing habit
 
  


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
remove rpm files using yum HarryBoy Linux - Newbie 4 11-10-2011 10:07 PM
can rpm remove config files during uninstall? drokmed Linux - Software 1 03-15-2007 04:59 AM
yum remove rpm --> how to reinstall rpm npubudu Linux - Software 5 01-25-2007 08:08 AM
uninstall software ( those not installed by yum/rpm) sn68 Linux - Desktop 5 09-08-2006 02:36 PM
How do you uninstall/remove an rpm package? Plz Help! Gormless Linux - Newbie 3 10-23-2004 03:25 PM


All times are GMT -5. The time now is 01:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration