Skip to contentSkip to conversation

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

DISCUSSION Soi, Sheng Leong 3 participants 5 messages Jul 15, 2020 – Jul 16, 2020

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

Howdy!

Am Mi., 15. Juli 2020 um 07:40 Uhr schrieb Soi, Sheng Leong <[email protected]>:

Quoted 5 lines

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

#2 lore raw

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

#3 lore raw
In reply to Josef Holzmayr-Khosh Amoz

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

#4 lore raw
In reply to Josef Holzmayr-Khosh Amoz

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