Portal:KIWI/FAQ/18

Jump to: navigation, search

Q: How could i get an list of packages from an installed system for using it in KIWI

An easy way would be

rpm -qa --queryformat "\<package name=\"%{NAME}\"/\>\n" >rpms.txt

That will produce a list of all rpm's installed in the following format;

<package name="kernel-xen"/>

You can then simply open up your config.xml file and paste the content of rpms.txt in between the following two tags;

<packages type="image">
</packages>