Skip to content

How does rbenv know where to find packages? #1529

Answered by mislav
AdrianTP asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not completely sure about your question re: gems and Gemfiles, but I can answer about how rbenv knows where to download the Ruby package from:

  1. rbenv install 3.1.4 calls ruby-build 3.1.4 ~/.rbenv/versions/3.1.4;
  2. Within the ruby-build project, that activates the Ruby 3.1.4 definition file;
  3. That definition file specifies that Ruby should be downloaded from https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.4.tar.gz and compiled;
  4. Optionally, the RUBY_BUILD_MIRROR_URL environment variable can be set to download ruby-build packages from an alternate host, e.g. an internal mirror server. See here for more information.

However, when Gems are installed within the context of a Ruby version, th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AdrianTP
Comment options

Answer selected by AdrianTP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants