Anything wrong with package updater?

Latest response

From https://access.redhat.com/management/errata page I can see that update is available for my syatem. But when I try to update nothing happen, everything is already updated it seems (OR those package are not installed in my system?)

(base) [anowarsayed3@sayed-redhat ~]$ sudo dnf update
[sudo] password for anowarsayed3:
Updating Subscription Management repositories.
Last metadata expiration check: 0:07:21 ago on Sunday 15 September 2019 06:56:08 PM IST.
Dependencies resolved.
Nothing to do.
Complete!
(base) [anowarsayed3@sayed-redhat ~]$

Attachments

Responses

Hi Sayed,

Execute sudo dnf upgrade --refresh - sometimes it's necessary to refresh the software sources to get the latest updates. :)

Regards,
Christian

Hi Sayed,

And in case you still don't get updates offered ... clean dnf and the cache, and check for available updates again. :)

sudo dnf clean all
sudo rm -r /var/cache/dnf
sudo dnf upgrade

Regards,
Christian

This is whole output:

(base) [anowarsayed3@sayed-redhat ~]$ su
Password: 
[root@sayed-redhat anowarsayed3]# dnf upgrade --refresh
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                      25 kB/s |  61 kB     00:02    
google-chrome                                                                                                                                                                      1.1 kB/s | 1.3 kB     00:01    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                                                                                           1.0 kB/s | 4.5 kB     00:04    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                           2.3 kB/s | 4.5 kB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                                              959  B/s | 4.0 kB     00:04    
Red Hat Enterprise Linux 8 for x86_64 - High Availability (RPMs)                                                                                                                   1.1 kB/s | 4.0 kB     00:03    
Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)                                                                                                                       381  B/s | 3.8 kB     00:10    
RPM Fusion for EL 8 - Free - Updates                                                                                                                                               0.0  B/s |   0  B     00:30    
Error: Failed to synchronize cache for repo 'rpmfusion-free-updates'
[root@sayed-redhat anowarsayed3]# dnf upgrade --refresh
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                      23 kB/s |  60 kB     00:02    
google-chrome                                                                                                                                                                      1.1 kB/s | 1.3 kB     00:01    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                                                                                           759  B/s | 4.5 kB     00:06    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                           382  B/s | 4.5 kB     00:12    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                                              2.8 kB/s | 4.0 kB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - High Availability (RPMs)                                                                                                                   2.8 kB/s | 4.0 kB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)                                                                                                                       685  B/s | 3.8 kB     00:05    
RPM Fusion for EL 8 - Free - Updates                                                                                                                                               430  B/s | 3.0 kB     00:07    
RPM Fusion for EL 8 - Nonfree - Updates                                                                                                                                            1.0 kB/s | 3.0 kB     00:02    
Dependencies resolved.
Nothing to do.
Complete!
[root@sayed-redhat anowarsayed3]# dnf clean all
Updating Subscription Management repositories.
68 files removed
[root@sayed-redhat anowarsayed3]# rm -r /var/cache/dnf
rm: descend into directory '/var/cache/dnf'? y
rm: remove regular file '/var/cache/dnf/expired_repos.json'? y
rm: remove regular empty file '/var/cache/dnf/.gpgkeyschecked.yum'? y
rm: descend into directory '/var/cache/dnf/rhel-8-for-x86_64-appstream-rpms-9d3886b51bb367d7'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-appstream-rpms-9d3886b51bb367d7/packages'? y
rm: descend into directory '/var/cache/dnf/rhel-8-for-x86_64-appstream-rpms-9d3886b51bb367d7/repodata'? y
rm: remove regular file '/var/cache/dnf/rhel-8-for-x86_64-appstream-rpms-9d3886b51bb367d7/repodata/9661c923f14687f1ef5f7661881b97c64bdba8eeb9da6323eaa5f2947796ec6a-modules.yaml.gz'? y
rm: remove regular file '/var/cache/dnf/rhel-8-for-x86_64-appstream-rpms-9d3886b51bb367d7/repodata/productid'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-appstream-rpms-9d3886b51bb367d7/repodata'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-appstream-rpms-9d3886b51bb367d7'? y
rm: descend into directory '/var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-51b3b78d5698246b'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-51b3b78d5698246b/packages'? y
rm: descend into directory '/var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-51b3b78d5698246b/repodata'? y
rm: remove regular file '/var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-51b3b78d5698246b/repodata/productid'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-51b3b78d5698246b/repodata'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-51b3b78d5698246b'? y
rm: remove regular file '/var/cache/dnf/packages.db'? y
rm: remove regular empty file '/var/cache/dnf/last_makecache'? y
rm: remove regular file '/var/cache/dnf/tempfiles.json'? y
rm: descend into directory '/var/cache/dnf/codeready-builder-for-rhel-8-x86_64-rpms-99a06144789f2982'? y
rm: remove directory '/var/cache/dnf/codeready-builder-for-rhel-8-x86_64-rpms-99a06144789f2982/packages'? y
rm: descend into directory '/var/cache/dnf/codeready-builder-for-rhel-8-x86_64-rpms-99a06144789f2982/repodata'? y
rm: remove regular file '/var/cache/dnf/codeready-builder-for-rhel-8-x86_64-rpms-99a06144789f2982/repodata/fdbe001cfd535d32f18121a9339e2301294dc1f547a2123d2c6ee80437ccfffc-modules.yaml.gz'? y
rm: remove regular file '/var/cache/dnf/codeready-builder-for-rhel-8-x86_64-rpms-99a06144789f2982/repodata/productid'? y
rm: remove directory '/var/cache/dnf/codeready-builder-for-rhel-8-x86_64-rpms-99a06144789f2982/repodata'? y
rm: remove directory '/var/cache/dnf/codeready-builder-for-rhel-8-x86_64-rpms-99a06144789f2982'? y
rm: descend into directory '/var/cache/dnf/rpmfusion-nonfree-updates-4b07c573777c5e1e'? y
rm: remove directory '/var/cache/dnf/rpmfusion-nonfree-updates-4b07c573777c5e1e/repodata'? y
rm: remove directory '/var/cache/dnf/rpmfusion-nonfree-updates-4b07c573777c5e1e'? y
rm: descend into directory '/var/cache/dnf/google-chrome-eb0d6f10ccbdafba'? y
rm: remove directory '/var/cache/dnf/google-chrome-eb0d6f10ccbdafba/repodata'? y
rm: remove directory '/var/cache/dnf/google-chrome-eb0d6f10ccbdafba'? y
rm: descend into directory '/var/cache/dnf/rhel-8-for-x86_64-supplementary-rpms-e90834ad5db149c1'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-supplementary-rpms-e90834ad5db149c1/packages'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-supplementary-rpms-e90834ad5db149c1/repodata'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-supplementary-rpms-e90834ad5db149c1'? y
rm: descend into directory '/var/cache/dnf/rhel-8-for-x86_64-highavailability-rpms-6ae728091c1bb8fe'? y
rm: descend into directory '/var/cache/dnf/rhel-8-for-x86_64-highavailability-rpms-6ae728091c1bb8fe/repodata'? y
rm: remove regular file '/var/cache/dnf/rhel-8-for-x86_64-highavailability-rpms-6ae728091c1bb8fe/repodata/productid'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-highavailability-rpms-6ae728091c1bb8fe/repodata'? y
rm: remove directory '/var/cache/dnf/rhel-8-for-x86_64-highavailability-rpms-6ae728091c1bb8fe'? y
rm: descend into directory '/var/cache/dnf/commandline-a76fe31ae310b0c7'? y
rm: remove directory '/var/cache/dnf/commandline-a76fe31ae310b0c7/packages'? y
rm: remove directory '/var/cache/dnf/commandline-a76fe31ae310b0c7'? y
rm: descend into directory '/var/cache/dnf/epel-fafd94c310c51e1e'? y
rm: remove directory '/var/cache/dnf/epel-fafd94c310c51e1e/packages'? y
rm: remove directory '/var/cache/dnf/epel-fafd94c310c51e1e/repodata'? y
rm: remove directory '/var/cache/dnf/epel-fafd94c310c51e1e'? y
rm: descend into directory '/var/cache/dnf/google-chrome-6ed7e4f336f6863c'? y
rm: remove directory '/var/cache/dnf/google-chrome-6ed7e4f336f6863c/packages'? y
rm: remove directory '/var/cache/dnf/google-chrome-6ed7e4f336f6863c/repodata'? y
rm: remove directory '/var/cache/dnf/google-chrome-6ed7e4f336f6863c'? y
rm: descend into directory '/var/cache/dnf/rpmfusion-free-updates-4f04908c20c55925'? y
rm: remove directory '/var/cache/dnf/rpmfusion-free-updates-4f04908c20c55925/packages'? y
rm: remove directory '/var/cache/dnf/rpmfusion-free-updates-4f04908c20c55925/repodata'? y
rm: remove directory '/var/cache/dnf/rpmfusion-free-updates-4f04908c20c55925'? y
rm: remove directory '/var/cache/dnf'? y
[root@sayed-redhat anowarsayed3]# dnf upgrade
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                     175 kB/s | 1.3 MB     00:07    
google-chrome                                                                                                                                                                      630  B/s | 4.0 kB     00:06    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                                                                                           102 kB/s | 2.2 MB     00:22    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                           447 kB/s | 9.2 MB     00:21    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                                              440 kB/s | 7.3 MB     00:16    
Red Hat Enterprise Linux 8 for x86_64 - High Availability (RPMs)                                                                                                                    47 kB/s | 957 kB     00:20    
Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)                                                                                                                       6.8 kB/s |  96 kB     00:14    
RPM Fusion for EL 8 - Free - Updates                                                                                                                                                15 kB/s |  71 kB     00:04    
RPM Fusion for EL 8 - Nonfree - Updates                                                                                                                                            2.3 kB/s |  15 kB     00:06    
Dependencies resolved.
Nothing to do.
Complete!
[root@sayed-redhat anowarsayed3]# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-8-for-x86_64-highavailability-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - High Availability (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/highavailability/os
Enabled:   1

