[yocto] Requires section of RPM Spec
Mark Hatle
mark.hatle at windriver.com
Tue Oct 25 06:34:07 PDT 2016
On 10/25/16 6:49 AM, Alexander Kanavin wrote:
> On 10/25/2016 02:42 PM, Bipnesh, Abhinav (Abhinav) wrote:
>> Basically when we try to install these package on the image using RPM
>> package management i.e. rpm -ivh <package name> the dependency checks
>> fails as the rootfs doesn't contain RPM database from where the check
>> be made. So below is sample output
>
> If the image doesn't have the RPM database, then you should not use rpm
> at all. Add the package to your image during image creation, for example
> like this:
>
> IMAGE_INSTALL_append = " <package>"
>
> Or you can enable the rpm database on the image by adding
> 'package-management' to your IMAGE_FEATURES.
Alternatively if you want to use 'rpm' as a container, but have no database on
the target. Use 'rpm2cpio <package> | cpio -id' to extract it.
But if you do want to use rpm, it's best to enable 'package-management' if you
intend to install packages onto the target.
--Mark
> Alex
>
More information about the yocto
mailing list