unsintaller support

This commit is contained in:
2025-03-13 13:27:41 +08:00
parent 832b53dfc9
commit b114db583b
2 changed files with 15 additions and 1 deletions

14
tool/store-helper/uninstaller Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
dpkg -l | grep "^ii $1 " > /dev/null
RET="$?"
if [[ "$RET" == "0" ]] ;then
apt autopurge $1 -y
else
if command -v bookworm-run > /dev/null;then
echo "Try ACE Bookworm"
bookworm-run apt autopurge $1 -y
fi
fi
exit "$RET"