ConoHa VPS に Mercurialをインストールしてみた
提供: tknotebook
メインページ>コンピュータの部屋>ConoHa VPS を使ってみた
DVCS の双璧の一つ Mercurial の最新版をインストールしてみました。
インストールは CENTOS6用の RPM が Mercurial のオフィシャルサイトで提供されているので 簡単です。
Gitと同様、SSHが設定できていれば、リもート リポジトリを即運用出来ます。
目次
[非表示]手順
RPMの入手
オフシャルサイトのダウンロードページ https://www.mercurial-scm.org/downloads から rpm を入手できます。 2016.11.1 時点では 3.9.2-1 が最新で、 ConoHaのOSは CentOS6.6なので、CentOS6用のRPM
wget https://www.mercurial-scm.org/release/centos6/RPMS/x86_64/mercurial-3.9.2-1.x86_64.rpm
をダウンロードしました。
インストール
安全策をとって、yumでインストールしました。
yum localinstall mercurial-3.9.2-1.x86_64.rpm
Loaded plugins: fastestmirror, security Setting up Local Package Process Examining mercurial-3.9.2-1.x86_64.rpm: mercurial-3.9.2-1.x86_64 Marking mercurial-3.9.2-1.x86_64.rpm to be installed Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: ftp.jaist.ac.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp Resolving Dependencies --> Running transaction check ---> Package mercurial.x86_64 0:3.9.2-1 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: mercurial x86_64 3.9.2-1 /mercurial-3.9.2-1.x86_64 16 M Transaction Summary ================================================================================ Install 1 Package(s) Total size: 16 M Installed size: 16 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : mercurial-3.9.2-1.x86_64 1/1 Verifying : mercurial-3.9.2-1.x86_64 1/1 Installed: mercurial.x86_64 0:3.9.2-1 Complete!
確認
hg -- version
Mercurial Distributed SCM (version 3.9.2) (see https://mercurial-scm.org for more information) Copyright (C) 2005-2016 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.