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/24 17:17] – [Checking for/installing upgrades] rpjday | rh124_dnf [2026/10/29 14:56] (current) – [Working with local .rpm files] rpjday | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== TO ADD ===== | ===== TO ADD ===== | ||
| - | * upgrade | ||
| * plugins | * plugins | ||
| + | * excluding packages | ||
| + | |||
| + | ===== Contents of dnf package ===== | ||
| + | |||
| + | < | ||
| + | $ rpm -ql dnf | less | ||
| + | </ | ||
| ===== /etc/dnf and dnf.conf ===== | ===== /etc/dnf and dnf.conf ===== | ||
| Line 287: | 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 298: | 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 439: | 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 | ||
| </ | </ | ||