LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with YUM UPDATE (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-yum-update-684502/)

ashuji 11-19-2008 01:38 AM

problem with YUM UPDATE
 
Hi

I am new to this forum and this is my first thread.

I have installed CentOS-5 One a VM on 3Tera GRID with details as below:

Kernel: Linux stg-dns1blue1a1.pgicos-dev.net 2.6.16.33-xenU #2 SMP Tue Aug 21 17:57:55 PDT 2007 i686 i686 i386 GNU/Linux

I am using it as DNS server, but from sometime facing a problem when try to do 'yum -y update'

This command does not return any error but neither update the system, below are the output of command:

[root@stg-dns1blue1a1 ~]# yum -y update

Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: centosf3.centos.org
* updates: mirror.linux.duke.edu
* addons: mirror.linux.duke.edu
* extras: mirror.linux.duke.edu
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package openssh-server.i386 0:4.3p2-26.el5_2.1 set to be updated
---> Package initscripts.i386 0:8.45.19.1.EL-1.el5.centos set to be updated
---> Package nss.i386 0:3.12.1.1-3.el5.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
initscripts i386 8.45.19.1.EL-1.el5.centos updates 1.6 M
nss i386 3.12.1.1-3.el5.centos updates 1.1 M
openssh-server i386 4.3p2-26.el5_2.1 updates 255 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)

Total download size: 2.9 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
[root@stg-dns1blue1a1 ~]#

See in the output above, it showed that 2.9MB of update available to download but it did not download them, and if I run 'yum -y update' again it will again give the same output. Everytime I run 'yum -y update' it returns same output. I have tried erase and reinstall YUM rpm, but it did not solve the problem. I have yum working fine on one another machine which is similar this, I copied all YUM packages (/usr) and config (/etc) files from there to this machine and rebooted this machine, even after that it shows same output.

One interesting thing about this is, if I remove all repository files from /etc/yum.repos.d/ and only have rpmforge repository file in it, it works well, but if I have Cent-OS BASE of MEDIA repository files there, it gives the above mentioned problemm.

Please suggest if you have any idean, how to get rid of this problem.

Ashwani Jain

billymayday 11-19-2008 01:42 AM

Can you post /etc/yum.conf and the offending repo file?

lazlow 11-19-2008 01:51 AM

I wonder if it could be a problem with using a kernel that predates Cenots5? Centos5 came out with 2.6.18 and you are showing 2.6.16.

ashuji 11-19-2008 03:11 AM

Hi Lazlow

Thanks for your quick reply, On other machine where YUM update is working fine, same is the kernel version and same is also the version of YUM. i.e. both machcines are identical in terms of OS setup.

Regards

Ashwani Jain

ashuji 11-19-2008 03:31 AM

Hi Billymayday

Please find below the contents of conf. files in question:

[root@stg-dns1blue1a1 ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

exclude=kernel*
=================================================================================


# cat /etc/yum.repos.d/CentOS-Base.repo
# 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-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=http://mirror.centos.org/centos/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=http://mirror.centos.org/centos/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=http://mirror.centos.org/centos/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=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


==============================================================

# cat /etc/yum.repos.d/CentOS-Media.repo
# 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
====================================================

for this repository it works fine on this machine:
(in case this is the only repository file in /etc/yum.repos.d/

]# cat /etc/yum.repos.d/rpmforge.repo
# Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

=========================================================


All times are GMT -5. The time now is 05:21 AM.