[CentOS-virt] Suggestions to improve this minimal kickstart config for CentOS 6?

Kartik Subbarao subbarao at computer.org
Fri Jul 22 16:22:32 EDT 2011


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



More information about the CentOS-virt mailing list