Re: rpm installing using for loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kaushal Shriyan wrote:
Hi All

I am stuck with installing rpm using for loop

I tried the below

#for i in 'cat list'; do rpm -ivh $i ; done

This construct is easier to see is right, and easier to nest:
@ for i in $(cat list)  do rpm -ivh $i ; done

but in this case I prefer
xargs <list rpm --upgrade

man xargs # for more




--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux