RHEL/CentOS Repository clues
Craig White
craigwhite at azapple.com
Wed Jan 11 15:11:07 MST 2006
On Wed, 2006-01-11 at 16:32 -0500, vodhner at cox.net wrote:
> Hi, Craig.
> > yum install php-mysql
> >
> > what is wrong with that?
>
> Excellent question, and the point of my request.
> Please re-read the beginning of my message . . .
>
> It returned "no match". Why? Presumably because
> there is some massive gap in my understanding of
> repositories and how to set them up.
-----
keep this on list
You went on and on and I simply am lost.
php-mysql is packaged as part of CentOS base repository and thus if
'yum install php-mysql' doesn't work...you don't have a working setup.
See below for the yum repos/configurations
Also note...there are some very nice commands for yum that will probably
help you...
yum search mysql
yum search postgres
yum grouplist
yum clean all
PHP 5 is available packaged in centosplus (if you enable it, you can get
it - though I would probably recommend staying with 'upstream' at this
point).
anyway...
Here is the contents - all you need to have a properly functioning yum
and be able to pull in a ton of packages.
*************************
# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
# exclude=kernel*
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
*************************
# cat /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
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
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
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
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
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
baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#packages in testing
[testing]
name=CentOS-$releasever - Testing
baseurl=http://mirror.centos.org/centos/$releasever/testing/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
*************************
# cat /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
Craig
More information about the PLUG-discuss
mailing list