Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpapis/pkg_uninstaller
OSX Packages Uninstaller
https://github.com/mpapis/pkg_uninstaller
Last synced: 4 days ago
JSON representation
OSX Packages Uninstaller
- Host: GitHub
- URL: https://github.com/mpapis/pkg_uninstaller
- Owner: mpapis
- License: other
- Created: 2011-12-18T15:17:47.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-18T19:28:49.000Z (about 13 years ago)
- Last Synced: 2025-02-07T21:16:26.076Z (13 days ago)
- Language: Shell
- Homepage:
- Size: 107 KB
- Stars: 396
- Watchers: 20
- Forks: 59
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OSX Packages Uninstaller
This software is aimed to help manage packages uninstalling in OSX.
## Installation
Installation is as simple as:
[sudo] bash < <(curl -sL https://raw.github.com/mpapis/pkg_uninstaller/master/pkg-install)
Adding to PATH, for system installation (with sudo):
echo 'PATH=$PATH:/opt/pkg_uninstaller' >> /etc/profile
Adding PATH when installed as user (without sudo):echo 'PATH=$PATH:$HOME/.pkg_uninstaller' >> $HOME/.bash_profile
Note the single quotes are important in both cases.
## Installing package file
Install packages with:
pkg-install
This will create `uninstall_.sh` in current directory.
To uninstall this package just execute `./uninstall_.sh`.
### Example
# coming soon
## Uninstalling single packages by name.
List available package names (possibly filtering by [name]):
pkg-list [name]
Uninstall package:
pkg-uninstall
## Using internally in package to build uninstaller
- You have to bundle `pkg-wrapper` with your application
and install it to disk before executing the hook bellow.- In before installing hook call this script:
```
#!/bin/bashpkg-wrapper before "your package name"
```- In after installing hook call this script:
```
#!/bin/bashpkg-wrapper before "your package name" /path/to/uninstaller_name.sh
```- In uninstall hook call:
```
#!/bin/bash/path/to/uninstaller_name.sh
rm /path/to/uninstaller_name.sh
```