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

Is there a way to safely uninstall a gem installed in the shared/bundle path? #135

Open
ant0nm opened this issue Jan 10, 2025 · 1 comment

Comments

@ant0nm
Copy link

ant0nm commented Jan 10, 2025

installed to the shared/bundle path. Gems in the development and

If possible, I want to refrain from running a full gem cleanup via bundle clean.
Is there a way to safely uninstall specific gems in the custom BUNDLE_PATH (defaults to shared/bundle)?

None of what I've tried so far seems to be working:
gem uninstall <gem_name>
gem uninstall <gem_name> --install-dir <install/path>
bundle exec gem uninstall <gem_name>

Also note that the gem in question has already been removed from the Gemfile. Now I'm just trying to actually uninstall the gem.
I keep getting the same warning:

Gem '<gem_name>' is not installed

Any idea what might be causing this? Am I missing something here?
Any help would be much appreciated!

@ant0nm ant0nm changed the title Is there a way to safely uninstall a gem stored in the shared/bundle path? Is there a way to safely uninstall a gem installed in the shared/bundle path? Jan 10, 2025
@mattbrictson
Copy link
Member

Hmm. I don't know how to do this with Bundler. Why do want to uninstall a specific gem? Depending on your use case, maybe there is a different approach.

Also, since this seems to be a Bundler-specific question, it might be better to ask in the Bundler project: https://github.com/rubygems/rubygems/issues/new/choose

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

2 participants