Gentoo Linux 2005.0 x86 手冊[28]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

當 depclean 完成後,執行 revdep-rebuild 重新編譯動態連結到已移除套件共享函式庫的套件。revdep-rebuildgentoolkit 套件的一部分;不要忘了先安裝他。

原始碼 11: 執行 revdep-rebuild

# revdep-rebuild

當這些都完成後,你的系統就正在使用新的 USE 設定了。

2.c. 套件相關 USE 設定

查看可用的 USE 設定

讓我們使用 mozilla 的範例:它聽取著什麼 USE 關鍵字?要查看,我們使用 emerge 加上 --pretend--verbose 參數:

原始碼 12: 查看 USE 關鍵字

# emerge --pretend --verbose mozilla
These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] net-www/mozilla-1.5-r1 +java +crypt -ipv6 -gtk2 +ssl +ldap 
+gnome -debug +mozcalendar -mozaccess -mozxmlterm -moznoirc -moznomail
-moznocompose -moznoxft 

除了emerge 以外還有別的軟體可以完成類似查詢的工作。事實上,我們有一個特別的套件叫做 equery。這是包含在 gentoolkit 的套件內。首先,安裝 gentoolkit

原始碼 13: 安裝 gentoolkit

# emerge gentoolkit

現在執行 equery 然後使用參數查看某個套件的 USE 關鍵字。舉例來說 gnumeric 套件:

原始碼 14: 使用 equery 查看使用的 USE 關鍵字

# equery uses gnumeric
[ Colour Code : set unset ]
[ Legend      : (U) Col 1 - Current USE flags        ]
[             : (I) Col 2 - Installed With USE flags ]

 U I [ Found these USE variables in : app-office/gnumeric-1.2.0 ]
 - - libgda  : Adds GNU Data Access (CORBA wrapper) support for gnumeric
 - - gnomedb : unknown
 + + python  : Adds support/bindings for the Python language
 + + bonobo  : Adds support for gnome-base/bonobo (Gnome CORBA interfaces)

3. Portage 功能

3.a. Portage 功能

Portage 有一些而外的功能讓你的 Gentoo 使用經驗更加美好。這些功能中許多都是依賴特定軟體來加強效能,可靠性,安全...

你需要編輯 /etc/make.conf 包含各種功能關鍵字,以空白分隔的 FEATURES 變數來開啟或關閉特定 Portage 功能。在一些情況你也要安裝這個功能需要的額外套件。

不是所有 Portage 支援的功能都列在這篇文件?請查閱 make.conf 手冊頁來取得完整的列表。

原始碼 1: 查閱 make.conf 手冊頁

$ man make.conf

如果要找到預設啟動那些功能,執行 emerge --info 並在其中尋找 FEATURES 變數或用 grep:

原始碼 2: 找出那些功能已經設定了

$ emerge --info | grep FEATURES

本文关键:Gentoo Linux 2005.0 x86 手冊
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top