如何从 portage 中删除集合

如何从 portage 中删除集合

我正在处理很多 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*'

我什至添加了-qt5USE 标志。

我记得我通过使用了一些 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

答案1

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.

相关内容