Use package management tools (apt, yum, dnf, zypper, etc.) to install, update, and remove software packages.
Context: Generic GNU/Linux certification command examples.
Use package management tools (apt, yum, dnf, zypper, etc.) to install, update, and remove software packages.
Certainly! Here are some examples of using package management tools on various GNU/Linux distributions:
apt (Debian/Ubuntu):
- Install a package:
sudo apt install package_name
- Update package lists:
sudo apt update
- Upgrade installed packages:
sudo apt upgrade
- Remove a package:
sudo apt remove package_name
- Install a package:
yum (CentOS/RHEL):
- Install a package:
sudo yum install package_name
- Update package lists:
sudo yum check-update
- Upgrade installed packages:
sudo yum update
- Remove a package:
sudo yum remove package_name
- Install a package:
dnf (Fedora):
- Install a package:
sudo dnf install package_name
- Update package lists:
sudo dnf check-update
- Upgrade installed packages:
sudo dnf upgrade
- Remove a package:
sudo dnf remove package_name
- Install a package:
zypper (openSUSE):
- Install a package:
sudo zypper install package_name
- Update package lists:
sudo zypper refresh
- Upgrade installed packages:
sudo zypper update
- Remove a package:
sudo zypper remove package_name
- Install a package:
Note: These commands assume the use of the sudo
command to execute them with administrative privileges. Depending on your distribution and system configuration, you may need to adjust the commands accordingly.