Dandified YUM (DNF) is the next upcoming major version of YUM. It does package management using RPM, libsolv and hawkey libraries. For metadata handling and package downloads it utilizes librepo. To process and effectively handle the comps data it uses libcomps.
This details the process of installing software.
-
To install a single package:
sudo dnf install <package>
As an example, to install the
vim
package:sudo dnf install vim
-
Optionally, use the
-y
flag to automatically answer "yes" to all prompts:sudo dnf install -y <package>
-
To install multiple packages in a single command, simply separate each package with a space:
sudo dnf install <package1> <package2> <package3>
-
To install any of the predefined groups of packages, use the
group install
command:sudo dnf group install '<group>'
As an example, to install the
Development Tools
group:sudo dnf group install 'Development Tools'
This details the process of updating a software or the system.
-
To update a single package:
sudo dnf upgrade <package>
As an example, to upgrade the
vim
package:sudo dnf upgrade vim
-
To update the entire system:
sudo dnf upgrade
This details the process of uninstalling software.
-
To uninstall a single package:
sudo dnf remove <package>
As an example, to uninstall the
vim
package:sudo dnf remove vim
-
Optionally, use the
-y
flag to automatically answer "yes" to all prompts:sudo dnf remove -y <package>
-
To uninstall multiple packages in a single command, simply separate each package with a space:
sudo dnf remove <package1> <package2> <package3>
This details the process of searching software.
-
To search for a package:
dnf search <package>
As an example, to search for the
vim
package:dnf search vim
-
To list down all available predefined groups of packages:
dnf group list
This details the process of cleaning up the system.
-
To remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed:
sudo dnf autoremove
-
To delete cached package files and any data that have been left behind:
sudo dnf clean all