How to check whether a certain software is installed in CentOS

angryTom
Release: 2020-03-18 11:27:19
Original
2631 people have browsed it

How to check whether a certain software is installed in CentOS

How to check whether a certain software is installed in CentOS

1. If the rpm package is installed, you can use rpm -qa to see it. If you want To find out whether a certain software package is installed, use

Recommended learning: navicat tutorial

rpm -qa | grep "软件或者包的名字"
Copy after login

2. If it is installed by yum method, you can use yum list installed to find it. If you want to find the specified Package, add | grep "software name or package name" after the command;

yum list installed | grep "软件名或者包名"
Copy after login

3. If you compile and install the source code package yourself, such as .tar.gz or tar.bz2, this can only be viewed Does the executable file exist, for example

whereis mysql
whereis php
whereis nginx
Copy after login

Note: If installed as root user, the executable program is usually in the /sbin:/usr/bin directory

This article comes from PHP Chinese website, CentOS usage tutorial column, please pay attention to this column for more related tutorials!

The above is the detailed content of How to check whether a certain software is installed in CentOS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!