Repo ID:   codeready-builder-for-rhel-8-x86_64-rpms
Repo Name: Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/codeready-builder/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-supplementary-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/supplementary/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os
Enabled:   1

[root@sayed-redhat anowarsayed3]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Not Specified

[root@sayed-redhat anowarsayed3]# 

Looks good, Sayed ... Two suggestions : 1) You don't need to run the transactions as a root user.
Run them as a normal user with sudo, then you can delete the cache without having to confirm
the removal of every single file. Alternatively you can use the -rf option when you want to do it
as the root user. 2) You can disable the supplementary-rpms and the highavailability-rpms repo.
You don't need them. Run dnf clean all and rm -r /var/cache/dnf afterwards to clean everything.

Perform as little operations as possible as the root user and use rm -rf only in rare cases, use it
only when it's absolutely necessary and after having double-checked what shall get removed. :)

Regards,
Christian

Thank you. Now I disabled those two repos. actually I use root (su) for package management related activity. I thought I need to type multiple command that's why I switched to su. I am taking this advice as good practice.

You're welcome, Sayed ! Glad you'll act accordingly ... it provides you with enhanced security. :)

Regards,
Christian

You have one of two problems - either the metadata you are getting is out of date and doesn't include the latest updates or the information you are seeing on the Red Hat portal is out of date. You can check which one by following one of the RHSA links eg. RHSA-2019:2703 selecting the Updated Packages tab and comparing the package version there with the version you have installed.

