[Yum] Installing devel pkgs

Seth Vidal skvidal at fedoraproject.org
Tue Jun 8 11:44:10 UTC 2010



On Tue, 8 Jun 2010, Frank Murphy wrote:

> Using Fedora Rawhide.
>
> I want to install devel pkgs, for all installed rpms.
>
> Have tried:
> rpm -qa | yum install *-devel*
> rpm -qa | yum install '*-devel*'
>
> Is there some option I am overlooking.

you want something closer to:


for pkg in `rpm -qa`
do
installlist="$installlist ${pkg}-devel"
done
yum install $installlist

give that a try.

-sv



More information about the Yum mailing list