Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ive searched google and this forum for possible solutions to install yum. The problem is that when installing yum you have to do it from source or rpm files, i have tried both.
When installing with RPM files
- When installing from RPM files i install a few of the dependencies, but after i have installed couple of dependencies i see that more than one dependency has serveral other dependencies which again has other dependencies, making it an infinite number of dependencies. So this method is not very good.
When installing from source code
- When running "make" i get the following error:
make[1]: Leaving directory `/opt/yum-3.2.20/etc'
make[1]: Entering directory `/opt/yum-3.2.20/docs'
echo "Nothing to do"
Nothing to do
make[1]: Leaving directory `/opt/yum-3.2.20/docs'
make[1]: Entering directory `/opt/yum-3.2.20/po'
intltool-update --gettext-package=yum --pot
make[1]: intltool-update: Command not found
make[1]: *** [yum.pot] Error 127
make[1]: Leaving directory `/opt/yum-3.2.20/po'
make: *** [subdirs] Error 1
..so i think "ok" so all i need to do is to install the "intltool-update" package. I go to rpmfind.net and find the package but i see that this package again has serveral dependencies that again requires other dependencies. I then download the source code instead to this tool, but when running the configure script i am again faced with dependencies that is needed to run the configure script successfully.
Does someone know a good way to install yum on RHEL ? I appericiate all help.
Yum is not already installed. This is a specific RHEL installation and altering the packages that come with the installation is not an option. "which yum" displays that i cant find anything like yum anywhere in the PATH environment variable. If i do i "nice --19 find / -name *yum -ls" nothing is displayed. Please dont worry about if yum is installed or not, the question is how i can install yum when it isnt installed which is the case here.
This is a specific RHEL installation and altering the packages that come with the installation is not an option.
Which version of RHEL is this? 3 or 4?
If altering the packages is not an option, then I'd advise against installing yum. You'll be trailblazing on some experimental terrain.
I'm going to take a WAG that you're not subscribed to the RHN. If that's the case, why not run CentOS and let the base installation / official repos handle the headache for you?
If altering the packages is not an option, then I'd advise against installing yum. You'll be trailblazing on some experimental terrain.
I'm going to take a WAG that you're not subscribed to the RHN. If that's the case, why not run CentOS and let the base installation / official repos handle the headache for you?
Yes, im subscribed to RHN. Its RHEL 4.
I was able to install yum now with the packages from CentOS 4.6 64-bit (grabbed RPMs manually from the repo). But even when using valid and current repositories i get this message:
"# yum update
Setting up Update Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - Null is not a valid release or hasnt been released yet http://mirror.centos.org/centos/Null...ta/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: update
failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try."
It doesnt seem like its able to use any of the mirrors.
Here is the yum.conf:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3
enabled=1
priority=1
protect=1
Any ideas why yum is not able to use any of these repos ? When looking at the output from yum it seems like it doesnt get any value for the $releasever version, but i cant imagine why i doesnt get any value.
Ok, i now changed the $releasever variable with the 4.6 number eventhough it seems like its recommended to use this variable.
I then got the following output when running "yum update":
Code:
yum update
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 477, in doCommands
return self.updatePkgs()
File "/usr/share/yum-cli/cli.py", line 955, in updatePkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
self.doSackSetup(thisrepo=thisrepo)
File "__init__.py", line 260, in doSackSetup
File "repos.py", line 277, in populateSack
File "sqlitecache.py", line 96, in getPrimary
File "sqlitecache.py", line 83, in _getbase
File "sqlitecache.py", line 77, in getDatabase
AttributeError: 'module' object has no attribute 'DatabaseError'
Could someone please explain why i getting these message and/or how i can get yum to work correctly ?
Yes, im subscribed to RHN. Its RHEL 4
....
Any ideas why yum is not able to use any of these repos ? When looking at the output from yum it seems like it doesnt get any value for the $releasever version, but i cant imagine why i doesnt get any value.
Just a quick anecdote and some advice from me: Our department has standardized on RHEL4 (for application servers and database servers), and it took me a little while to get used to up2date. It's definitely not as nice as yum.
However, with this simple comparison / guide, you can easily accomplish the package management tasks you need to:
My advice is that you stick with up2date. It's part of the standard RHEL4 installation, and it's supported.
I am not trying to distract from your thread (and maybe someone else will chime in with a bright idea to solve your problem), but IMO you're heading down a path that is going to cause a lot of headaches in the future.
Thanks you anomie for your answer. I didnt know that i could use up2date for the same task, then i will use that instead and remove everything related to yum. Also, great reference.
Thanks you anomie for your answer. I didnt know that i could use up2date for the same task, then i will use that instead and remove everything related to yum. Also, great reference.
Just be advised that up2date has been deprecated in RHEL5 IIRC.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.