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: signature.asc
Description: PGP signature

Reply via email to