gem install rubygems-update update_rubygems gem update --system
It may require to be run as root or use sudo.