Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reset bundler path?

How can I reset the bundler install path to default?

I had initially set it with bundle install --path .gems but now I'd like to reset it to the default system location.

like image 772
Shpigford Avatar asked May 10 '11 18:05

Shpigford


People also ask

How do I change my default bundler?

gem env – try to search in provided list under GEM PATHS, in specifications/default. remove there bundler-VERSION. gemspec. install bundler, if you don't have specific: gem install bundler:VERSION --default.

What does bundle clean do?

Description. This command will remove all unused gems in your bundler directory. This is useful when you have made many changes to your gem dependencies.

Where is my bundle config?

The configuration will be stored in ~/. bundle/config . If name already is set, name will be overridden and user will be warned. Executing bundle config unset <name> will delete the configuration in both local and global sources.


2 Answers

bundle install --system   

Bundler docs

Edit - this command has now been updated!

See @Najmul's answer for the latest version

like image 94
Art Shayderov Avatar answered Sep 20 '22 23:09

Art Shayderov


For anyone visiting this in 2021, the above mentioned system flag is now deprecated. You have to set the bundle config by running: `

bundle config set --local system 'true' 

and then you run:

 bundle install 

as usual.

like image 25
Najmul Avatar answered Sep 20 '22 23:09

Najmul