Example: I'm running kernel-3.10.0-1160.24.1 on my workstation. I look at /apps/repo/update/Packages and can see kernel-3.10.0-1160.25.1.el7.x86_64.rpm. My baseurl is set to file:///apps/repo/. But running yum update doesn't grab and install the new kernel. I have to alter /etc/yum.repos.d/CentOS-Base.repo and change the baseurl back to mirror.centos.org for it to grab the updated kernel rpm file.
I'm running yum clean all, and rebuilding the database. Is there something else I should be updating, such as the metadata?
Contents of /etc/yum.repos.d/CentOS-Base.repo:
Code: Select all
.
. (comments redacted)
.
#base distro
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=file:///apps/repo/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=file:///apps/repo/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=file:///apps/repo/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
.
. (centosplus redacted)
.