CentOS6.5のSubversionを1.7にする。

開発環境を作る際、ちまちまと入れるのがめんどくさいので以下のコマンドでもろもろを一気に入れてしまいます。
[cc lang=”teraterm”]
[root@centos ~]# yum groupinstall “Development Tools”
[/cc]

しかーし。
リポジトリから降ってくるSubversionは1.6.11。
1.6とかゴミなのでさくっと消えていただき、RPMforgeから1.7を拝借してきましょう。

汚物は消毒だああああああああ( ・`д・´)

[cc lang=”teraterm”]
[root@centos ~]# yum erase subversion
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
–> Running transaction check
—> Package subversion.i686 0:1.6.11-9.el6_4 will be erased
–> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================
Removing:
subversion i686 1.6.11-9.el6_4 @base 11 M

Transaction Summary
===================================================================================================================================================
Remove 1 Package(s)

Installed size: 11 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : subversion-1.6.11-9.el6_4.i686 1/1
Verifying : subversion-1.6.11-9.el6_4.i686 1/1

Removed:
subversion.i686 0:1.6.11-9.el6_4

Complete!
[root@centos ~]#
[/cc]

RPMforgeリポジトリを登録します。
http://pkgs.repoforge.org/rpmforge-release/
から最新と思われるものの探してきて、wgetしてrpm -ivhします。

[cc lang=”teraterm”]
[root@centos ~]# cd /usr/local/src
[root@centos src]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
-bash: wget: command not found
[root@centos src]# which wget
/usr/bin/which: no wget in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@centos src]#
[/cc]

-bash: wget: command not found

・・・(;・∀・)ハッ???

[cc lang=”teraterm”]
[root@centos src]# yum install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package wget.i686 0:1.12-1.8.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================
Installing:
wget i686 1.12-1.8.el6 base 481 k

Transaction Summary
===================================================================================================================================================
Install 1 Package(s)

Total download size: 481 k
Installed size: 1.8 M
Is this ok [y/N]: y
Downloading Packages:
wget-1.12-1.8.el6.i686.rpm | 481 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : wget-1.12-1.8.el6.i686 1/1
Verifying : wget-1.12-1.8.el6.i686 1/1

Installed:
wget.i686 0:1.12-1.8.el6

Complete!
[root@centos src]#
[/cc]

改めて。
[cc lang=”teraterm”]
[root@centos src]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
–2013-12-06 10:39:52– http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
Resolving pkgs.repoforge.org… 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 302 Found
Location: http://rpmforge.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm [following]
–2013-12-06 10:39:53– http://rpmforge.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
Resolving rpmforge.sw.be… 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm [following]
–2013-12-06 10:39:54– http://tree.repoforge.org/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
Resolving tree.repoforge.org… 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm [following]
–2013-12-06 10:39:55– http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
Resolving apt.sw.be… 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 12664 (12K) [application/x-redhat-package-manager]
Saving to: “rpmforge-release-0.5.3-1.el6.rf.i686.rpm”

100%[=========================================================================================================>] 12,664 23.7K/s in 0.5s

2013-12-06 10:39:56 (23.7 KB/s) – “rpmforge-release-0.5.3-1.el6.rf.i686.rpm” saved [12664/12664]

[root@centos src]#
[/cc]

[cc lang=”teraterm”]
[root@centos src]# rpm -ivh rpmforge-release-0.5.3-1.el6.rf.i686.rpm
warning: rpmforge-release-0.5.3-1.el6.rf.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing… ########################################### [100%]
1:rpmforge-release ########################################### [100%]
[root@centos src]# yum install –enablerepo=rpmforge-extras subversion
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* extras: www.ftp.ne.jp
* rpmforge: ftp.kddilabs.jp
* rpmforge-extras: ftp.kddilabs.jp
* updates: www.ftp.ne.jp
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 2.8 MB 00:02
rpmforge-extras | 1.9 kB 00:00
rpmforge-extras/primary_db | 496 kB 00:00
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package subversion.i686 0:1.7.4-0.1.el6.rfx will be installed
–> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================
Installing:
subversion i686 1.7.4-0.1.el6.rfx rpmforge-extras 5.9 M

Transaction Summary
===================================================================================================================================================
Install 1 Package(s)

Total download size: 5.9 M
Installed size: 24 M
Is this ok [y/N]: y
Downloading Packages:
subversion-1.7.4-0.1.el6.rfx.i686.rpm | 5.9 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : subversion-1.7.4-0.1.el6.rfx.i686 1/1
Verifying : subversion-1.7.4-0.1.el6.rfx.i686 1/1

Installed:
subversion.i686 0:1.7.4-0.1.el6.rfx

Complete!
[/cc]

[cc lang=”teraterm”]
[root@centos src]# svn –version
svn, version 1.7.4 (r1295709)
compiled Apr 5 2012, 16:55:06

Copyright (C) 2012 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/
[/cc]

:)

ところでどなたか上のようなbashの操作履歴をwordpressに投稿するときに綺麗に色付けしてくれるプラグインご存じないですかね?
CodeColorerというプラグインだとソースコードは綺麗になるのですが…。

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください