歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 為什麼很多應用都安裝在/usr/local目錄下

為什麼很多應用都安裝在/usr/local目錄下

日期:2017/3/1 15:36:29   编辑:關於Linux
為什麼很多應用都安裝在/usr/local目錄下 很多應用都安裝在/usr/local下面,那麼,這些應用為什麼選擇這個目錄呢?理解了最根源的原因後,也許對你理解linux組織文件的方式有更直觀的理解。 答案是:Automake工具定義了下面的一組變量: [php] Directory variable Default value prefix /usr/local exec_prefix ${prefix} bindir ${exec_prefix}/bin libdir ${exec_prefix}/lib … includedir ${prefix}/include datarootdir ${prefix}/share datadir ${datarootdir} mandir ${datarootdir}/man infodir ${datarootdir}/info docdir ${datarootdir}/doc/${PACKAGE} … 而GUN下面絕大部分應用的編譯系統都是用automake。 於是乎,你看到的很多很多應用都安裝在了/usr/local/目錄下。
Copyright © Linux教程網 All Rights Reserved