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 11-12-2008, 04:24 PM   #1
mahaila
LQ Newbie
 
Registered: Jul 2005
Location: London
Distribution: Gentoo/solaris/red hat
Posts: 17

Rep: Reputation: 0
Smile Unable to configure yum trying to upgrade rhel as 3 to current day std


I Have been away from linux for some time therefore i decided to build a machine and start learning again.

I'm using i386 and when i try and run the command

[root@localhost /]# yum upgrade
Traceback (most recent call last):
File "/usr/bin/yum", line 6, in ?
import yummain
File "/usr/share/yum-cli/yummain.py", line 23, in ?
import yum
ImportError: No module named yum



I do not understand the output and therfore i have included the yum.conf settings

cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1


# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
#[base]
#name=Red Hat Linux $releasever - $basearch - Base
#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/


#[updates]
#name=Red Hat Linux $releasever - Updates
#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/

Could a kind person give me some pointers ?
 
Old 11-12-2008, 04:36 PM   #2
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
As far as I know the only way you can get updates for RHEL AS 3 is through up2date. If you want to use yum for that you need to use something like CentOS where the updates are free and therefore available through yum.
 
Old 11-12-2008, 05:10 PM   #3
mahaila
LQ Newbie
 
Registered: Jul 2005
Location: London
Distribution: Gentoo/solaris/red hat
Posts: 17

Original Poster
Rep: Reputation: 0
Angry

Thanks for the response, Is centos an rpm? do i need too install configure ?
 
Old 11-12-2008, 05:21 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Yum did not become standard on RHEL until RHEL5, it used up2date instead.

Centos is RHEL with the logos removed and a few things added (like yum). The current version of RHEL/Centos is 5.2.

Now it depends on what you mean by "to current day standards". If you want to keep RHEL3 and just put on current packages, you have two choices. Use up2date or switch it over to Centos(google "yum on RHEL3"). If you want to upgrade the version to current(5.2), then I would strongly suggest a clean install. Again Centos5.2 is free to download/install.
 
Old 11-12-2008, 05:27 PM   #5
mahaila
LQ Newbie
 
Registered: Jul 2005
Location: London
Distribution: Gentoo/solaris/red hat
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you very much for that i will look for 5.2 and download, youve been great
 
Old 11-12-2008, 11:42 PM   #6
felxebe
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Unhappy difficulty to understanding yum

i have a real problem understanding the lessons about yum, resipotory, installation and the like. Can someone please help me?
 
Old 11-13-2008, 12:00 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That's a really wide question. What distro do you run?
 
  


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
Is it possible to upgrade from RHEL 5.0 to 5.1 with yum? janfl Red Hat 1 06-25-2008 09:17 AM
Unable To Configure Left-Hand Mouse With KDE 3.5.8 In Current Woodsman Slackware 7 05-09-2008 11:51 PM
Show all files not directories than have been modified within the current day jianelisj Linux - Newbie 2 03-08-2008 05:54 PM
DISCUSSION: Upgrade to Slackware -current without a -current CD truthfatal LinuxAnswers Discussion 0 09-19-2006 02:42 PM
Swaret upgrade from 10.0 to current broke glibc - unable to login vharishankar Slackware 6 04-03-2006 01:30 AM


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