we performed upgrade from rhel 7.2 to rhel 7.6
the upgrade was by yum update ( from redhat repertoires )
subscription-manager release --set=7.6
subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms"
and then we performed
yum update
we can see also the update from yum history
yum history
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
31 | update | 2020-09-11 09:10 | I, O, U | 899 EE
during update more the 300 rpm was update/installed
but since now we want to do the yum update offline on other machine without network connection I am asking if we can captured all the rpm's that was installed ( during yum update )
so it is possible to captured all rpm's list that was installed
I am asking this because , if I have the list of the rpm's then I can download them by yumdownloader
what I found is that
yum history info 31 | grep Updated
Updated rpm-4.11.3-17.el7.x86_64 @anaconda/7.2
Updated subscription-manager-1.15.9-15.el7.x86_64 @anaconda/7.2
Updated yum-3.4.3-132.el7.noarch @anaconda/7.2
Updated yum-langpacks-0.4.2-4.el7.noarch @anaconda/7.2
Updated ModemManager-1.1.0-8.git20130913.el7.x86_64 @anaconda/7.2
Updated ModemManager-glib-1.1.0-8.git20130913.el7.x86_64 @anaconda/7.2
Updated NetworkManager-adsl-1:1.0.6-27.el7.x86_64 @anaconda/7.2
Updated NetworkManager-config-server-1:1.0.6-27.el7.x86_64 @anaconda/7.2
Updated NetworkManager-glib-1:1.0.6-27.el7.x86_64 @anaconda/7.2
Updated NetworkManager-libnm-1:1.0.6-27.el7.x86_64 @anaconda/7.2
Updated NetworkManager-libreswan-1.0.6-3.el7.x86_64 @anaconda/7.2
Updated NetworkManager-libreswan-gnome-1.0.6-3.el7.x86_64 @anaconda/7.2
Updated NetworkManager-team-1:1.0.6-27.el7.x86_64 @anaconda/7.2
.
.
.
is it the real approach to captured all rpm's that was installed from yum update?