Score:1

deb package script for --purge

cn flag

Is there any script that get triggered when user execute apt purge? i.e. it does NOT trigger if user runs apt remove ....

user535733 avatar
cn flag
There is exactly one difference between `apt remove` and `apt purge`. `purge` removes files in /etc. `remove` does not. That difference is not in a script. It's in the source code.
xrfang avatar
cn flag
So, if my config file is NOT under `/etc`, there is no difference at all? If so, can I somehow notify `prerm` or `postrm` that it is triggered via `remove` or `purge`?
muru avatar
us flag
Maintainer scripts are executed with arguments that specify what stage of the process is currently going on, so you should be able to use those to do something on purge and something else on normal removal.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.