Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to check whether a software is installed in Linux

Shulou Source: shulou.com Published: 2022-06-01 16:07:45 09月18日 Update

This article introduces you how to check whether a certain software is installed in Linux, the content is very detailed, interested friends can refer to it, I hope it can help you.

My system is red hat.

I checked whether a software (such as matlab and fluent) was installed with the command rpm, and got the following results:

I use rpm -qa (|grep) matlab , no display after enter

I use rpm -qa fluent , enter and nothing appears

I use rpm -qa vasp , enter and nothing appears

But in fact, it must be installed matlab and fluent, and I use [root@node1 /]# rpm -q fluent

package fluid is not installed

Matlab is the same.

Also, command [root@node1 /]# man rpm

No manual entry for rpm

Why is that?

++++++++++++++++++++++++++++++++++++++++++

rpm -qa| grep package

++++++++++++++++++++++++++++++++++++++++++

Try yum search with yum command

++++++++++++++++++++++++++++++++++++++++++

If you use rpm-ivh matlab,

with rpm -qa| Grep matlab can be found.

if you are using

make && make install. Then it's best to go directly to the executive program and know if it's installed or not.

find / -name matlab

If so, it tells you which directory the executable program was released into.

++++++++++++++++++++++++++++++++++++++++++

rpm -qa is to see if the software is installed, grep and find are to see the file location

++++++++++++++++++++++++++++++++++++++++++

How to check which directory a software is installed in.linux?

++++++++++++++++++++++++++++++++++++++++++

rpm -ql Software name Why don't you give me points,

++++++++++++++++++++++++++++++++++++++++++

See what happens. There are generally source code and package installation in two ways. Source code installation, then you can see the configure log;rpm package mode, then you have to check the database, such as rpm -q query.- q

Tags: File software query version code command directory program help information content data database method more format source code system problem sure Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Xiaomi Shulou Tech Info Apple Linux