Gentoo
如何從portage中刪除set
我正在處理很多 Qt5 塊。
[blocks B ] <dev-qt/qtgui-4.8.6:4 ("<dev-qt/qtgui-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtsql-4.8.6:4 ("<dev-qt/qtsql-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtcore-4.8.6:4 ("<dev-qt/qtcore-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtopengl-4.8.6:4 ("<dev-qt/qtopengl-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qt3support-4.8.6:4 ("<dev-qt/qt3support-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtscript-4.8.6:4 ("<dev-qt/qtscript-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qttest-4.8.6:4 ("<dev-qt/qttest-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtphonon-4.8.6:4 ("<dev-qt/qtphonon-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtxmlpatterns-4.8.6:4 ("<dev-qt/qtxmlpatterns-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtwebkit-4.8.6:4 ("<dev-qt/qtwebkit-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtdbus-4.8.6:4 ("<dev-qt/qtdbus-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) [blocks B ] <dev-qt/qtsvg-4.8.6:4 ("<dev-qt/qtsvg-4.8.6:4" is blocking dev-qt/qtchooser-0_p20150102) (dev-qt/qtchooser-0_p20150102:0/0::gentoo, ebuild scheduled for merge) pulled in by dev-qt/qtchooser required by (dev-qt/qtpositioning-5.4.0:5/5::gentoo, ebuild scheduled for merge) dev-qt/qtchooser required by (dev-qt/qtgraphicaleffects-5.4.0:5/5::gentoo, ebuild scheduled for merge) dev-qt/qtchooser required by (dev-qt/qtcore-5.4.0:5/5::gentoo, ebuild scheduled for merge) ...
但是我沒有安裝qt5(可能被一一刪除-我前段時間試圖解決它):
# equery list qt*-5* * Searching for qt*-5* ... !!! No installed packages matching 'qt*-5*'
我什至添加
-qt5
了 USE 標誌。我記得我使用了一些 qt5 集,
emerge --ask @qt5-essentials @qt5-addons
並且列表集證實了這一點。# emerge --list-sets ... qt5-addons qt5-essentials qt5-tools
但我找不到任何方法來擺脫它們 - 沒有出現選項。並且自定義集目錄不存在:
# ls /etc/portage/sets/ ls: cannot access /etc/portage/sets/: No such file or directory
AFAIK 沒有命令。
檢查
/var/lib/portage/world_sets
揭示真相:)# cat /var/lib/portage/world_sets @qt5-addons @qt5-essentials
刪除後,完整更新 (@world) 不再抱怨。
下次先檢查
man emerge
,開始時會提到集合:set A set is a convenient shorthand for a large group of packages. Three sets are currently always available: selected, system and world. selected contains the user-selected "world" packages that are listed in /var/lib/portage/world, and nested sets that may be listed in /var/lib/portage/world_sets. system refers to a set of packages deemed necessary for your system to run properly. world encom‐ passes both the selected and system sets. [See FILES below for more information.] Other sets can exist depending on the current configuration. The default set configuration is located in the /usr/share/portage/config/sets directory. User sets may be created by placing files in the /etc/portage/sets/ directory (see portage(5)). Note that a set is generally used in conjunction with --update. When used as arguments to emerge sets have to be prefixed with @ to be recognized. Use the --list-sets action to display a list of available package sets.