View software file installation path in Linux

Source: Internet
Author: User

For example, if you want to find the eclipse file, then:

The code is as follows Copy Code
[Root@localhost ~]# Whereis Eclipse

will display:

The code is as follows Copy Code
Eclipse:/usr/bin/eclipse/usr/lib/eclipse/usr/share/eclipse


if I want to see where my Oracel database is installed

First, view the file installation path: Take Oracle here for example. For example, I installed Oracle, but I do not know where the files are installed, in which folders, you can use the following command to view all the file paths

In the terminal input:

The code is as follows Copy Code

Whereis Oracle

Enter, if you have installed Oracle, will display the file installation address, such as my display (the installation address may be different)

Oracle:/usr/bin/oracle/usr/lib/oracle/usr/share/oracle/usr/share/man/man1/oracle.1.gz
As you can see, Oracle is installed in a directory.

If you do not install Oracle or the Oracle installation is unsuccessful, the file path is not displayed. Prompt Only:

Oracle

Second, the query run file path:

If you only need to query the address of the file's running file, use the following command directly (or Oracle, for example):

which Oracle
The results will show:

/usr/bin/oracle

The above is only suitable for installation path to join path

If the source is installed, you can use-prefix to specify the installation path, so that you can easily know the installation path of the software;

3. If it is the RPM package installation, you can use RPM-QAL query

The RPM-QF/path/program name can find out which RPM package a program belongs to, and then rpm-ql that package can see all the files and paths of that package and so on. can also be solved into a cpio file and so on and so on, carefully study the RPM parameters bar.
You can do whatever you want.

The installation of the source code generally consists of 3 steps: Configuration (Configure), compilation (make), installation (make install), the specific installation method of the general author will give the document, here is the main discussion configuration (configure). Configure is an executable script that has many options, using commands./configure–help output A detailed list of options, as follows:

The code is as follows Copy Code

-bash-3.00# ./configure--help

usage:configure [options] [host]

Options: [Defaults in brackets after descriptions]

Configuration:

--cache-file=file Cache test results in file

--help Print this message

--no-create do not create output files

--quiet,--silent does not print ' checking ... ' Messages

--version Print the version of autoconf that created configure

Directory and file names:

--prefix=prefix install architecture-independent files in prefix

[/usr/local]

--exec-prefix=eprefix install architecture-dependent files in Eprefix

[same as prefix]

--bindir=dir user Executables in DIR [Eprefix/bin]

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.