Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check whether a software is installed in Linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report