Determine whether a software has been installed in CentOS
My system is centos6.5
I run the command rpm to check whether a software is installed (such as matlab and fluent). The following results are obtained:
I use rpm-qa (| grep) matlab and press enter without any display
I use rpm-qa fluent and press enter without any display
I used rpm-qa vasp and press enter without any display
But in fact it must be installed with matlab and fluent, and I use [root @ node1/] # rpm-q fluent
Package fluent is not installed
The same is true for matlab.
In addition, the command [root @ node1/] # man rpm
The returned result is No manual entry for rpm.
Why?
++ ++
Rpm-qa | grep Software Package
++ ++
Run yum search
++ ++
If you use rpm-ivh matlab,
Rpm-qa | grep matlab can certainly be found.
If you use
Make & make install. So it is better to go directly to the execution program and find out whether the program is installed.
Find/-name matlab
If it is installed, it will tell you which directory the program is released.
++ ++
Rpm-qa is to check whether the software is installed, grep and find are to view the file location
++ ++