Page 1 of 2

yum update not see packages

Posted: 2021/01/13 13:40:09
by KenIAH
Hi,

My server has centos_updates repo added, but when I run yum update, it doesn't see the new kernel nor the new packages.

I've looked online and it appears that the packages are available in: centos-release-7-9.2009.1.el7.centos.x86_64.rpm

Do I need to do something to make this rpm available in updates? Why does it not appear in the centos_updates, or is this just a timing issue?

Thanks for any help

Re: yum update not see packages

Posted: 2021/01/13 14:15:39
by sml
First of all, what CentOS release are you running currently?

Code: Select all

cat /etc/centos-release
And what version of centos-release is installed?

Code: Select all

rpm -q centos-release
Further, is the updates repo really enabled?

Code: Select all

yum -q repolist

Re: yum update not see packages

Posted: 2021/01/13 14:16:33
by TrevorH
If your updates repo is called centos_updates then it sounds like it's not using a CentOS mirror. You should check what it is using and if it is up to date.

Re: yum update not see packages

Posted: 2021/01/13 14:39:37
by KenIAH
Hi,

Thanks for the updates. Here's the output:

cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

rpm -q centos-release
centos-release-7-9.2009.1.el7.centos.x86_64

yum -q repolist
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,072
elrepo ELRepo.org Community Enterprise Linux Repository - el7 105
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,492
extras/7/x86_64 CentOS-7 - Extras 448
nginx/x86_64 nginx repo 761
nodesource/x86_64 Node.js Packages for Enterprise Linux 7 - x86_64 119
openlogic/7/x86_64 CentOS-7 - openlogic packages for x86_64 22
packages-microsoft-com-prod packages-microsoft-com-prod 754
updates/7/x86_64 CentOS-7 - Updates 778

Re: yum update not see packages

Posted: 2021/01/13 15:02:04
by sml
Why do you think there are uninstalled updates?

Re: yum update not see packages

Posted: 2021/01/13 17:18:22
by tunk
There was a new kernel (3.10.0-1160.11.1) released
around 22 Dec, and a handful others rpms on 18 Dec.
You can list newest installed packages with this:
rpm -qa --last | more

Re: yum update not see packages

Posted: 2021/01/14 08:45:50
by KenIAH
I've checked using rpm -qa --last | more and the most recent patches applied were on Dec 16th, so the most recent kernel and patches aren't listed at all.

Is there someway that I need to refresh the repository to see the changes?

Re: yum update not see packages

Posted: 2021/01/14 09:47:36
by sml
What CentOS mirror are you using?

Code: Select all

yum -q repoinfo updates

Re: yum update not see packages

Posted: 2021/01/14 09:50:39
by KenIAH
Here's the mirror I'm using:

yum -q repoinfo updates
Repo-id : updates/7/x86_64
Repo-name : CentOS-7 - Updates
Repo-status : enabled
Repo-revision: 1607408543
Repo-updated : Tue Dec 8 06:22:43 2020
Repo-pkgs : 778
Repo-size : 3.7 G
Repo-mirrors : http://mirrorlist.centos.org/?release=7 ... nfra=stock
Repo-baseurl : http://mirror.jaleco.com/centos/7.9.200 ... es/x86_64/ (9 more)
Repo-expire : 21,600 second(s) (last: Thu Jan 14 06:13:05 2021)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Re: yum update not see packages

Posted: 2021/01/14 11:21:09
by sml
KenIAH wrote:
2021/01/14 09:50:39

Code: Select all

Repo-updated : Tue Dec  8 06:22:43 2020
This is strange. Can you access mirrorlist.centos.org?

Code: Select all

curl 'http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock'
Do you get any errors when updating yum cache?

Code: Select all

sudo yum clean all
sudo yum -v makecache