Documente Academic
Documente Profesional
Documente Cultură
in Linux
DNF is the package manager that was earlier used in Fedora as a default package manager but
with the start of RHEL 8, it is now available a package manager choice along with YUM. In the
future, it might be completely removed from RHEL versions. Yum has some problems
associated with it, The problems like poor performance, high memory usage, slowness for
dependency resolution, etc. All these problems have been resolved with DNF.
If required, we can install local package (rpm package) and all its dependencies with the
following command,
If we don’t know the package name & want to install the package for which we only have file
(maybe config file), then we can use the following command to install it,
3- Upgrade packages
# dnf upgrade
# dnf upgrade-minimal
# dnf check-update
4- Downgrade packages
To downgrade the installed packages to older versions, the command is
& if we have some orphaned packages (like some replaces packages that are not required
anymore, ex old kernels etc) on our system that we want to remove, we can use the following
command,
# dnf autoremove
To get the list of how many group packages are installed & how many are available, we can use
To get the list of all packages for a group, we can use the command,
7- Install group
To upgrade the packages from the group and upgrades the group itself
# dnf distro-sync
To undo a transaction,
To only show all install only packages, packages installed outside of DNF and packages not
installed as a dependency,
# dnf repoquery
We now end our tutorial on how to use DNF command in Linux. Please do let us know your
suggestions, questions or queries using the comment box below.
If you think we have helped you or just want to support us, please consider these:-
TheLinuxGURUS.com