rh124_dnf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rh124_dnf [2026/10/24 17:18] – [TO ADD] rpjdayrh124_dnf [2026/10/29 14:56] (current) – [Working with local .rpm files] rpjday
Line 5: Line 5:
   * plugins   * plugins
   * excluding packages   * excluding packages
 +
 +===== Contents of dnf package =====
 +
 +<code>
 +$ rpm -ql dnf | less
 +</code>
  
 ===== /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:
  
 <code> <code>
Line 298: Line 306:
 Matched from: Matched from:
 Filename    : /usr/bin/strace Filename    : /usr/bin/strace
 +</code>
 +
 +If you're not sure of the full path to the file, use a wildcard:
 +
 +<code>
 +$ dnf provides */strace
 </code> </code>
  
Line 439: Line 453:
  
 Total download size: 656 M Total download size: 656 M
 +</code>
 +
 +Upgrade a group:
 +
 +<code>
 +$ dnf group upgrade <groupname>
 +</code>
 +
 +===== Automating Updates with DNF =====
 +
 +<code>
 +$ 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      : 4.20.0
 +Release      : 22.el10_2.alma.1
 +Architecture : noarch
 +Size         : 37 k
 +Source       : dnf-4.20.0-22.el10_2.alma.1.src.rpm
 +Repository   : baseos
 +Summary      : Package manager - automated upgrades
 +URL          : https://github.com/rpm-software-management/dnf
 +License      : GPL-2.0-or-later AND GPL-1.0-only
 +Description  : Systemd units that can periodically download package upgrades and apply
 +             : them.
 </code> </code>
 ===== Working with local .rpm files ===== ===== Working with local .rpm files =====
  
 <code> <code>
-$ dnf download strace+... download fubar-1.2.3.rpm 
 +$ dnf install fubar-1.2.3.rpm
 </code> </code>
  
  • rh124_dnf.1792862323.txt.gz
  • Last modified: 2026/10/24 17:18
  • by rpjday