Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does it install all versions of a gem when you type apt-get install libsomething-ruby?

apt-get gem install type versions
0
Posted

Why does it install all versions of a gem when you type apt-get install libsomething-ruby?

0

This is because RubyGems supports parallel version installs. For example, RubyGems allows having both Rails 2.1.2 and 2.2.2 installed at the same time. Applications and libraries can depend on a specific version of a gem. Dpkg does not have a direct equivalent of this feature. So as a compromise, and in order to ensure that everything works out-of-the-box, we install latest versions of the minor versions. That is, if the “something” gem has versions 1.0.0, 1.0.1 and 1.2.0, then DebGem provides packages for versions 1.0.1 and 1.2.0 but not 1.0.0. It is possible to only install a specific version of a gem.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123