<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>おじさんの備忘録-番外編- &#187; リポジトリ</title>
	<atom:link href="http://www.dxcode.com/archives/tag/%e3%83%aa%e3%83%9d%e3%82%b8%e3%83%88%e3%83%aa/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dxcode.com</link>
	<description>個人的なメモ書き</description>
	<lastBuildDate>Fri, 13 Jan 2012 23:57:25 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>CentOS 6 セキュリティ更新とバグフィクス用リポジトリを公開</title>
		<link>http://www.dxcode.com/archives/2011/09301757.html</link>
		<comments>http://www.dxcode.com/archives/2011/09301757.html#comments</comments>
		<pubDate>Fri, 30 Sep 2011 00:12:42 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[BlueHost]]></category>
		<category><![CDATA[CentOS6]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[アップデート]]></category>
		<category><![CDATA[リポジトリ]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=1757</guid>
		<description><![CDATA[CentOS 6用のContinuous Releaseリポジトリが公開されていた。 次期バージョン（CentOS 6.1）がリリースされるまでの繋ぎとしての役割みたいなものみたいだが、セキュリティ更新とバグフィクスが多 [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS 6用のContinuous Releaseリポジトリが公開されていた。<br />
次期バージョン（CentOS 6.1）がリリースされるまでの繋ぎとしての役割みたいなものみたいだが、セキュリティ更新とバグフィクスが多く含まれているのでリポジトリを追加し更新した。</p>
<p>リポジトリの追加</p>
<pre>[root@centos ~]# yum install centos-release-cr</pre>
<p>もしくは下記のどちらかをインストール</p>
<pre>i386:
http://mirror.centos.org/centos/6/extras/i386/RPMS/centos-release-cr-6-0.el6.centos.i686.rpm
( sha256: 9fc78d2d79abeb1513f0851d075a2860f5039fc8db3fb0db4c660252fffda894 )

x86_64:
http://mirror.centos.org/centos/6/extras/x86_64/RPMS/centos-release-cr-6-0.el6.centos.x86_64.rpm
( sha256: bd55e1505caae2f78c306290d235b7f54833fcad5a9f1942b3cb54e28f7bfe73 )</pre>
<p>インストール後にアップデートを実行すると200近いパッケージ（150M超）の更新があった。</p>
<p>参考  »  <a href="http://lists.centos.org/pipermail/centos-announce/2011-September/018078.html" title="[CentOS-announce] CentOS-6.0 Continuous Release i386 and x86_64">[CentOS-announce] CentOS-6.0 Continuous Release i386 and x86_64</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2011/09301757.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL5.5.16にアップデート</title>
		<link>http://www.dxcode.com/archives/2011/09221746.html</link>
		<comments>http://www.dxcode.com/archives/2011/09221746.html#comments</comments>
		<pubDate>Wed, 21 Sep 2011 23:20:03 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS6]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Remi]]></category>
		<category><![CDATA[リポジトリ]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=1746</guid>
		<description><![CDATA[MySQLの5.5.16がRemiレポジトリよりリリースされていたのでアップデート。 (1/12): mysql-5.5.16-1.el6.remi.x86_64.rpm &#124; 5.7 MB (2/12): mysql-d [...]]]></description>
			<content:encoded><![CDATA[<p>MySQLの5.5.16がRemiレポジトリよりリリースされていたのでアップデート。</p>
<pre>(1/12): mysql-5.5.16-1.el6.remi.x86_64.rpm                         | 5.7 MB
(2/12): mysql-devel-5.5.16-1.el6.remi.x86_64.rpm                   | 152 kB
(3/12): mysql-libs-5.5.16-1.el6.remi.x86_64.rpm                    | 757 kB
(4/12): mysql-server-5.5.16-1.el6.remi.x86_64.rpm                  |  10 MB
(5/12): php-5.3.8-4.el6.remi.x86_64.rpm                            | 2.3 MB
(6/12): php-cli-5.3.8-4.el6.remi.x86_64.rpm                        | 2.2 MB
(7/12): php-common-5.3.8-4.el6.remi.x86_64.rpm                     | 844 kB
(8/12): php-gd-5.3.8-4.el6.remi.x86_64.rpm                         | 131 kB
(9/12): php-mbstring-5.3.8-4.el6.remi.x86_64.rpm                   | 894 kB
(10/12): php-mcrypt-5.3.8-4.el6.remi.x86_64.rpm                    |  39 kB
(11/12): php-mysql-5.3.8-4.el6.remi.x86_64.rpm                     |  80 kB
(12/12): php-pdo-5.3.8-4.el6.remi.x86_64.rpm                       | 106 kB</pre>
<p>PHP関連も修正が入っていたみたいなので併せて実行</p>
<p>DB自体をアップグレード</p>
<pre>[root@centos ~]# mysql_upgrade -u root -p</pre>
<p>MySQLの再起動</p>
<pre>[root@centos ~]# /etc/rc.d/init.d/mysqld restart
mysqld を停止中:                                           [  OK  ]
mysqld を起動中:                                           [  OK  ]</pre>
<p>バージョン確認</p>
<pre>[root@centos ~]# rpm -q mysql
mysql-5.5.16-1.el6.remi.x86_64</pre>
<p>MySQL5.5.16更新内容 »» <a href="http://dev.mysql.com/doc/refman/5.5/en/news-5-5-16.html" title="D.1.1. Changes in MySQL 5.5.16 (15 September 2011)">D.1.1. Changes in MySQL 5.5.16 (15 September 2011)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2011/09221746.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP5.2.10にアップデート</title>
		<link>http://www.dxcode.com/archives/2009/06231021.html</link>
		<comments>http://www.dxcode.com/archives/2009/06231021.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 22:57:47 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[リポジトリ]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=1021</guid>
		<description><![CDATA[PHPを5.2.9から5.2.10にアップデート。 »» php.announce: PHP 5.2.10 Released! »» PHP 5 ChangeLog PHP 5 ChangeLog セキュリティ関連バグを [...]]]></description>
			<content:encoded><![CDATA[<p>PHPを5.2.9から5.2.10にアップデート。</p>
<p>»» <a title="php.announce: PHP 5.2.10 Released!" href="http://news.php.net/php.announce/76">php.announce: PHP 5.2.10 Released!</a><br />
»» <a title="PHP: PHP 5 ChangeLog" href="http://www.php.net/ChangeLog-5.php#5.2.10">PHP 5 ChangeLog PHP 5 ChangeLog</a></p>
<p>セキュリティ関連バグを含む100以上のバグフィックスが行われていて、安定性が向上してるとの事でアップデート推奨になっている。</p>
<p><img src="http://www.dxcode.com/wp-content/uploads/2009/06/php5210.png" alt="PHP5.2.10" width="411" height="87" class="attachment wp-att-1022 " /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/06231021.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP5.2.9にアップデート</title>
		<link>http://www.dxcode.com/archives/2009/0303316.html</link>
		<comments>http://www.dxcode.com/archives/2009/0303316.html#comments</comments>
		<pubDate>Mon, 02 Mar 2009 21:02:31 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[リポジトリ]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=316</guid>
		<description><![CDATA[先日追加したリポジトリLes RPM de RemiにPHP5.2.9がアップされていたので早速アップデートしてみた。 アップデート自体はエラーなく行えたもののhttpdの再起動で失敗。少し考え前回PHP5.2.8のアッ [...]]]></description>
			<content:encoded><![CDATA[<p>先日追加したリポジトリ<a title="Les RPM de Remi" href="http://blog.famillecollet.com/">Les RPM de Remi</a>にPHP5.2.9がアップされていたので早速アップデートしてみた。<br />
アップデート自体はエラーなく行えたもののhttpdの再起動で失敗。少し考え前回PHP5.2.8のアップデート時と同様の失敗を犯していたことに気付く。</p>
<p>PHPを高速化すべく導入していた<a title="Welcome to the eAccelerator project." href="http://eaccelerator.net/">eAccelerator</a>を再ビルドしていなかった為に再起動時にエラーが発生しhttpdが起動しなかったというもの。</p>
<blockquote><p>[root@server ~]# wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2<br />
[root@server ~]# tar xvjf eaccelerator-0.9.5.3.tar.bz2<br />
[root@server ~]# cd eaccelerator-0.9.5.3<br />
[root@server eaccelerator-0.9.5.3]# phpize<br />
Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
[root@server eaccelerator-0.9.5.3]# ./configure<br />
[root@server eaccelerator-0.9.5.3]# make<br />
[root@server eaccelerator-0.9.5.3]# make install</p></blockquote>
<p>php.iniファイルへの記述やeAcceleratorのコントロールパネルへのアクセス等は変更する必要がないので、再コンパイル後そのまま再起動でOK。<br />
再コンパイルって上記のように再インストールしているが、この方法で間違っていないのかそれとも他の方法があるのか少々不安なものの問題なく動作しているので良しとする。</p>
<p><a title="PHP: PHP 5 ChangeLog" href="http://www.php.net/ChangeLog-5.php#5.2.9">PHP 5 ChangeLog PHP 5 ChangeLog</a></p>
<p>因みにphp.iniファイルへの記述は下記のとおり<br />
<span id="more-316"></span></p>
<blockquote><p>zend_extension=&#8221;/usr/lib64/php/modules/eaccelerator.so&#8221;<br />
eaccelerator.shm_size=&#8221;64&#8243;<br />
eaccelerator.cache_dir=&#8221;/var/tmp/eaccelerator&#8221;<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.log_file = &#8220;/var/log/httpd/eaccelerator.log&#8221;<br />
eaccelerator.filter=&#8221;"<br />
eaccelerator.shm_max=&#8221;0&#8243;<br />
eaccelerator.shm_ttl=&#8221;0&#8243;<br />
eaccelerator.shm_prune_period=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;0&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;9&#8243;<br />
eaccelerator.allowed_admin_path = &#8220;/var/www/admin/eaccelerator/control.php&#8221;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0303316.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>リポジトリを追加 -EPEL-</title>
		<link>http://www.dxcode.com/archives/2009/0214259.html</link>
		<comments>http://www.dxcode.com/archives/2009/0214259.html#comments</comments>
		<pubDate>Fri, 13 Feb 2009 23:57:42 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[EPEL]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[リポジトリ]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=259</guid>
		<description><![CDATA[CentOS5.2でPHPを5.2.8にしたので他のファイルもある程度新しくしてしまえ！との考えでリポジトリEPEL（Extra Packages for Enterprise Linux ）を追加した。 前回の個人が管 [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS5.2でPHPを5.2.8にしたので他のファイルもある程度新しくしてしまえ！との考えでリポジトリEPEL（Extra Packages for Enterprise Linux ）を追加した。</p>
<p>前回の個人が管理するリポジトリとは違いFedora内部発ということで安心して（？）使用できると思う。<br />
そうまでして最新版を使いたいのなら鯖構築時に何故CentOSを選択したのかという疑問は残ってしまうが。</p>
<p>yum用設定ファイルをインポート</p>
<blockquote><p>[root@server ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm</p></blockquote>
<p>リポジトリファイルを編集</p>
<blockquote><p>[root@server ~]# vi /etc/yum.repos.d/epel.repo</p></blockquote>
<blockquote><p>[epel]<br />
name=Extra Packages for Enterprise Linux 5 &#8211; $basearch<br />
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch<br />
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&amp;arch=$basearch<br />
failovermethod=priority<br />
enabled=1<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL</p>
<p>[epel-debuginfo]<br />
name=Extra Packages for Enterprise Linux 5 &#8211; $basearch &#8211; Debug<br />
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug<br />
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&amp;arch=$basearch<br />
failovermethod=priority<br />
enabled=0<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL<br />
gpgcheck=1</p>
<p>[epel-source]<br />
name=Extra Packages for Enterprise Linux 5 &#8211; $basearch &#8211; Source<br />
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS<br />
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&amp;arch=$basearch<br />
failovermethod=priority<br />
enabled=0<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL<br />
gpgcheck=1</p></blockquote>
<p>デフォルトではEPELが常時有効設定 enabled=1になっているので必要時だけ接続したい場合はenabled=0に変更。<br />
実際に使用する際は下記コマンドでOK</p>
<blockquote><p>[root@server ~]# yum &#8211;enablerepo=epel update</p></blockquote>
<p>EPELに関しては問題ないと判断してenabled=1 のままで運用しているが現状問題なし。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0214259.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>リポジトリを追加 -Les RPM de Remi-</title>
		<link>http://www.dxcode.com/archives/2009/0209254.html</link>
		<comments>http://www.dxcode.com/archives/2009/0209254.html#comments</comments>
		<pubDate>Mon, 09 Feb 2009 02:09:33 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[リポジトリ]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=254</guid>
		<description><![CDATA[CentOS5.2でPHPをインストールするとPHP5.1.6がインストールされるが5.2.xxを使用したかったのでサードパーティのリポジトリを追加した。 今回追加したのはフランスのLes RPM de Remiというと [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS5.2でPHPをインストールするとPHP5.1.6がインストールされるが5.2.xxを使用したかったのでサードパーティのリポジトリを追加した。</p>
<p>今回追加したのはフランスの<a title="Les RPM de Remi" href="http://blog.famillecollet.com/">Les RPM de Remi</a>というところのもの。追加することによりPHPやMySQLの最新版が使用することができる。<br />
ただ公式にサポートされたリポジトリではないので当然リスクは大きくなるが、故人鯖ゆえ第三者に迷惑がかからなければOKというスタンスで導入した。</p>
<p>GPGキーをインポート</p>
<blockquote><p>[root@server ~]# rpm &#8211;import http://rpms.famillecollet.com/RPM-GPG-KEY-remi</p></blockquote>
<p>リポジトリファイルを追加</p>
<blockquote><p>[root@server ~]# cd /etc/yum.repos.d<br />
[root@server ~]# wget http://rpms.famillecollet.com/remi-enterprise.repo</p></blockquote>
<p>リポジトリファイルを編集</p>
<blockquote><p>[root@server ~]# vi /etc/yum.repos.d/remi-enterprise.repo</p></blockquote>
<blockquote><p>[remi]<br />
name=Les RPM de remi pour Enterpise Linux $releasever &#8211; $basearch<br />
baseurl=http://rpms.famillecollet.com/el$releasever.$basearch/<br />
http://iut-info.univ-reims.fr/remirpms/el$releasever.$basearch/<br />
enabled=0<br />
gpgcheck=1<br />
gpgkey=http://rpms.famillecollet.com/RPM-GPG-KEY-remi<br />
failovermethod=priority</p>
<p>[remi-test]<br />
name=Les RPM de remi en test pour Enterpise Linux $releasever &#8211; $basearch<br />
baseurl=http://remi.collet.free.fr/rpms/test-el$releasever.$basearch/<br />
enabled=0<br />
gpgcheck=1<br />
gpgkey=http://rpms.famillecollet.com/RPM-GPG-KEY-remi</p></blockquote>
<p>常時有効にしておくのは気持ち悪いので[remi]のenabled=1をenabled=0に変更。<br />
[remi-test]はアルファ版等のテスト用なので使用しない方がベターというか項目自体削除しておいた方がいいと思う。</p>
<p>で実際に使用する際は下記コマンドでOK</p>
<blockquote><p>[root@server ~]# yum &#8211;enablerepo=remi update php</p></blockquote>
<p>ただ依存関係で躓く事も多いので実際には下記のコマンドで対応している。</p>
<blockquote><p>[root@server ~]# yum &#8211;enablerepo=remi update</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0209254.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

