In Linux, how does one check whether a software is installed ??? Where is the installation path ???

Source: Internet
Author: User

 

<1> in Linux, how does one determine whether a software has been installed?

 

My system is Red Hat

I run the command rpm to check whether a software is installed (for example:MATLABAndFluent), And the following results are obtained:

I useRpm-Qa (| grep) MATLAB, No display after carriage return
I useRpm-Qa fluent, No display after carriage return
I useRpm-Qa VASP, No display after carriage return

But it must have been installed.MATLABAndFluentAnd I use[Root @ node1/] # rpm-Q fluent
HoweverPackage FLUENT Is Not Installed
The same is true for Matlab.

In addition[Root @ node1/] # Man rpm
The returned result isNo manual entry for RPM

Why?

++ ++

Rpm-Qa | grep Software Package

++ ++

Use Yum commandYum searchTry

++ ++

 

If you useRpm-IVH MATLABInstalled,
UseRpm-Qa | grep MATLABIt can be found.

If you use
Make & make instalL installed. So it is best to directly find the executionProgramYou will know whether the device is installed.
Find/-name MATLAB
If it is installed, it will tell you which directory the program is released.

 

++ ++

 Rpm-QaIs to check whether the software is installed,GrepAndFindIs to view the file location

++ ++

 

 

<2> in Linux, how does one check the directory in which a software is installed?

 

++ ++

 
Rpm-QLWhy don't I score the software name,

++ ++

 

 
See how to install it. generally, two methods are available: source code and package installation. if you install the source code, you can view the configure log. If you use RPM or other package methods, you need to check the database, such as rpm-Q. -q <= query (no version name is required when querying the packages installed on the local machine)-Qi # query the details of the packages installed (Information) -Qa | grep DHCP <= List all installed RPM packages-QC list configuration files (files under/etc)-Qd list help files (man) -ql dhcp <= query the file list in the specified RPM package-qf/bin/ls <= query which library contains ls files (note, -QP <RPM package name> <= query by RPM package (. RPM file), you can use other parameters (such as I to query details, L to query the file list, etc.)-QR to list the required dependency suites

++ ++

 

 

 

<3>. application instance: Question about installing glib ???

 

Excuse me: the system has installed the basic version glib in RPM format. I have downloaded the glib high version and the original code. I want to update it, as described in the document:

Tar vzfx glib-XXXXXXX.tar.gz
./Configure
Make
Make install

And then I

Rpm-Q glib

The glib of the earlier version is displayed. I wantRpm-eThe latest version of glib does not work because many programs use depends.
Please help this cainiao solve this stupid problem.

++ ++

 

Compile and install the. tar.gz formatSource codeIt does not affect the. RPM database. In case of any exceptions, the required items should have been correctly installed (I did not say that they can be correctly used ). Use

Rpm-QL xxx

Check the directory in which the earlier version is installed, set it after./configure, and re-make and make install.
For example, if the original glib is installed in/usr/share/glib, use:

./Configure -- prefix =/usr/share
Make
Make install

SourceCodeCompilation and installation requires testing. It may directly copy a large number of files to/usr/share without creating the glib directory. Let's take a look at what you have installed.

 

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.