You will see something similar to this if the package has been installed: Output You may check to see if the tmux package is installed on the system by running the command below: sudo rpm -q tmux Pass the package name to the rpm -q command to see if a specific package has been installed. You can query the packages using the rpm command's -q option.Īll installed packages will be listed using the following command: sudo rpm -qa Unzip.x86_64 6.0-19.el7 output above indicates that the system has unzipped version 6.0-19 installed. Use the grep command to filter the output and check if a given package is installed.įor instance, you might execute the following command to see if the unzip package is installed on the system: sudo yum list installed | grep unzip Since the packages list is usually lengthy, so it is advisable to pipe the output to less: sudo yum list installed | less Use the following command to list the packages that are installed on your CentOS system with yum: sudo yum list installedĪ list of all installed packages, along with details about their versions and the repository of the RPM packages, will be printed by the program. It can be used to download, install, delete, query, and manage RPM software packages from official CentOS repositories as well as third-party sources. The default package manager for CentOS is YUM (Yellow Dog Updater). In this tutorial, you will check if a certain package is installed, count the number of installed packages, and determine the version of an installed package. When you need to install the same packages on a different machine or need to reinstall your CentOS system, it might be helpful to know how to list the packages that are installed on your system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |