通常說來都是安裝到/usr/share和/usr/local裏了
你能夠經過whereis 軟件名來查找系統裏的文件位置
好比你想查找eclipse文件,那麼就:
[root@localhost ~]# whereis eclipse
會顯示:
eclipse: /usr/bin/eclipse /usr/lib/eclipse /usr/share/eclipsebash
以上只適合安裝路徑加入PATH裏eclipse
2.若是是源碼安裝的話,你能夠使用-prefix指定安裝路徑,這樣,你能夠很輕鬆知道軟件的安裝路徑;
3.若是是rpm包安裝的話,能夠使用rpm -qal查詢一下ui
rpm -qf /路徑/程序名 能夠查到一個程序屬於哪一個rpm包,而後rpm -ql那個包能夠看到那個包的全部文件和路徑等等。還能夠解開成一個cpio文件等等之類的,仔細研究一下rpm的參數吧。
徹底能夠作到任何你想作的。this
源碼的安裝通常由3個步驟組成:配置(configure)、編譯(make)、安裝(make install),具體的安裝方法通常做者都會給出文檔,這裏主要討論配置(configure)。Configure是一個可執行腳本,它有不少選項,使用命令./configure –help輸出詳細的選項列表,以下:
-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 do 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]
……….(省ip
...文檔