I'm trying to get rid of netdata from my Yocto environment. So I added it to the IMAGE_INSTALL_remove variable inside my <image>.bb file:
IMAGE_INSTALL_remove = "netdata"
I also added it to conf/bblayers.conf file:
DISTRO_FEATURES_remove = "netdata"
Then I removed the output directory (rm -rf tmp-glibc) and the buildhistory/.../netdata directory and I bitbaked my image again.
Unfortunately the package is still compiled and goes into the output folder.
Yocto is hard to learn, and I'm still learning it, so I'm not a Yocto expert, and might even be wrong. But I hope I can help you.
I think that you don't have to modify your
bblayers.confby addingAre you sure that the
netdatapackage is not needed by any other packages? For example, if insiderecipe-a.bbyou have:Then
recipe-bis automatically included in the result image.My advice is: check the
netdatadependencies withBecause maybe this is needed from some other package, and you have to remove the other package too in order to see
netdataremoved.If the package is always there, as a last resort you can also try to clean the entire image with:
And then rebuild it with:
Source: https://www.openembedded.org/wiki/Inspect_DEPENDS