Skip to content
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

good way to clean up after an uninstall? #901

Open
twilwa opened this issue Dec 22, 2023 · 3 comments
Open

good way to clean up after an uninstall? #901

twilwa opened this issue Dec 22, 2023 · 3 comments

Comments

@twilwa
Copy link

twilwa commented Dec 22, 2023

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
Copy link
Contributor

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
Copy link
Author

twilwa commented Dec 22, 2023

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
Copy link
Member

mxcl commented Jan 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants