首頁 > 軟體

Linux下面/usr/local和opt目錄

2020-06-16 17:40:03

1./opt

This directory is reserved for all the software and add-on packages that are not part of the default installation. For example, StarOffice, Kylix, Netscape Communicator and WordPerfect packages are normally found here. To comply with the FSSTND, all third party applications should be installed in this directory. Any package to be installed here must locate its static files (ie. extra fonts, clipart, database files) must locate its static files in a separate /opt/'package' or /opt/'provider' directory tree (similar to the way in which Windows will install new software to its own directory tree C:WindowsProgam Files"Program Name"), where 'package' is a name that describes the software package and 'provider' is the provider's LANANA registered name.

此目錄保留所有的軟體和附加包,不屬於預設安裝的一部分。例如,StarOffice,Kylix,Netscape Communicator和WordPerfect軟體包通常是在這裡找到。遵守版,所有的第三方應用程式應該安裝在這個目錄。任 何包將安裝在這裡必須找到它的靜態檔案(如額外的字型,剪貼畫,資料庫檔案)必須找到它的靜態檔案儲存在一個單獨的/選擇/ 'package或/選擇/ 'provider目錄樹(類似於用Windows將安裝新的軟體到自己的目錄樹C: Windows 程式檔案“程式名”),在“包”是一個名字,描述了軟體包的供應商的供應商的lanana註冊名稱。

這裡主要存放那些可選的程式,比如:安裝firefox,裝到/opt目錄,這樣,當你想刪掉firefox的時候,你就可 以直接刪除它,而不影響系統其他任何設定。安裝到/opt目錄下的程式,它所有的資料、庫檔案等等都是放在同個目錄下面。

2./usr/local

This is where most manually installed (ie. outside of your package manager) software goes. It has the same structure as /usr. It is a good idea to leave /usr to your package manager and put any custom scripts and things into /usr/local, since nothing important normally lives in /usr/local.

這裡主要存放那些手動安裝的軟體,即 不是通包管理工具或apt-get安裝的軟體。

本文永久更新連結地址http://www.linuxidc.com/Linux/2016-06/132143.htm


IT145.com E-mail:sddin#qq.com