ruby-install
ruby-install copied to clipboard
Avoid an installation if the requested ruby is already installed
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.
There is a --no-reinstall
flag, or do you want --no-reinstall
to be the default behavior?
@ferrarimarco Sometimes folk build the same version once again but differently.
@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 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 I misunderstood your first answer. This is a perfectly fine use case.