About Lesson
YUM and DNF are package managers for Red Hat-based systems.
-
Update Package Index:
-
Command:
sudo yum update
(orsudo dnf update
)
-
-
Install a Package:
-
Command:
sudo yum install [package_name]
-
Example:
sudo yum install nano
-
-
Remove a Package:
-
Command:
sudo yum remove [package_name]
-
Example:
sudo yum remove nano
-
-
Search for a Package:
-
Command:
yum search [package_name]
-
Example:
yum search nginx
-