Dnf: Difference between revisions

From DikapediaV2
Jump to: navigation, search
(Created page with "For <b>Yum, Apt, and Repos</b> stuff, refer to the <b>Yum, Apt, and Repos</b> page. ====Dnf==== ---- <b>DNF</b> is the modern successor to Yum, featuring improved speed, efficiency, and enhanced dependency resolution capabilities. More information: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/managing-software-packages_configuring-basic-system-settings#doc-wrapper")
 
No edit summary
Tag: Manual revert
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:




====Dnf====
===Dnf===
----
----
<b>DNF</b> is the modern successor to Yum, featuring improved speed, efficiency, and enhanced dependency resolution capabilities.
<b>DNF</b> is the modern successor to Yum, featuring improved speed, efficiency, and enhanced dependency resolution capabilities.
Line 8: Line 8:


More information: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/managing-software-packages_configuring-basic-system-settings#doc-wrapper
More information: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/managing-software-packages_configuring-basic-system-settings#doc-wrapper
===How to Lock a Specific Package===
----
If you want to lock a package, such as the kernel so that you can prevent other kernels from getting installed, you can edit the following file and list the packages you want to lock:
$ dzdo cat /etc/dnf/dnf.conf | grep -i exclude
exclude=kernel* kmod-kvdo
====How to view DNF install job history====
----
You can use <b>dnf history list</b>:
$ sudo dnf history list
Updating Subscription Management repositories.
ID    | Command line                                                                                                              | Date and time    | Action(s)      | Altered
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      9 | -y install google-chrome                                                                                                  | 2024-11-21 10:13 | Install        |    7 EE
      8 | install firefox                                                                                                          | 2024-11-21 10:12 | I, U          |    7
      7 | group install GNOME base-x Fonts                                                                                          | 2024-11-21 09:59 | I, U          |  648
      6 |                                                                                                                          | 2024-11-13 06:55 | I, U          |  32  <
      5 | -y install perl nscd                                                                                                      | 2024-10-28 14:40 | Install        |  157 >
      4 | update -y                                                                                                                | 2024-10-28 14:37 | I, U          |  139
      3 | remove containers-common -y                                                                                              | 2024-10-28 14:36 | Removed        |  19
      2 | -y install katello-host-tools katello-host-tools-tracer                                                                  | 2024-10-28 14:36 | Install        |    2  <
      1 |                                                                                                                          | 2024-10-28 14:11 | Install        |  664 >E

Latest revision as of 21:59, 10 December 2024

For Yum, Apt, and Repos stuff, refer to the Yum, Apt, and Repos page.


Dnf


DNF is the modern successor to Yum, featuring improved speed, efficiency, and enhanced dependency resolution capabilities.


More information: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/managing-software-packages_configuring-basic-system-settings#doc-wrapper


How to Lock a Specific Package


If you want to lock a package, such as the kernel so that you can prevent other kernels from getting installed, you can edit the following file and list the packages you want to lock:

$ dzdo cat /etc/dnf/dnf.conf | grep -i exclude
exclude=kernel* kmod-kvdo


How to view DNF install job history


You can use dnf history list:

$ sudo dnf history list
Updating Subscription Management repositories.
ID     | Command line                                                                                                              | Date and time    | Action(s)      | Altered
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     9 | -y install google-chrome                                                                                                  | 2024-11-21 10:13 | Install        |    7 EE
     8 | install firefox                                                                                                           | 2024-11-21 10:12 | I, U           |    7
     7 | group install GNOME base-x Fonts                                                                                          | 2024-11-21 09:59 | I, U           |  648
     6 |                                                                                                                           | 2024-11-13 06:55 | I, U           |   32  <
     5 | -y install perl nscd                                                                                                      | 2024-10-28 14:40 | Install        |  157 >
     4 | update -y                                                                                                                 | 2024-10-28 14:37 | I, U           |  139
     3 | remove containers-common -y                                                                                               | 2024-10-28 14:36 | Removed        |   19
     2 | -y install katello-host-tools katello-host-tools-tracer                                                                   | 2024-10-28 14:36 | Install        |    2  <
     1 |                                                                                                                           | 2024-10-28 14:11 | Install        |  664 >E