I guess you are right. Information RHEL site was showing was old. I have followed Christian told steps. Now it is showing 1 system is effected (that one system in my VM as yet to clean cache on that system to let RedHat know that everything is updated on my system[mean manually checking update again after cleaning cache]).

Hi Sayed,

In case the information on the Customer Portal is outdated, refresh the information by executing the following commands :

sudo subscription-manager repos --list-enabled
sudo subscription-manager status

Wait for some minutes and check the information on the portal again. Don't ask me why this works, all I can say is, it does. :)

Regards,
Christian

And if that still doesn't work try

systemctl stop rhsmcertd.service
rhsmcertd --now

There is something broken with rhsmcertd using dnf in RHEL 8.0, though it seems to be fixed in 7.7 and 8.1 beta. I don't remember where I got that fix from but it works for me and may help if you are seeing the same problem as I am (which gives errors like [ERROR] rhsmcertd-worker:13119:MainThread @base_action_client.py:72 - [Errno 17] File exists: '/var/cache/dnf' in /var/log/rhsm/rhsm.log).

Thank you Christian and Michael for helping me out.Michael if you found any bug then please submit it to RedHat's Bugzilla. This way you can help all user.

There is already the bug 1656389 which looks like the same thing, and as found the solution above somewhere and it is fixed in 7.7 and 8.1 beta I was sure it was a known issue.

You're welcome, Sayed ! I very much appreciate your attitude to help other users - great ! :)

Regards,
Christian