Difference between revisions of "DNF"

From Freephile Wiki
Jump to navigation Jump to search
Line 7: Line 7:
  
 
The Rocky Linux wiki has info on their repositories and also version policy https://wiki.rockylinux.org/rocky/repo/#version-policy
 
The Rocky Linux wiki has info on their repositories and also version policy https://wiki.rockylinux.org/rocky/repo/#version-policy
 +
 +
;Reclaim space from DNF caches
 +
:sudo dnf clean dbcache
 +
:sudo dnf clean packages
 +
:sudo dnf clean all
 +
 +
;How to Install a Specific Version of a software package:
 +
:sudo dnf list installed elasticsearch
 +
:sudo dnf list elasticsearch --showduplicates
 +
:sudo dnf remove elasticsearch kibana
 +
:sudo dnf erase elasticsearch kibana
 +
:sudo dnf list installed elasticsearch
  
 
[[Category:System Administration]]
 
[[Category:System Administration]]
 
[[Category:Packages]]
 
[[Category:Packages]]
 
[[Category:RedHat]]
 
[[Category:RedHat]]

Revision as of 13:02, 18 March 2024

Did Not Finish
no, that's a status for someone who pulls out of a Disc Golf tournament.

wp:DNF (software) is the successor to Yum - a package manager for .rpm-based Linux distributions. In RHEL, and by extension, AlmaLinux and Rocky Linux, yum is an alias for dnf. (So you're using dnf even if you think you're using yum.) dnf has been around since 2013 and became default in 2015

https://dnf.readthedocs.io/en/latest/command_ref.html

The Rocky Linux wiki has info on their repositories and also version policy https://wiki.rockylinux.org/rocky/repo/#version-policy

Reclaim space from DNF caches
sudo dnf clean dbcache
sudo dnf clean packages
sudo dnf clean all
How to Install a Specific Version of a software package
sudo dnf list installed elasticsearch
sudo dnf list elasticsearch --showduplicates
sudo dnf remove elasticsearch kibana
sudo dnf erase elasticsearch kibana
sudo dnf list installed elasticsearch