Wireshark-bugs: [Wireshark-bugs] [Bug 9222] Provide complete uninstall instructions
Comment # 6
on bug 9222
from Guy Harris
(In reply to comment #4)
> ... make it use the output of "pkgutil --files" on the packages to
> get a list of files in the package, sort it in reverse order, and use that
> to remove the files, rather than wiring in the pathnames of directories to
> remove (to handle packages installed in a non-standard location).
Good luck with that, at least for the command-line tools package:
$ pkgutil --files org.wireshark.cli.pkg | sort -r | more
wireshark
$
The rest are all symlinks, which are set up by a post-install script and aren't
officially in the package, and the full path where it was installed isn't there
anyway (although it's hardwired to /usr/local/bin).
It might work for the others, however.
Figuring out how to take a reverse-sorted list of pathnames (which means they
should be bottom-up in the directory hierarchy) and remove both files and
directories in that list is left as an exercise for the reader. It appears,
from a quick test, that the rm command will refuse to remove directories, even
when run as root (not something to assume is the case on OS X, given that Time
Machine uses hard links to directories to do de-duplication on backup trees).
You are receiving this mail because:
- You are watching all bug changes.