forked from bluet/syspkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
When using the Go library and calling the Delete() function in the apt backend with ArgsPurge set in CustomCommandArgs, the purge behavior is not applied. The package is removed, but config files remain (dpkg shows state rc).
Example (Go snippet):
opts := &manager.Options{
AssumeYes: true,
CustomCommandArgs: []string{manager.ArgsPurge}, // request purge
}
aptPM.Delete([]string{"ebtables"}, opts)###Expected
The command executed should be equivalent to:
apt remove --purge ebtablesso that configuration files are also removed.
Actual
The package is removed, but config files remain:
dpkg-query -W -f='${Status}\n' ebtables
# => deinstall ok config-filesNotes
- This issue is about supporting purge when explicitly requested.
- Default behavior (apt remove) should remain unchanged.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels