ruby-install icon indicating copy to clipboard operation
ruby-install copied to clipboard

Avoid an installation if the requested ruby is already installed

Open ferrarimarco opened this issue 8 years ago • 5 comments

Currently I am running ruby-install ruby x.x.x to install Ruby as a non privileged user.

If I run the same command again with the same user, ruby-install does not check if the package is already installed, but installs it one more time, leading to a waste of time.

ferrarimarco avatar Apr 05 '16 13:04 ferrarimarco

There is a --no-reinstall flag, or do you want --no-reinstall to be the default behavior?

postmodern avatar Apr 05 '16 21:04 postmodern

@ferrarimarco Sometimes folk build the same version once again but differently.

havenwood avatar Apr 05 '16 21:04 havenwood

@postmodern I didn't notice the flag. Is there any documentation? Maybe it could be useful to have a --force-reinstall flag and the --no-reinstall be the default, like other package managers do, like pip for example.

@havenwood I think it's a bad practice so it should not be encouraged.

ferrarimarco avatar Apr 05 '16 21:04 ferrarimarco

@ferrarimarco What's bad practice about rebuilding the same version with different build options? Say for example you want to rebuild 2.3.0 with tail call optimization or whatever else?

havenwood avatar Apr 05 '16 22:04 havenwood

@havenwood I misunderstood your first answer. This is a perfectly fine use case.

ferrarimarco avatar Apr 06 '16 07:04 ferrarimarco