pkgxdev / pkgx

run anything
https://pkgx.sh
Apache License 2.0
8.95k stars 1.36k forks source link

good way to clean up after an uninstall? #901

Open twilwa opened 9 months ago

twilwa commented 9 months ago

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.

jhheider commented 9 months ago

pkgx uses .local/bin for installed shims; on linux it uses .local/state and .cache (i believe) unless their respective XDG_* variables are set.

twilwa commented 9 months ago

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 :)

mxcl commented 8 months ago

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 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.