LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2008, 05:14 PM   #1
skibler1223
Member
 
Registered: Feb 2008
Distribution: Kubuntu 8.10
Posts: 40

Rep: Reputation: 16
Accidentally uninstalled yum


I got a little carried away in trying to get PHP and Apache compiled to work together. I was having huge problems with libxml2 config not being found.

I uninstalled libxml2 without checking dependencies and it dumped like 30 programs along the way including yum.

I tried to reinstall via an rpm package but it is saying this when I run it:

Code:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Mar 14 2007, 18:51:08)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)]
Will I be better off just re-installing the entire thing or what should I do?
 
Old 02-17-2008, 07:02 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you are unsure what removing a package does next time try 'rpm --test -e packagename' before you erase it. If you erase it and are still unsure use the rollback function. (On CentOS-5) Yum requires packages: (coreutils), python, python-elementtree, python-sqlite, rpm, rpm-python, urlgrabber and yum-metadata-parser. Removing LibXML2 results in removing yum-metadata-parser so you could possibly have only one necessary package missing. If unsure check they're installed with 'rpm -q packagename', (download and) place all the RPM's you need in a dir and do 'rpm --test -i *.rpm'. It'll tell you if it thinks you missed a necessary package.
 
Old 02-17-2008, 08:16 PM   #3
skibler1223
Member
 
Registered: Feb 2008
Distribution: Kubuntu 8.10
Posts: 40

Original Poster
Rep: Reputation: 16
Thanks a mil, I have been compiling...literally for the last 2 to 3 days now. I'm getting to the point where I'm turning to RPMs b/c when they do work its so much faster.

I actually just couldn't find the CentOS 5 repository (very easily) with all the RPMs. Once I found that I was good to go.

Got REAL quick at:

wget [PASTE URL IN] [ENTER]

lol to the point of almost calling Guinness to make a world record!

Thanks again!
 
  


Reply



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
Um, I think I accidentally uninstalled GNOME on FC5 Fegenbush Linux - Desktop 2 02-01-2007 08:15 AM
Uninstalled one of two kernels, yum keeps trying to download packages for it ttnunam Linux - General 3 11-16-2006 01:09 AM
Accidentally uninstalled grep on slackware... what now? KickMeElmo Linux - Desktop 4 08-25-2006 10:10 PM
Uninstalled Yum, How to re-install? saquib Fedora 13 04-12-2006 09:15 AM
FC4: Uninstalled python mistakenly - Yum too mailforbiz Linux - Newbie 4 01-25-2006 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:11 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