安装 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