You are not logged in.
I want to know if there's a way to specify actions when uninstalling a package.
What I want is to allow a daemon package to add an user (this part done) but be able to remove that user when the package is no longer needed.
Offline
I'm no expert but I'm pretty sure you'll need to use either the pre_remove or post_remove part of the install - depending on your requirements. If you look at /var/abs/install.proto you can see the different sections. pacman runs these commands as root (pretty sure) so you should be able to add some kind of userdel/groupdel as needed.
--
HTH, G.S.
Offline
thanks for the clue, now got it working
Offline