good way to clean up after an uninstall?
twilwa opened this issue · comments
I notice that pkgx mentions that it may have polluted .local during install. Is there a good way to find where the binaries out to be after removing pkgx? Since they're shims/tarballs, am I safe to just delete the whole thing, and does that mean I have to reinstall anything that pkgx was originally handling? struggling to get this uninstall completed, heh.
If there is a good methodology, I might suggest writing/be able to write a PR myself detailing such a method to the documentation.
Thanks for the assist.
pkgx uses .local/bin for install
ed shims; on linux it uses .local/state and .cache (i believe) unless their respective XDG_* variables are set.
yeah, I ended up with a grep rm and seeing what's broken, more or less, lol. There's probably a better way to do it, i'm still pretty green. anything i should be on the lookout for in terms of .local/state and .cache cleanup?
can close this out whenever unless there's a more complete series of uninstall commands you wanna spitball :)
It's not that pkgx pollutes ~/.local
it's that the tools you run with pkgx
may “pollute” your home directory in general.
You will need to refer to each and every tool to figure out what to do about it.
This is not a pkgx
problem, all package managers have this problem.
Uninstalling pkgx
If you are asking what you need to do to uninstall pkgx
then per our uninstall docs:
~/.pkgx
~/.cache/pkgx
or~/Library/Caches/pkgx
~/.local/share/pkgx
or~/Library/Application Support/pkgx
~/.local/bin
will contain any shims you installed withpkgx install foo
pkgx
itself does not put anything else anywhere. Tools you run with pkgx
may do whatever they want. This is not a problem specific to pkgx
.