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@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt

Reply via email to