官术网_书友最值得收藏!

Updating rhc

The OpenShift command-line tool, rhc, is the most powerful and popular way to work with OpenShift. In this recipe, you will learn how to update rhc to the latest version. OpenShift Online has a three-week release cycle, and most of the time, the rhc client tool is also updated to either support a new feature or fix a bug. So, it always helps if you use the latest version of rhc.

Getting ready

To be ready for this recipe, you will need an already installed rhc. No other prerequisites are required.

How to do it…

To update the rhc gem, run the gem update command:

$ gem update rhc

This is all you need to do to update the rhc command line to the latest version.

How it works…

rhc is a Ruby gem and RubyGems is a package manager like many other package managers. It uses a central repository, which hosts installable packages. When you run the gem update command, this command-line tool fetches the latest packages from the central repository and installs them.

There's more…

When you start working with rhc, you will soon have multiple versions of the rhc gem installed on your machine. You can uninstall all the previous versions using the cleanup command. This command will uninstall old versions of installed gems in the local repository:

$ gem cleanup rhc

See also

  • The Installing the OpenShift rhc command-line client recipe
主站蜘蛛池模板: 肃南| 府谷县| 余姚市| 灵寿县| 舞阳县| 昭觉县| 黄平县| 深圳市| 江陵县| 蒙山县| 永登县| 永登县| 什邡市| 岚皋县| 北海市| 柘荣县| 额尔古纳市| 莱西市| 明溪县| 定陶县| 通化县| 拉孜县| 竹溪县| 巴林右旗| 高雄县| 建宁县| 昌江| 沅江市| 辉南县| 张家界市| 光山县| 民权县| 深水埗区| 商城县| 云龙县| 海门市| 田林县| 华阴市| 南涧| 洪洞县| 乐安县|