LinuxQuestions.org
Review your favorite Linux distribution.
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 10-19-2010, 04:15 AM   #1
griffey
Member
 
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89

Rep: Reputation: 15
yum remove python (and 630+ dependencies--oops!)


Hi folks.

A friend of mine did something and I'm a bit stumped. He was having problems with python and python-devel complaining about conflicting versions or some such when he was updating with yum.

I told him (yes, a little of this is my fault) to try removing and reinstalling python and/or python-devel.

Little did I know...

He ran "yum remove python" and it listed over 600 (!) dependent packages to remove as well. Without telling me THAT part he clicked "y" and then watched as yum removed python and all sorts of other stuff (including yum--how's that for irony?) .

I have to go deal with this situation tomorrow morning but he has so blown away this system I almost don't know where to start. Sure I could re-download the rpm of python and reinstall, it but then I'd still have to one-by-one reinstall all the other rpms that were blown away by the python removal with yum.

Any obvious suggestions (other than laughter, of course). And yes, I do take at least partial responsibility for this. But really? 600+ packages and he clicked "y"? Yeesh.

Oh, it's a RHEL 5 machine.

Thanks in advance for any suggestions (or mocking).

G.--
 
Old 10-19-2010, 06:43 AM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 892

Rep: Reputation: 119Reputation: 119
I don't remember python having so many dependencies. You could try "yum install python" or "yum search python" for all the python listings.
 
Old 10-19-2010, 06:50 AM   #3
zoomzatag
LQ Newbie
 
Registered: Aug 2010
Posts: 14

Rep: Reputation: -3
hi griffey,

u can use rpm -evf --nodeps <pakagename>

its removes only the specified package without removing the dependencies....

again try to install the required package


regards,
Zommz

Last edited by zoomzatag; 10-19-2010 at 06:57 AM.
 
Old 10-19-2010, 07:05 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by jmc1987 View Post
I don't remember python having so many dependencies. You could try "yum install python" or "yum search python" for all the python listings.
OP is right. Using yum remove python will completely fsck your system in RHEL/CentOS. More than 600 packages are removed with python. And yum is the one. So it can not be used once python has been removed. Yum, I guess, has been written in python and this is why.
 
Old 10-19-2010, 09:00 AM   #5
griffey
Member
 
Registered: Jan 2004
Location: East Central Illinois
Distribution: RHEL 4/5/6 and Fedora
Posts: 89

Original Poster
Rep: Reputation: 15
So there's no quick and dirty way to get all of this "back" is sort of what I was getting at.

I guess I'll see if I can't use rpm to get python and yum back and try to rebuild from there.

G.--
 
Old 03-01-2012, 07:42 AM   #6
proprietor
LQ Newbie
 
Registered: Mar 2012
Location: California
Distribution: centos/ami
Posts: 1

Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by zoomzatag View Post
hi griffey,

u can use rpm -evf --nodeps <pakagename>

its removes only the specified package without removing the dependencies....

again try to install the required package


regards,
Zommz
using rpm -evf --nodeps = Don't do a dependency check before installing or upgrading a package. It will not protect you from breaking yum if you uninstall python.

Last edited by proprietor; 03-01-2012 at 07:44 AM.
 
Old 05-17-2012, 06:18 AM   #7
shekhars
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
removed python .. system crashed... is there any rescue method

i installed python2.6 on centos 5.8 so as to work with Castalia. But it didnt solved my problem, python -V was showing the same pyhton 2.4 . So i uninstalled the python 2.4, but the system got crashed.

Please help, if there is any rescue or restoration method. please ASAP.
 
  


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 a package along with its dependencies with yum digsecurity Linux - Newbie 4 08-13-2010 05:17 AM
yum remove without dependencies aclhkaclhk Linux - Software 1 01-26-2010 05:08 AM
# yum remove dbus - trying to remove the whole system... atnonis Fedora 4 11-23-2007 06:31 AM
python and bittorrent dependencies jkassemi Linux - Software 2 05-09-2004 03:39 PM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:37 PM.

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
Open Source Consulting | Domain Registration