Difference between revisions of "Dnf Red Hat"

From Teknologisk videncenter
Jump to: navigation, search
m
m
Line 3: Line 3:
 
*dnf list              # List all installed packages
 
*dnf list              # List all installed packages
 
*dnf list *lib*      # List all files containing lib in its name
 
*dnf list *lib*      # List all files containing lib in its name
 +
*dnf install foo # Install the package named foo

Revision as of 08:57, 20 February 2024

Remember sudo

  • dnf search foo # Search for package containing foo in either name or short description
  • dnf list # List all installed packages
  • dnf list *lib* # List all files containing lib in its name
  • dnf install foo # Install the package named foo