* [gentoo-user] emerge all packages which depend on P : how to
@ 2014-02-20 12:38 Helmut Jarausch
2014-02-20 13:04 ` Randolph Maaßen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Helmut Jarausch @ 2014-02-20 12:38 UTC (permalink / raw
To: gentoo-user
Hi,
I have a very simple question. How to emerge (update) all packages
which depend on some
given package P.
I've tried
emerge -uv1 `equery -q d P`
or emerge -uv1 `qdepends -q -Q P`
but both commands (equery and qdepends) generate a list with the
version attached like
app-editors/kile-2.1.3
which emerge doesn't like (unless there is an '= in front of each name)
Is there an easy way to do so without resorting to shell/python
scripting?
Many thanks for a hint,
Helmut
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] emerge all packages which depend on P : how to
2014-02-20 12:38 [gentoo-user] emerge all packages which depend on P : how to Helmut Jarausch
@ 2014-02-20 13:04 ` Randolph Maaßen
2014-02-20 13:21 ` [gentoo-user] " eroen
2014-02-20 13:32 ` [gentoo-user] " Neil Bothwick
2 siblings, 0 replies; 4+ messages in thread
From: Randolph Maaßen @ 2014-02-20 13:04 UTC (permalink / raw
To: gentoo-user
2014-02-20 13:38 GMT+01:00 Helmut Jarausch <jarausch@igpm.rwth-aachen.de>:
> Hi,
>
> I have a very simple question. How to emerge (update) all packages which
> depend on some
> given package P.
>
> I've tried
>
> emerge -uv1 `equery -q d P`
>
> or emerge -uv1 `qdepends -q -Q P`
>
> but both commands (equery and qdepends) generate a list with the version
> attached like
> app-editors/kile-2.1.3
> which emerge doesn't like (unless there is an '= in front of each name)
>
> Is there an easy way to do so without resorting to shell/python scripting?
>
> Many thanks for a hint,
> Helmut
>
Hi, I just had a look on eix and figured out that "eix --deps -# -I P"
lists all packages in short for that are installed and have P in their
dependency variables plus the package itself.
Hope to help
--
Mit freundlichen Grüßen / Best regards
Randolph Maaßen
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: emerge all packages which depend on P : how to
2014-02-20 12:38 [gentoo-user] emerge all packages which depend on P : how to Helmut Jarausch
2014-02-20 13:04 ` Randolph Maaßen
@ 2014-02-20 13:21 ` eroen
2014-02-20 13:32 ` [gentoo-user] " Neil Bothwick
2 siblings, 0 replies; 4+ messages in thread
From: eroen @ 2014-02-20 13:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
On Thu, 20 Feb 2014 13:38:06 +0100, Helmut Jarausch
<jarausch@igpm.rwth-aachen.de> wrote:
> Hi,
>
> I have a very simple question. How to emerge (update) all packages
> which depend on some
> given package P.
>
> I've tried
>
> emerge -uv1 `equery -q d P`
>
> or emerge -uv1 `qdepends -q -Q P`
>
> but both commands (equery and qdepends) generate a list with the
> version attached like
> app-editors/kile-2.1.3
> which emerge doesn't like (unless there is an '= in front of each
> name)
>
> Is there an easy way to do so without resorting to shell/python
> scripting?
>
> Many thanks for a hint,
> Helmut
>
>
How about one of these?
emerge -1 $(qdepends -N -C -Q P)
emerge -1 $(qdepends -C -Q P | sed 's/^/=/')
--
eroen
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] emerge all packages which depend on P : how to
2014-02-20 12:38 [gentoo-user] emerge all packages which depend on P : how to Helmut Jarausch
2014-02-20 13:04 ` Randolph Maaßen
2014-02-20 13:21 ` [gentoo-user] " eroen
@ 2014-02-20 13:32 ` Neil Bothwick
2 siblings, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2014-02-20 13:32 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
On Thu, 20 Feb 2014 13:38:06 +0100, Helmut Jarausch wrote:
> I've tried
>
> emerge -uv1 `equery -q d P`
>
> or emerge -uv1 `qdepends -q -Q P`
>
> but both commands (equery and qdepends) generate a list with the
> version attached like
> app-editors/kile-2.1.3
> which emerge doesn't like (unless there is an '= in front of each name)
>
> Is there an easy way to do so without resorting to shell/python
> scripting?
Stripping the version, which you can do with qatom, is not a good idea
because it will only reinstall the newest version of any slotted
packages. Best to use sed to prefix each atom with =
emerge -1a $(qdepends -qQ P | sed 's/^/=/')
Also, the use of -u in your examples means currently installed packages
will not be re-emerged, unless a newer version is available.
--
Neil Bothwick
Monday is the root of all evil!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-20 13:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20 12:38 [gentoo-user] emerge all packages which depend on P : how to Helmut Jarausch
2014-02-20 13:04 ` Randolph Maaßen
2014-02-20 13:21 ` [gentoo-user] " eroen
2014-02-20 13:32 ` [gentoo-user] " Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox