Gentoo Archives: gentoo-user

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to find all packages which need Python2_7
Date: Tue, 03 Mar 2015 09:48:07
Message-Id: 20150303124746.27b6684061d5a6848eccd1f8@gentoo.org
In Reply to: [gentoo-user] How to find all packages which need Python2_7 by Helmut Jarausch
1 Hello,
2
3 On Tue, 03 Mar 2015 10:21:19 +0100 Helmut Jarausch wrote:
4 > Hi,
5 >
6 > I'd like to install all packages which need Python, only for Python3 except those which cannot be installed for Python3.
7 > How can I find out which of the packages installed on my machine have PYTHON_TARGETS=python2_7" (only).
8 > I could loop over `qlist -IC` do an emerge -vp each grepping for this string.
9 > But is there an easier way.
10
11 You are almost there, just learn the power of mighty eix:
12
13 EIX_LIMIT=0 eix -I --only-names -\( -U python_targets_python2_ -! -U python_targets_python3_ -\)
14
15 This will return you all installed packages having "python2_*" in
16 their python targets, but not having "python3_*".
17
18 Best regards,
19 Andrew Savchenko

Replies

Subject Author
Re: [gentoo-user] How to find all packages which need Python2_7 Andrew Savchenko <bircoph@g.o>
Re: [gentoo-user] How to find all packages which need Python2_7 Helmut Jarausch <jarausch@××××××××××××××××.de>