yum update not showing latest packages

Issues related to applications and software problems
archsupport
Posts: 10
Joined: 2018/05/03 23:43:18

yum update not showing latest packages

Post by archsupport » 2018/08/06 11:35:12

I am unable to yum update my system. The kernel patch version installed is behind what my other systems have yet yum update shows no updates available.

Code: Select all

[root@mwimp01 ~]# yum clean all; rm -rf /var/cache/yum/; yum update
Loaded plugins: fastestmirror
Cleaning repos: base centosplus epel extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink                                     |  20 kB     00:00     
 * base: mirror.trouble-free.net
 * centosplus: mirrors.tripadvisor.com
 * epel: sjc.edge.kernel.org
 * extras: ftpmirror.your.org
 * updates: mirrors.tummy.com
base                                                     | 3.6 kB     00:00     
centosplus                                               | 3.4 kB     00:00     
epel                                                     | 3.2 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00     
(1/8): base/7/x86_64/group_gz                              | 166 kB   00:00     
(2/8): centosplus/7/x86_64/primary_db                      | 2.2 MB   00:00     
(3/8): extras/7/x86_64/primary_db                          | 173 kB   00:00     
(4/8): epel/x86_64/group_gz                                |  88 kB   00:00     
(5/8): epel/x86_64/updateinfo                              | 932 kB   00:00     
(6/8): base/7/x86_64/primary_db                            | 5.9 MB   00:00     
(7/8): epel/x86_64/primary                                 | 3.6 MB   00:01     
(8/8): updates/7/x86_64/primary_db                         | 4.3 MB   00:02     
epel                                                                12629/12629
No packages marked for update
[root@mwimp01 ~]# 

Attachments
repofile.tar
(30 KiB) Downloaded 61 times

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: yum update not showing latest packages

Post by avij » 2018/08/06 12:19:36

Which kernel version do you currently have installed? What kernel version are you aiming to get? Perhaps the kernel you have on the other system is not a CentOS kernel. See rpm -qa kernel\* and uname -a. If you have the newest kernel installed but it is not shown in uname, you need to reboot your server to start using the new kernel.

archsupport
Posts: 10
Joined: 2018/05/03 23:43:18

Re: yum update not showing latest packages

Post by archsupport » 2018/08/06 16:29:46

The bastion host has 862.9.1 and is running CentOS 7. mwimp01 is just running 862 and even after an update and reboot it is still running 862.

Code: Select all

[b][root@bastion ~]# uname -r
3.10.0-862.9.1.el7.x86_64[/b]
[root@bastion ~]# ssh mwimp-1
ssh: Could not resolve hostname mwimp-1: Name or service not known
[root@bastion ~]# ssh mwimp01
Last login: Mon Aug  6 07:31:28 2018 from 192.168.1.124
[root@mwimp01 ~]# uname -r
3.10.0-862.el7.x86_64
[root@mwimp01 ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.trouble-free.net
 * centosplus: mirrors.tripadvisor.com
 * epel: sjc.edge.kernel.org
 * extras: ftpmirror.your.org
 * updates: mirrors.tummy.com
No packages marked for update
[root@mwimp01 ~]# /sbin/reboot 
Connection to mwimp01 closed by remote host.
Connection to mwimp01 closed.
[root@bastion ~]# ssh mwimp01
Last login: Mon Aug  6 12:27:44 2018 from 192.168.1.124
[root@mwimp01 ~]# uname -r
3.10.0-862.el7.x86_64

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update not showing latest packages

Post by TrevorH » 2018/08/06 16:32:17

What does rpm -q kernel report?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: yum update not showing latest packages

Post by avij » 2018/08/06 17:23:18

You seem to have the centosplus repository enabled. Are you using the stock CentOS kernel or the CentOSPlus kernel? This was one reason why I asked about uname -a (and not uname -r) and rpm -qa kernel\*

archsupport
Posts: 10
Joined: 2018/05/03 23:43:18

Re: yum update not showing latest packages

Post by archsupport » 2018/08/06 17:54:17

Code: Select all

[root@mwimp01 ~]# uname -a
Linux mwimp01.mwimp 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@mwimp01 ~]# rpm -qa kernel\*
kernel-tools-libs-3.10.0-862.9.1.el7.x86_64
kernel-plus-3.10.0-862.9.1.el7.centos.plus.x86_64

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: yum update not showing latest packages

Post by avij » 2018/08/06 18:08:44

OK, so you seem to have kernel-plus installed, but it is not in use. If you don't specifically want to use the plus kernel, you can probably rectify this situation with yum install kernel and yum remove kernel-plus-3.10.0-862.9.1.el7.centos.plus.x86_64

.. unless this is running in some sort of a virtualized environment, where your virtual machine provider supplies the kernel and you can't do anything within the VM to change the kernel. I wonder why your uname -a shows 3.10.0-862 even though you don't have that kernel installed at all according to rpm.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update not showing latest packages

Post by TrevorH » 2018/08/06 18:56:39

Is /etc/grub2.cfg a symlink to ../boot/grub2/grub.cfg ? Or are you using linux software RAID and does /proc/mdstat show that both devices used for /boot are online and being used?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

archsupport
Posts: 10
Joined: 2018/05/03 23:43:18

Re: yum update not showing latest packages

Post by archsupport » 2018/08/06 19:52:51

This is a VM running on VMWare hypervisor so there should be no link between the virtualization platform and the kernel installed.

[root@mwimp01 ~]# ls -ltra /etc/grub2.cfg
lrwxrwxrwx. 1 root root 22 Jul 10 14:18 /etc/grub2.cfg -> ../boot/grub2/grub.cfg

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update not showing latest packages

Post by TrevorH » 2018/08/06 20:24:53

Does /boot/grub2/grub.cfg contain an entry for the latest kernel or is it missing entirely? Does yum reinstall kernel-3.10.0-862.9.1.el7 fix it?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply