Topics

How to completely uninstall a pre-installed package in Yocto #yocto #linux


Soi, Sheng Leong
 

Hi,

I found out that one of the packages in Yocto is unwanted, and wish to completely uninstall the package.

 


The question is how to completely uninstall the pre-installed package in Yocto. Thanks

FYI, I am new in building and compiling Yocto image.

 

 


Josef Holzmayr
 

Howdy!

Am Mi., 15. Juli 2020 um 07:40 Uhr schrieb Soi, Sheng Leong
<sheng.leong.soi@...>:

The question is how to completely uninstall the pre-installed package in Yocto. Thanks

I found out that one of the packages in Yocto is unwanted, and wish to completely uninstall the package.
In contrast to a general purpose distribution where you have little
control over the default set, there is no need to install anything you
do not want. So the correct solution is: do not install that package.

Even moreso, removing it later might be impossible if the image
doesn't have package management enabled.

Greetz


srijan.nandi@...
 

This is what I did. I ran the following:

bitbake <image> -e |grep -v ^# |grep "^DISTRO_FEATURES=\|^IMAGE_FEATURES="

Found out the DISTRO_FEATURES and IMAGE_FEATURES. Thne used DISTRO_FEATURES_remove in the local.conf to remove the features that I do not need. Hope this helps.

-=Srijan Nandi


srijan.nandi@...
 

What I did was. I ran the following:

bitbake <image> -e |grep -v ^# |grep "^DISTRO_FEATURES=\|^IMAGE_FEATURES="

Then used DISTRO_FEATURES_remove in local.conf to remove the unwanted packages.

-=Srijan Nandi


srijan.nandi@...
 

What I did was, ran the following command to see what all gets installed..
 
bitbake <image> -e |grep -v ^# |grep "^DISTRO_FEATURES=\|^IMAGE_FEATURES="
 
Then used DISTRO_FEATURES_remove in the local.conf to removed the unnecessary package. Hope this helps.

-=Srijan Nandi