On Fri, 25 Oct 2024 at 16:32, Uy Ha via Lists.Yoctoproject.Org <hchanuy=gmail....@lists.yoctoproject.org> wrote: > > I'm just not really sure what `pkg_prerm` does. Does it create a script that > will be run when the package is removed? or does it run entirely during > bitbake build step?
It creates a 'scriptlet' embedded into rpm package (for the sake of example). rpm will write the scriptlet into the target package database when you install the package, and take the 'scriptlet' from that database whenever the package is removed, and then give it to shell interpreter. Then you can put the actual script in that scriptlet. I'd suggest you run experiments with for example poky and toy recipes and sample images that have package management, it's not difficult to do. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64132): https://lists.yoctoproject.org/g/yocto/message/64132 Mute This Topic: https://lists.yoctoproject.org/mt/109204322/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-