[TriLUG] CentOS 5.4 + Yum Madness
Brian Weaver
cmdrclueless at gmail.com
Tue Mar 16 09:09:09 EDT 2010
[root at localhost ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=0
obsoletes=1
gpgcheck=1
plugins=1
# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h
installonly_limit = 5
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[root at localhost ~]# cat /etc/yum.repos.d/CentOS-
CentOS-Base.repo CentOS-Media.repo
[root at localhost ~]# cat /etc/yum.repos.d/CentOS-*
# CentOS-Base.repo
#
# 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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#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=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#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=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
On Mar 16, 2010, at 9:00 AM, Ron Kelley wrote:
> Send the output of your /etc/yum.repos.d files
>
>
>
> On Mar 16, 2010, at 8:58 AM, Brian Weaver wrote:
>
>> No it's there, yum is just being difficult. Check out the following output
>>
>> [root at localhost ~]# yum list '*' | grep kernel
>> kernel.i686 2.6.18-164.11.1.el5.centos.plus
>> kernel-doc.noarch 2.6.18-164.11.1.el5.centos.plus
>> kernel-headers.i386 2.6.18-164.11.1.el5.centos.plus
>> yum-kernel-module.noarch 1.1.16-14.el5.centos.1 updates
>> [root at localhost ~]# cd /var/cache/yum/
>> [root at localhost yum]# ls
>> addons base centosplus contrib extras timedhosts.txt updates
>> [root at localhost yum]# cd centosplus/
>> [root at localhost centosplus]# ls
>> cachecookie mirrorlist.txt packages primary.xml.gz primary.xml.gz.sqlite repomd.xml
>> [root at localhost centosplus]# strings primary.xml.gz.sqlite | grep kernel-devel
>> kernel-devel5
>> kernel-devel
>> kernel-devel
>> kernel-develw
>> kernel-develEQ02.6.18128.1.10.el5.centos.plus
>> kernel-devel-i686EQ02.6.18128.1.10.el5.centos.plus
>> 2dcf1251d94e0e7e1582523f0d5219d291515effkernel-develi6862.6.180128.1.10.el5.centos.plusDevelopment package for building kernel modules to match the kernel.This package provides kernel headers and makefiles sufficient to build modules
>> RPMS/kernel-devel-2.6.18-128.1.10.el5.centos.plus.i686.rpmsha
>> kernel-devel-i686EQ02.6.18164.el5.plus
>> kernel-develEQ02.6.18164.el5.plus
>> c510dace6f82a866df8e48a3d5e71b5ec6e98be8kernel-develi6862.6.180164.el5.plusDevelopment package for building kernel modules to match the kernel.This package provides k
>> .
>> .
>> .
>> .
>>
>>
>> The output provides a good 229 lines of matches. I don't know why yum will not make it available, but it's there.
>>
>> -- Brian
>>
>>
>>
>> On Mar 15, 2010, at 6:39 PM, Lance A. Brown wrote:
>>
>>> Brian Weaver said the following on 3/15/2010 5:41 PM:
>>>> [root at localhost yum]# yum clean all
>>>> Loaded plugins: fastestmirror
>>>> Cleaning up Everything
>>>> Cleaning up list of fastest mirrors
>>>> [root at localhost yum]# yum list | grep -i kernel
>>>> kernel.i686 2.6.18-164.11.1.el5.centos.plus
>>>> kernel-doc.noarch 2.6.18-164.11.1.el5.centos.plus
>>>> kernel-headers.i386 2.6.18-164.11.1.el5.centos.plus
>>>> yum-kernel-module.noarch 1.1.16-14.el5.centos.1 updates
>>>
>>> So you're using a CentOSplus kernel. I've got the same kernel installed
>>> on a server at home and see this when I run 'yum list available kernel\*'
>>>
>>> circle:lance ~ $ sudo yum list available kernel\*
>>> Loaded plugins: fastestmirror
>>> Loading mirror speeds from cached hostfile
>>> * epel: serverbeach1.fedoraproject.org
>>> * base: mirror.skiplink.com
>>> * updates: mirror.atlanticmetro.net
>>> * extras: mirror.ubiquityservers.com
>>> * centosplus: ftp.linux.ncsu.edu
>>> * addons: ftp.lug.udel.edu
>>> Available Packages
>>> kernel.i686 2.6.18-164.11.1.el5.centos.plus centosplus
>>> kernel-PAE.i686 2.6.18-164.11.1.el5.centos.plus centosplus
>>> kernel-PAE-devel.i686 2.6.18-164.11.1.el5.centos.plus centosplus
>>> kernel-debug.i686 2.6.18-164.11.1.el5 updates
>>> kernel-debug-devel.i686 2.6.18-164.11.1.el5 updates
>>> kernel-devel.i686 2.6.18-164.11.1.el5.centos.plus centosplus
>>> kernel-doc.noarch 2.6.18-164.11.1.el5.centos.plus centosplus
>>> kernel-headers.i386 2.6.18-164.11.1.el5.centos.plus centosplus
>>> kernel-xen.i686 2.6.18-164.11.1.el5.centos.plus centosplus
>>> kernel-xen-devel.i686 2.6.18-164.11.1.el5.centos.plus centosplus
>>>
>>> You might manually check the centosplus mirror your machine is pulling
>>> from. It might be out of date or something.
>>>
>>> --[Lance]
>>>
>>> --
>>> GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
>>> CACert.org Assurer
>>> --
>>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>>> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
>>
>> --
>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
>
> Thanks,
>
> -Ron
> rkelleyrtp at gmail.com
>
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
More information about the TriLUG
mailing list