Quote:
Originally Posted by Lenard
Review the How-to once more, they have a list of the packages needed for a sucessful yum installation.
All except for yum should be on the RHEL4 media or from RHN, you can install yum from the rpmforge site;
http://dag.wieers.com/rpm/packages/
http://dag.wieers.com/rpm/packages/yum/
As for installing mplayer using rpm, start with the list I posted in an earlier reply. Download the packages from Dag's site into a common location along with the mplayer-codecs from pbone. Install them all at once;
rpm -Uvh *.rpm
For any missing dependencies get them from Dag's (rpmforge) site and place them in the same location as the rest. You will want the one's with .el4 and/or rf in the filename. Repeat this process until you have all required packages.
|
I am still struggling to install yum ...
I reviewed the article
http://wiki.centos.org/HowTos/Packag...ment/YumOnRHEL
I got all these packages, which are
redhat-yumconf-4-4.7.el4.nosrc.rpm
python-elementtree-1.2.6-7.el4.rf.x86_64.rpm sqlite-2.8.16-1.2.el4.rf.x86_64.rpm
python-sqlite-1.0.1-1.2.el4.rf.x86_64.rpm yum-2.4.3-3.el4.centos.noarch.rpm
python-urlgrabber-2.9.8-2.noarch.rpm
in my case, since I have EL4, x86_64
I installed, "yum" utility which still does not work!
# yum search httpd
Searching Packages:
Setting up repositories
adobe-linux-i386 100% |=========================| 951 B 00:00
not using ftp, http[s], or file for repos, skipping - 4WS is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
There is a second part in this article which I have to do
which is to cofiger yum properly and I do not understand this part
at all.
Below is the paragraph from the paper which explains this part:
"You will notice that the RHEL-Base.repo file is listed as a NoSource file. Since you must create your own repository, there is no way to know what server this repository will live on, etc. It is suggested that you use the CentOS-Base.repo file as a template and create a RHEL-Base.repo file appropriate for your environment. Once it is in place, put it in the SOURCES directory of your rpm build path, and rebuild the SRPM redhat-yumconf-4-4.7.el4.nosrc.rpm."
1)Ok. I found CentOS-Base.repo inside /etc/yum.repos.d
But I do not have any idea how I should modify the file
to make it "appropriate for your environment" i.e. "my environment"
I would realy apreciate if someone would give me
at least a hint how to do this.
2): "put it in the SOURCES directory of your rpm build path"
my rpmbuild is /usr/bin/rpmbuild. Where is the "SOURCES directory"
located ?
3) "rebuild the SRPM redhat-yumconf-4-4.7.el4.nosrc.rpm"
How to do this properly ?
I tried:
#rpmbuild --rebuild redhat-yumconf-4-4.7.el4.nosrc.rpm
Is this a proper way of rebuilding?
My CentOS-Base.repo file is below
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[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-centos4
#released updates
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
I would really apreciate your help !!!