From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/pkg-generic: add support for uninstalling packages
Date: Tue, 17 Mar 2026 08:58:57 +0100 [thread overview]
Message-ID: <abkJYg9QXlB-Lrii@windsurf> (raw)
In-Reply-To: <20260317074923.981623-1-chakrabortyshubham66@gmail.com>
Hello,
On Tue, Mar 17, 2026 at 01:19:19PM +0530, Shubham Chakraborty wrote:
> Buildroot currently does not track which files are installed by each
> package in output/staging, output/target, output/host, and
> output/images directories. This makes it impossible to cleanly remove
> a package without performing a full rebuild.
>
> This commit adds:
>
> 1. A new Python script (support/scripts/pkg-uninstall.py) that reads
> manifest files (.files-list*.txt) tracking package file installations
> and removes all files belonging to a specified package from a given
> directory.
Thanks for your patch. Unfortunately there's a reason why this hasn't
been implemented, because it simply doesn't work. Think about the
following scenario:
1. Make a build with BR2_PACKAGE_NTP=y, BR2_PACKAGE_OPENSSL=y
2. Run "make openssl-uninstall"
3. ntp is now broken on the target, because the ntp binary is linked
against libopenssl.so, but libopenssl.so is no longer on the target
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-03-17 7:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 7:49 [Buildroot] [PATCH] package/pkg-generic: add support for uninstalling packages Shubham Chakraborty
2026-03-17 7:58 ` Thomas Petazzoni via buildroot [this message]
2026-03-17 8:11 ` Shubham Chakraborty
2026-03-17 9:08 ` Thomas Petazzoni via buildroot
[not found] <mailman.9.1773748801.2109898.buildroot@buildroot.org>
2026-03-18 4:43 ` Andreas Ziegler
2026-03-18 7:44 ` Shubham Chakraborty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abkJYg9QXlB-Lrii@windsurf \
--to=buildroot@buildroot.org \
--cc=chakrabortyshubham66@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox