Dug in this a little bit (interest is to ship arm images with a small boot partion )
yum history shows a update from the command line does something different as from the server-manager
command line:
# yum history
Loaded plugins: changelog, fastestmirror, nethserver_events
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
16 | root <root> | 2018-08-15 12:32 | I, U, E | 7
# yum history info 16
Loaded plugins: changelog, fastestmirror, nethserver_events
Config time: 0.022
Yum version: 3.4.3
rpmdb time: 0.000
Transaction ID : 16
Begin time : Wed Aug 15 12:32:30 2018
Begin rpmdb : 618:30c6fc96227748c9b609e33795c783bcddfa8ac0
End time : 12:33:19 2018 (49 seconds)
End rpmdb : 617:606dc5a76105ca61d555abb449759a9f47a569cc
User : root <root>
Return-Code : Success
Command Line : update
Transaction performed with:
Installed rpm-4.11.3-32.el7.x86_64 @anaconda
Installed yum-3.4.3-158.el7.centos.noarch @anaconda
Installed yum-metadata-parser-1.1.4-10.el7.x86_64 @anaconda
Installed yum-plugin-fastestmirror-1.1.31-46.el7_5.noarch @updates
Packages Altered:
Updated centos-release-7-5.1804.1.el7.centos.x86_64 @updates
Update 7-5.1804.4.el7.centos.x86_64 @updates
Erase kernel-3.10.0-862.el7.x86_64 @anaconda
Erase kernel-3.10.0-862.3.2.el7.x86_64 @updates
Install kernel-3.10.0-862.11.6.el7.x86_64 @updates
Updated kernel-tools-3.10.0-862.9.1.el7.x86_64 @updates
Update 3.10.0-862.11.6.el7.x86_64 @updates
Updated kernel-tools-libs-3.10.0-862.9.1.el7.x86_64 @updates
Update 3.10.0-862.11.6.el7.x86_64 @updates
Updated python-perf-3.10.0-862.9.1.el7.x86_64 @updates
Update 3.10.0-862.11.6.el7.x86_64 @updates
from server-manger (GUI):
# yum history
Loaded plugins: changelog, fastestmirror, nethserver_events
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
16 | System <unset> | 2018-08-15 12:46 | I, U | 5
# yum history info 16
Loaded plugins: changelog, fastestmirror, nethserver_events
Config time: 0.021
Yum version: 3.4.3
rpmdb time: 0.000
Transaction ID : 16
Begin time : Wed Aug 15 12:46:50 2018
Begin rpmdb : 618:30c6fc96227748c9b609e33795c783bcddfa8ac0
End time : 12:47:39 2018 (49 seconds)
End rpmdb : 619:d7680163c8cfda4360537725551cdbfa5d3b63ba
User : System <unset>
Return-Code : Success
Transaction performed with:
Installed rpm-4.11.3-32.el7.x86_64 @anaconda
Installed yum-3.4.3-158.el7.centos.noarch @anaconda
Installed yum-metadata-parser-1.1.4-10.el7.x86_64 @anaconda
Installed yum-plugin-fastestmirror-1.1.31-46.el7_5.noarch @updates
Packages Altered:
Updated centos-release-7-5.1804.1.el7.centos.x86_64 @updates
Update 7-5.1804.4.el7.centos.x86_64 @updates
Install kernel-3.10.0-862.11.6.el7.x86_64 @updates
Updated kernel-tools-3.10.0-862.9.1.el7.x86_64 @updates
Update 3.10.0-862.11.6.el7.x86_64 @updates
Updated kernel-tools-libs-3.10.0-862.9.1.el7.x86_64 @updates
Update 3.10.0-862.11.6.el7.x86_64 @updates
Updated python-perf-3.10.0-862.9.1.el7.x86_64 @updates
Update 3.10.0-862.11.6.el7.x86_64 @updates
Best guess is the yum python-API does something different here, but cant find why/where.
A workaround can be to install the yum-utils and incorporate package-cleanup --oldkernels --count=x
somehow in pkgaction update
. ideally read x from yum.conf