With ruby-install
, to install the latest stable ruby version, one needs only ruby-install ruby
.
However, with pyenv
one seems to need to do something ridiculous like pyenv install "$(pyenv install --list | tr -d ' ' | grep --extended-regexp '^[0-9.]+$' | tail -1)"
.
Is there a better way to do this? Why do python tools seem to always make installing the latest version such an obtuse process compared to ruby (gem update
vs pip list --outdated | awk '!/Could not|ignored/ { print $1 }' | xargs pip install --upgrade
)? I hope I’m the one missing something, but I can never find easy solutions for this online.
pyenv
but looking at the source of the install command it appears there really is no such built-in command. You could add a script containing the command line you already have to the pathpyenv/libexec
though (e.g.pyenv/libexec/pyenv-update
) which you could then call aspyenv update
. – Caseose