How to check whether a software is installed under Linux??? Where is the installation path of the software???

Time:2021-2-22

My system is red hat

I use the command rpm to check whether a certain software is installed (for example:matlabAndfluent)The results are as follows

I use itrpm -qa (| grep) matlabThere is no display after enter
I use itrpm -qa fluentThere is no display after enter
I use itrpm -qa vaspThere is no display after enter

But it must have beenmatlabandfluentAnd I use[[email protected] /]# rpm -q fluent
What is shown ispackage fluent is not installed
It’s the same with MATLAB

In addition, the order[[email protected] /]# man rpm
What we returned wasNo manual entry for rpm

Why?

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

RPM – QA | grep software package

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

Using the yum commandyum searchtry

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

 If you userpm -ivh matlabIt’s loaded,
userpm -qa | grep matlabIt must be able to be found.

If you are using
make && make instalIt’s packed in L. Then it’s better to go directly to the executive program to know if it has been installed
find / -name matlab
If it is installed, it will tell you which directory the executable program has been released to.

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

 rpm -qaIs to check whether the software is installed,grepandfindYes, view the file location

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

<2> How to check which directory a software is installed in under. Linux?

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

rpm -qlSoftware name

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

See how

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

<3> Application example: the problem of installing glib???

 

Excuse me: the system has installed the bottom version glib, RPM format, I downloaded the glib higher version, the original code, I want to update him, according to the document:

Copy code

The code is as follows:

tar vzfx glib-XXXXXXX.tar.gz
./configure
make
make install

After that, I’ll try again

Copy code

The code is as follows:

rpm -q glib

It shows the glib of the previous version, I thinkrpm -eGlib, but this stupid way doesn’t work, because many programs depend on it
Please help me this rookie solve this stupid problem

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

Compile and install by yourself tar.gz Format of the source code does not affect the. RPM database. If there is no accident, what you need should have been installed correctly (I didn’t say that it can be used correctly). use

Copy code

The code is as follows:

rpm -ql xxx
Check the directory where the lower version is installed, set it after. / configure, make again and make install.
For example, if the original glib is installed under / usr / share / glib, use:

Copy code

The code is as follows:

./configure –prefix=/usr/share
make
make install

The compilation and installation of source code need to be tested. It may copy a lot of files directly to / usr / share without building glib directory. Take a look at what you’ve installed. It should be enlightening.

Recommended Today

Background management system menu management module

1 menu management page design 1.1 business design Menu management, also known as resource management, is the external manifestation of system resources. This module is mainly to add, modify, query and delete the menu. CREATE TABLE `sys_menus` ( `id` int(11) NOT NULL AUTO_INCREMENT, `Name ` varchar (50) default null comment ‘resource name’, `URL ` varchar […]