Gentoo Linux USE Flags

查询安装包USE flags

equery 可以查询软件包的USE flags,举例查询 firefox 软件包的USE flags:

通过 equery 查询 www-client/firefox 的USE参数
equery uses www-client/firefox

输出信息:

通过 equery 查询 www-client/firefox 的USE参数输出案例
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for www-client/firefox-121.0:
 U I
 - - X                : Add support for X11
 + + clang            : Use Clang compiler instead of GCC
 + + dbus             : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
...
 + + gmp-autoupdate   : Allow Gecko Media Plugins (binary blobs) to be automatically downloaded and kept up-to-date in user profiles
...
 + + jumbo-build      : Enable unified build - combines source files to speed up build process, but requires more memory
...
 + + system-av1       : Use the system-wide media-libs/dav1d and media-libs/libaom library instead of bundled
 + + system-harfbuzz  : Use the system-wide media-libs/harfbuzz and media-gfx/graphite2 instead of bundled
 + + system-icu       : Use the system-wide dev-libs/icu instead of bundled
 + + system-jpeg      : Use the system-wide media-libs/libjpeg-turbo instead of bundled
 + + system-libevent  : Use the system-wide dev-libs/libevent instead of bundled
 + + system-libvpx    : Use the system-wide media-libs/libvpx instead of bundled
...
 + + system-webp      : Use the system-wide media-libs/libwebp instead of bundled
 + + telemetry        : Send anonymized usage information to upstream so they can better understand our users
 + + wayland          : Enable dev-libs/wayland backend
...

精简系统

我在部署 xcloud 的简单桌面系统时,力求轻量级,所以采用如下配置(不断迭代改进)

以服务为主兼顾少量图形桌面的轻量级USE配置
USE="wayland -X -cairo -pango -gtk -gtk2 -gtk3 -qt5 -qt6 -mesa -gnome -kde -fortran"
  • 在修改了USE之后需要对系统重构:

在修改了全局 USE flag 之后对整个系统进行更新
emerge --ask --changed-use --deep @world

参考