yum update not see packages

General support questions
KenIAH
Posts: 5
Joined: 2021/01/13 13:34:24

yum update not see packages

Post by KenIAH » 2021/01/13 13:40:09

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

sml
Posts: 156
Joined: 2020/01/17 09:01:44

Re: yum update not see packages

Post by sml » 2021/01/13 14:15:39

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
Last edited by sml on 2021/01/13 14:19:16, edited 1 time in total.

User avatar
TrevorH
Forum Moderator
Posts: 30166
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update not see packages

Post by TrevorH » 2021/01/13 14:16:33

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.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

KenIAH
Posts: 5
Joined: 2021/01/13 13:34:24

Re: yum update not see packages

Post by KenIAH » 2021/01/13 14:39:37

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

sml
Posts: 156
Joined: 2020/01/17 09:01:44

Re: yum update not see packages

Post by sml » 2021/01/13 15:02:04

Why do you think there are uninstalled updates?

tunk
Posts: 867
Joined: 2017/02/22 15:08:17

Re: yum update not see packages

Post by tunk » 2021/01/13 17:18:22

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

KenIAH
Posts: 5
Joined: 2021/01/13 13:34:24

Re: yum update not see packages

Post by KenIAH » 2021/01/14 08:45:50

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?

sml
Posts: 156
Joined: 2020/01/17 09:01:44

Re: yum update not see packages

Post by sml » 2021/01/14 09:47:36

What CentOS mirror are you using?

Code: Select all

yum -q repoinfo updates

KenIAH
Posts: 5
Joined: 2021/01/13 13:34:24

Re: yum update not see packages

Post by KenIAH » 2021/01/14 09:50:39

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

sml
Posts: 156
Joined: 2020/01/17 09:01:44

Re: yum update not see packages

Post by sml » 2021/01/14 11:21:09

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

Post Reply

Return to “CentOS 7 - General Support”