Gentoo Linux USE Flags¶
查询安装包USE flags¶
equery
可以查询软件包的USE flags,举例查询 firefox
软件包的USE flags:
equery uses www-client/firefox
输出信息:
[ 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="wayland -X -cairo -pango -gtk -gtk2 -gtk3 -qt5 -qt6 -mesa -gnome -kde -fortran"
在修改了USE之后需要对系统重构:
emerge --ask --changed-use --deep @world