安裝 app-portage/gentoolkitpython
使用以下方式,可查詢某個被包安裝的文件列表,能夠篩選文件類型app
equey files [--filter=doc] <包名稱>
emerge -c 以後,執行一下 revdep-rebuild
修復潛在的依賴損壞ide
全局 USE 標誌含義寫在 /usr/portage/profiles/use.desc 文件中ui
局部 USE 標誌含義寫在 /usr/portage/profiles/use.local.desc 中spa
查詢已安裝包的 USE 詳情:debug
user $equery --nocolor uses =gnumeric-1.12.31 [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for app-office/gnumeric-1.12.31: U I + + introspection : Add support for GObject based introspection - - libgda : Enable database support through gnome-extra/libgda. - - perl : Enable perl plugin loader. + + python : Enable python plugin loader. + + python_targets_python2_7 : Build with Python 2.7
能夠在 /etc/env.d 中建立自定義環境的文件,如:/etc/env.d/99local,文件名稱隨意,從而沒必要編輯 /etc/profile,防止誤改系統變量。使設置的環境變量當即生效:
codeenv-update && source /etc/profile
爲某個包自定義特殊的編譯參數:在 /etc/portage/env
路徑下創建一個寫入編譯參數的文件,文件名隨意,而後在 /etc/portage/package.env
文件中爲軟件包指定自定義編譯標誌的文件名,示例以下:blog
# FILE /etc/portage/env/debug-cflagsSpecific variables for debugging CFLAGS="-O2 -ggdb -pipe" FEATURES="${FEATURES} nostrip" # FILE /etc/portage/package.envUsing debug-cflags for the mplayer package media-video/mplayer debug-cflags
查詢某個包被哪些包依賴ip
qdepends -Q <pkg name>
...ci