歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Linux下面/usr/local和opt目錄

Linux下面/usr/local和opt目錄

日期:2017/3/1 11:46:48   编辑:關於Linux
  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:\Windows\Progam 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安裝的軟件。

Copyright © Linux教程網 All Rights Reserved