Comments on CentOS 8 Package Management with DNF on the Command Line

DNF stands for Dandified YUM is a software package manager for RPM-based Linux distributions. It is used to install, update and remove packages in the Fedora/RHEL/CentOS operating system.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Chuck

 

Here are most of the dnf shortcuts:

 

in install up upgrade up-min upgrade-minimal rm erase se search dg downgrade grp group rei reinstall

That's about it.

 

By: Bron

When I run "dnf list available" I get a message saying "Failed to synchronize cache for repo 'extras', ignoring this repo."

I have a new installation of CentOS 8 and the dnf --version returns 4.0.9

Installed: dnf-0:4.0.9.2-5.el8.noarch at Sat 01 Feb 2020 14:21:34 GMT  Built    : CentOS Buildsys <[email protected]> at Mon 13 May 2019 19:35:13 GMT  Installed: rpm-0:4.14.2-25.el8.x86_64 at Mon 03 Feb 2020 13:41:16 GMT  Built    : CentOS Buildsys <[email protected]> at Fri 08 Nov 2019 22:56:14 GMT

Would you have any idea as to why I am receiving the "Failed to Synchronize the Cache" message?

I have tried "dnf clean all" and "rm -rf /var/cache/dnf" before "dnf upgrade" which results in the same message.

Thanks in advance

By: Bron

I solved the "Failed to synchronize cache for repo 'extras', ignoring this repo." error message by changing the BaseUrl for the repo in the /etc/yum.repos.d.  $releasever resulted in 8.0 but the baseURL that worked needed 8 only.  I think there is a better way to explain/fix but this worked for my level of understanding and needs at the moment. Thanks for your article.

 

By: Nils Lindemann

This is an awesome tutorial.