-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] When deleting apps, auto detect .pkg apps and use native tools to assist with uninstalling #134
Comments
That's a good idea! |
Are you aware if pkgutil command has some type of uninstall command? I didn't see anything. |
I think a good way to implement this is to just add all the files from |
One thing I was stuck on is that --forget for pkgutil seems to require sudo. I might need to wait to add this in later down the line as I was looking to possibly setup a helper tool for sudo commands to get away from AppleScript and all the other little restrictions. |
Is your feature request related to a problem? Please describe.
Forgive me if this is already implemented but this might be a good idea. As you're aware, there are a bunch of ways an app can be installed, by dragging the app bundle to /Applications, via Hombrew and other third-party package managers, but also in the form of .pkg files (Eg. MS Teams), which is the "native" MacOS package format.
Describe the solution you'd like
When an App is deleted with this software, it would be a good idea if it checked if the file was installed as a .pkg file. This can be demonstrated on the command line with the "pkgutil --pkgs" command. The pkgutil command line app has a host of other features, including tracking all files installed by the .pkg file but also all files created by the .pkg. Implementing this could increase the accuracy and might also prevent the pkg file database becoming out of sync if a .pkg app is just uninstalled (similar to just deleting an RPM or DEB based app on Linux by just removing the files).
There is a dedicated app which basically acts as a frontend to pkg and allows removal. It's cheap but it would be nice if this could all be done your app: https://www.corecode.at/uninstallpkg/
I assume you are already taking this approach with apps installed via Homebrew etc.
The text was updated successfully, but these errors were encountered: