Doing software installations, updates, and rollbacks with YUM/DNF
In the previous section, we saw how to install a package. During the process, we saw a confirmation request to ensure that we were sure that we wanted to include new software in the system. Let’s now install software with dnf install
, but using the –y
option to answer yes to all questions that the command will issue:
[root@rhel-instance ~]# dnf install zip –y [omitted] Installed: zip-3.0-33.el9.x86_64 Complete!
As you can see, the zip
package was installed, without asking questions. We also notice that dnf
finds the dependent packages, resolves the dependencies, and installs all that is needed for a package to run. This way, the system is kept in a coherent status, making it more reliable and predictable.
We can see which packages are ready...