LinuxQuestions.org
Review your favorite Linux distribution.
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-21-2011, 07:11 AM   #1
infosrig
LQ Newbie
 
Registered: Feb 2010
Location: Tamil Nadu, India
Distribution: CentOs 5.5
Posts: 28

Rep: Reputation: 0
Question How to Re-install YUM


Accidently I uninstalled yum package.
How to re-install it.

CentOS 5.5
64bit
2.6.18-194.el5

Code:
[root@gs13 etc]# yum update
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, Nov 11 2010, 13:30:19) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
 
Old 02-21-2011, 08:56 AM   #2
forgottenromeo
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
have you tried sudo apt-get yum
 
Old 02-21-2011, 09:25 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
( There is no apt-get in CentOS ! )

# yum deplist yum : Which you of course can't do with no 'yum'.
The dependency list is here :
python : 2.4.3-27.el5
python-urlgrabber.noarch 3.1.0-5.el5
yum-metadata-parser : 1.1.2-3.el5.centos
python-sqlite : 1.1.7-1.2.1
yum.noarch 3.2.22-26.el5.centos
yum-fastestmirror.noarch 1.1.16-14.el5.centos.1
rpm-python : 4.4.2.3-18.el5
rpm : 4.4.2.3-18.el5
python-elementtree : 1.2.6-5
python-iniparse.noarch 0.2.3-4.el5

You can get the packages here http://mirror.centos.org/centos/5.5/
os/ : Packages for i386 or x86_64
updates/ : for i386 or x86_64 .

The command 'uname -a' will tell, if you require i386 or x86_64 packages.
( The packages are on the install DVD / cd set too, unless it's a live cd.)

The packages can then be installed with # 'rpm -Uvh --force <package>'.

..

Last edited by knudfl; 02-21-2011 at 09:39 AM.
 
1 members found this post helpful.
Old 02-21-2011, 10:30 PM   #4
infosrig
LQ Newbie
 
Registered: Feb 2010
Location: Tamil Nadu, India
Distribution: CentOs 5.5
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
( There is no apt-get in CentOS ! )

# yum deplist yum : Which you of course can't do with no 'yum'.
The dependency list is here :
python : 2.4.3-27.el5
python-urlgrabber.noarch 3.1.0-5.el5
yum-metadata-parser : 1.1.2-3.el5.centos
python-sqlite : 1.1.7-1.2.1
yum.noarch 3.2.22-26.el5.centos
yum-fastestmirror.noarch 1.1.16-14.el5.centos.1
rpm-python : 4.4.2.3-18.el5
rpm : 4.4.2.3-18.el5
python-elementtree : 1.2.6-5
python-iniparse.noarch 0.2.3-4.el5

You can get the packages here http://mirror.centos.org/centos/5.5/
os/ : Packages for i386 or x86_64
updates/ : for i386 or x86_64 .

The command 'uname -a' will tell, if you require i386 or x86_64 packages.
( The packages are on the install DVD / cd set too, unless it's a live cd.)

The packages can then be installed with # 'rpm -Uvh --force <package>'.

..
Thank you verymuch for rply knudfl!!

I downloaded the python packages from as you mentioned URL.
I couldnt find make or install files there. Where to install those and how? in etc?. Since I am newbie now only learning things.
pls help..
 
Old 02-22-2011, 09:01 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
All packages are to be installed with 1) su 2) rpm -Uvh --force <package>
There is no 'make', etc. in a binary package.


You forgot the reply for this : 'uname -a' : Please tell, which output you got.

The architecture (i386 or x86_64) is important when downloading the packages.

..
 
Old 02-22-2011, 10:24 PM   #6
infosrig
LQ Newbie
 
Registered: Feb 2010
Location: Tamil Nadu, India
Distribution: CentOs 5.5
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
All packages are to be installed with 1) su 2) rpm -Uvh --force <package>
There is no 'make', etc. in a binary package.


You forgot the reply for this : 'uname -a' : Please tell, which output you got.

The architecture (i386 or x86_64) is important when downloading the packages.

..
Thanks for the explanation.
CentOS 5.5
>uname -a
x86_64 GNU/Linux
 
Old 02-23-2011, 05:33 AM   #7
infosrig
LQ Newbie
 
Registered: Feb 2010
Location: Tamil Nadu, India
Distribution: CentOs 5.5
Posts: 28

Original Poster
Rep: Reputation: 0
Some of the packages I couldn't find in that location.

tnx in advnce 4 rply!!!
 
Old 02-23-2011, 03:57 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Python-2.4.3-27.el5_5.3.x86_64.rpm is in updates
http://mirror.centos.org/centos/5.5/...5.3.x86_64.rpm

All other packages http://mirror.centos.org/centos/5.5/os/x86_64/CentOS/
 
Old 02-23-2011, 11:51 PM   #9
infosrig
LQ Newbie
 
Registered: Feb 2010
Location: Tamil Nadu, India
Distribution: CentOs 5.5
Posts: 28

Original Poster
Rep: Reputation: 0
Python Packages installed successfully but for yum..
I am getting following Error

Code:
[root@gs13 Downloads]# rpm -Uvh --force yum-3.2.22-26.el5.centos.noarch.rpm 
error: Failed dependencies:
        yum-fastestmirror is needed by yum-3.2.22-26.el5.centos.noarch
[root@gs13 Downloads]# rpm -Uvh --force yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm 
error: Failed dependencies:
        yum >= 3.0 is needed by yum-fastestmirror-1.1.16-14.el5.centos.1.noarch
[root@gs13 Downloads]#
tnx in advance!!
 
Old 02-23-2011, 11:57 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Looks like you need to install yum- fastest mirror first.
 
Old 02-23-2011, 11:57 PM   #11
infosrig
LQ Newbie
 
Registered: Feb 2010
Location: Tamil Nadu, India
Distribution: CentOs 5.5
Posts: 28

Original Poster
Rep: Reputation: 0
Thumbs up

YES DONE IT!!!
I installed simultaneously all yum packages by rpm -Uvh --force yum*rpm. Above error resolved.


Thank you soooo much for helping me to install YUM Packages..

knudfl ,I dont know how to thank you..

I installed the PIRUT also by yum!!!

Last edited by infosrig; 02-24-2011 at 01:08 AM. Reason: Resolved the Isue
 
  


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
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
Yum Install flvtool2 (and ruby install) Problem athomas Linux - Server 1 10-01-2009 06:04 PM
yum install PHP: yum tries to install duplicate httpd beebopbogo Linux - Software 1 05-26-2009 02:08 AM
I cannot install: yum install gstreamer-plugins-ugly zhemnic Linux - Software 1 02-28-2008 02:45 PM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM

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

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