Yum is a package manager for RPM-based Linux distributions. It is used to manage the installation, update, and removal of software packages in a system. One of the most useful commands in Yum is “yum list installed packages,” which allows you to view all the packages that are currently installed on your system. In this article, we will explore Yum list installed packages in detail, including its usage, code examples, and related concepts.
What is Yum List Installed Packages?
Yum list installed packages is a command that allows you to view all the packages that are currently installed on your system. It provides a comprehensive list of all the packages along with their version numbers and installation dates. This command is particularly useful when you need to identify the packages that are installed on a system, or when you want to check if a specific package is installed.
How to Use Yum List Installed Packages Command
To use the Yum list installed packages command, you need to open a terminal window and type the following command:
yum list installed
This command will display a list of all the packages that are currently installed on your system. The list will include the package name, version number, and installation date. Here is an example output:
PackageKit-glib.x86_64 1.1.10-1.fc33 @updates
PackageKit-gstreamer-plugin.x86_64
1.1.10-1.fc33 @updates
PackageKit-yum.x86_64 1.1.10-1.fc33 @updates
abrt.x86_64 2.14.4-1.fc33 @updates
abrt-addon-ccpp.x86_64 2.14.4-1.fc33 @updates
abrt-addon-kerneloops.x86_64 2.14.4-1.fc33 @updates
abrt-addon-pstoreoops.x86_64 2.14.4-1.fc33 @updates
abrt-addon-python.x86_64 2.14.4-1.fc33 @updates
abrt-addon-upload-watch.x86_64
2.14.4-1.fc33 @updates
abrt-addon-vmcore.x86_64 2.14.4-1.fc33 @updates
abrt-core-backtrace.x86_64 2.14.4-1.fc33 @updates
abrt-core-ccpp.x86_64 2.14.4-1.fc33 @updates
abrt-core-panic-oops.x86_64 2.14.4-1.fc33 @updates
abrt-desktop.x86_64 2.14.4-1.fc33 @updates
abrt-gui.x86_64 2.14.4-1.fc33 @updates
abrt-gui-libs.x86_64 2.14.4-1.fc33 @updates
The output will be a long list of all the packages that are installed on your system. You can scroll through the list to find the package you are looking for. Alternatively, you can use the grep command to search for a specific package. For example, to search for the “firefox” package, you can use the following command:
yum list installed | grep firefox
This command will display all the packages that contain the word “firefox” in their name.
Related Concepts
Yum list installed packages is just one of the many commands available in Yum. Here are some related concepts that you should be familiar with:
Yum Update
Yum update is a command that allows you to update all the packages that are currently installed on your system. It downloads the latest version of each package and installs it on your system. To use this command, you need to type the following command:
yum update
Yum Install
Yum install is a command that allows you to install a new package on your system. To use this command, you need to specify the name of the package you want to install. For example, to install the “firefox” package, you can use the following command:
yum install firefox
Yum Remove
Yum remove is a command that allows you to remove a package from your system. To use this command, you need to specify the name of the package you want to remove. For example, to remove the “firefox” package, you can use the following command:
yum remove firefox
Conclusion
Yum list installed packages is a powerful command that allows you to view all the packages that are currently installed on your system. It is particularly useful when you need to identify the packages that are installed on a system, or when you want to check if a specific package is installed. In this article, we explored Yum list installed packages in detail, including its usage, code examples, and related concepts. We hope that you found this article helpful and informative.