Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| rh124_dnf [2026/10/22 21:21] – [Working with groups] rpjday | rh124_dnf [2026/10/29 14:56] (current) – [Working with local .rpm files] rpjday | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== TO ADD ===== | ===== TO ADD ===== | ||
| - | * dnf config files / | ||
| * plugins | * plugins | ||
| + | * excluding packages | ||
| + | |||
| + | ===== Contents of dnf package ===== | ||
| + | |||
| + | < | ||
| + | $ rpm -ql dnf | less | ||
| + | </ | ||
| ===== /etc/dnf and dnf.conf ===== | ===== /etc/dnf and dnf.conf ===== | ||
| Line 44: | Line 50: | ||
| </ | </ | ||
| + | For help with DNF configuration: | ||
| + | |||
| + | < | ||
| + | $ man dnf.conf | ||
| + | </ | ||
| ===== Upcoming commands ===== | ===== Upcoming commands ===== | ||
| Line 282: | Line 293: | ||
| ==== Find package that contains a given file ==== | ==== Find package that contains a given file ==== | ||
| + | |||
| + | If you know the full path to the file: | ||
| < | < | ||
| Line 293: | Line 306: | ||
| Matched from: | Matched from: | ||
| Filename | Filename | ||
| + | </ | ||
| + | |||
| + | If you're not sure of the full path to the file, use a wildcard: | ||
| + | |||
| + | < | ||
| + | $ dnf provides */strace | ||
| </ | </ | ||
| Line 301: | Line 320: | ||
| $ rpm -q strace | $ rpm -q strace | ||
| $ sudo dnf remove strace | $ sudo dnf remove strace | ||
| + | </ | ||
| + | |||
| + | ===== Checking for/ | ||
| + | |||
| + | Check for potential upgrades with either of: | ||
| + | |||
| + | < | ||
| + | $ dnf check-update | ||
| + | $ dnf list --upgrades | ||
| + | </ | ||
| + | |||
| + | Variations for upgrading: | ||
| + | |||
| + | < | ||
| + | $ dnf upgrade --refresh | ||
| + | $ dnf upgrade | ||
| + | $ dnf upgrade <package list> | ||
| </ | </ | ||
| Line 417: | Line 453: | ||
| Total download size: 656 M | Total download size: 656 M | ||
| + | </ | ||
| + | |||
| + | Upgrade a group: | ||
| + | |||
| + | < | ||
| + | $ dnf group upgrade < | ||
| + | </ | ||
| + | |||
| + | ===== Automating Updates with DNF ===== | ||
| + | |||
| + | < | ||
| + | $ dnf info dnf-automatic | ||
| + | Last metadata expiration check: 23:06:08 ago on Fri 23 Oct 2026 02:35:15 PM. | ||
| + | Available Packages | ||
| + | Name : dnf-automatic | ||
| + | Version | ||
| + | Release | ||
| + | Architecture : noarch | ||
| + | Size : 37 k | ||
| + | Source | ||
| + | Repository | ||
| + | Summary | ||
| + | URL : https:// | ||
| + | License | ||
| + | Description | ||
| + | : them. | ||
| </ | </ | ||
| ===== Working with local .rpm files ===== | ===== Working with local .rpm files ===== | ||
| < | < | ||
| - | $ dnf download strace | + | ... download fubar-1.2.3.rpm |
| + | $ dnf install fubar-1.2.3.rpm | ||
| </ | </ | ||