Re: Suggestions to improve this minimal kickstart config for CentOS 6?

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

 



On 07/22/2011 02:16 PM, Manuel Wolfshant wrote:
>> %post
>> rpm -e $(rpm -qa | grep -i \\-firmware | grep -v kernel-firmware)
>>
> And by the way, the above can rewritten in a shorter form:
>            rpm -e $( rpm -qa \*firmware | grep -v kernel)
>
> rpm -qa will enumerate all packages but in fact you want only the
> firmware ones. So you run an useless grep to filter them when in fact
> rpm can do that for you in the first place.

Cool, thanks for reminding me about that feature of rpm -qa.

	-Kartik

_______________________________________________
CentOS-virt mailing list
CentOS-virt@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-virt


[Index of Archives]     [CentOS Users]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]

  Powered by Linux