Skip to main content
JJimé.2
Associate II
April 6, 2023
Question

How to remove APT and DPKG from yocto build

  • April 6, 2023
  • 1 reply
  • 1736 views

Hello,

We are using st-image-core from recipes-st in yocto and I'm removing some packages from the build that we don't really need. While going through the list, I have found that apt and dpkg are being built and I would like to remove them from my image.

I have tried using SKIP_RECIPE[apt] and SKIP_RECIPE[dpkg] in the local.conf file, but all I get is an error saying they are dependencies:

ERROR: Required build target 'st-image-core' has no buildable providers.
Missing or unbuildable dependency chain was: ['st-image-core', 'apt']
ERROR: Required build target 'st-image-core' has no buildable providers.
Missing or unbuildable dependency chain was: ['st-image-core', 'dpkg']

I have been digging through the recipes and I couldn't find the dependency for those two packages. Is there any way to remove them from the image?

Thank you.

1 reply

Olivier GALLIEN
Technical Moderator
May 9, 2023

Hi @Jesús Jiménez Sánchez​ ,

Sorry your post didn't get an answer earlier.

I have no straightforward answer but let me know if you succeed to manage or still stuck.

In that case I would analyze this further.

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
mteaching
Associate III
November 18, 2024

If you have the method, please shared it to us.