CentOS 6 PHP 업그레이드 5.3 → 5.6 (rpm)

CentOS 6 PHP 업그레이드 5.3 → 5.6

1 확인

[root@zetawiki ~]# php -v
PHP 5.3.3 (cli) (built: Oct 30 2014 20:12:53) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[root@zetawiki ~]# rpm -qa | grep php | sort
php-5.3.3-40.el6_6.x86_64
php-cli-5.3.3-40.el6_6.x86_64
php-common-5.3.3-40.el6_6.x86_64
php-devel-5.3.3-40.el6_6.x86_64
php-gd-5.3.3-40.el6_6.x86_64
php-mbstring-5.3.3-40.el6_6.x86_64
php-mcrypt-5.3.3-1.el6.x86_64
php-mysql-5.3.3-40.el6_6.x86_64
php-pdo-5.3.3-40.el6_6.x86_64
php-pear-1.9.4-4.el6.noarch
php-pecl-ssh2-0.11.0-7.el6.x86_64
php-pgsql-5.3.3-40.el6_6.x86_64
php-xml-5.3.3-40.el6_6.x86_64
php-zts-5.3.3-40.el6_6.x86_64

2 확인 2

[root@workstation ~]# yum list | grep php56 | egrep 'php-cli|php-common|php-devel|php-gd|php-mbstring|php-mcrypt|php-mysql|php-pdo|php-pear|php-pecl-ssh2|php-pgsql|php-xml|php-zts' | 
php56-php-cli.x86_64                       5.6.25-1.el6.remi           remi-safe
php56-php-common.x86_64                    5.6.25-1.el6.remi           remi-safe
php56-php-devel.x86_64                     5.6.25-1.el6.remi           remi-safe
php56-php-gd.x86_64                        5.6.25-1.el6.remi           remi-safe
php56-php-mbstring.x86_64                  5.6.25-1.el6.remi           remi-safe
php56-php-mcrypt.x86_64                    5.6.25-1.el6.remi           remi-safe
php56-php-mysqlnd.x86_64                   5.6.25-1.el6.remi           remi-safe
php56-php-pdo.x86_64                       5.6.25-1.el6.remi           remi-safe
php56-php-pear.noarch                      1:1.10.1-6.el6.remi         remi-safe
php56-php-pecl-ssh2.x86_64                 0.13-1.el6.remi             remi-safe
php56-php-pgsql.x86_64                     5.6.25-1.el6.remi           remi-safe
php56-php-xml.x86_64                       5.6.25-1.el6.remi           remi-safe
php56-php-xmlrpc.x86_64                    5.6.25-1.el6.remi           remi-safe
→ php-mysql은 php-mysqlnd로 바뀌었고, php-zts는 없다.

3 rpm 다운로드

[root@workstation ~]# mkdir php56_rpms
[root@workstation php56_rpms]# cd php56_rpms/
[root@workstation php56_rpms]# yum list | grep php56 | egrep 'php-cli|php-common|php-devel|php-gd|php-mbstring|php-mcrypt|php-mysql|php-pdo|php-pear|php-pecl-ssh2|php-pgsql|php-xml|php-zts' | awk '{print $1}'
php56-php-cli.x86_64
php56-php-common.x86_64
php56-php-devel.x86_64
php56-php-gd.x86_64
php56-php-mbstring.x86_64
php56-php-mcrypt.x86_64
php56-php-mysqlnd.x86_64
php56-php-pdo.x86_64
php56-php-pear.noarch
php56-php-pecl-ssh2.x86_64
php56-php-pgsql.x86_64
php56-php-xml.x86_64
php56-php-xmlrpc.x86_64
[root@workstation php56_rpms]# yum list | grep php56 | egrep 'php-cli|php-common|php-devel|php-gd|php-mbstring|php-mcrypt|php-mysql|php-pdo|php-pear|php-pecl-ssh2|php-pgsql|php-xml|php-zts' | awk '{print $1}' | xargs yumdownloader --resolve
... (생략)
---> Package libselinux-utils.x86_64 0:2.0.94-5.3.el6_4.1 will be updated
---> Package libselinux-utils.x86_64 0:2.0.94-7.el6 will be an update
--> Finished Dependency Resolution
php56-php-cli-5.6.25-1.el6.remi.x86_64.rpm                          | 2.6 MB     00:03     
php56-php-common-5.6.25-1.el6.remi.x86_64.rpm                       | 691 kB     00:00     
php56-php-devel-5.6.25-1.el6.remi.x86_64.rpm                        | 645 kB     00:00     
php56-php-gd-5.6.25-1.el6.remi.x86_64.rpm                           |  65 kB     00:00     
php56-php-mbstring-5.6.25-1.el6.remi.x86_64.rpm                     | 509 kB     00:00     
php56-php-mcrypt-5.6.25-1.el6.remi.x86_64.rpm                       |  48 kB     00:00     
php56-php-mysqlnd-5.6.25-1.el6.remi.x86_64.rpm                      | 175 kB     00:00     
php56-php-pdo-5.6.25-1.el6.remi.x86_64.rpm                          |  90 kB     00:00     
php56-php-pear-1.10.1-6.el6.remi.noarch.rpm                         | 366 kB     00:00     
php56-php-pecl-ssh2-0.13-1.el6.remi.x86_64.rpm                      |  34 kB     00:00     
php56-php-pgsql-5.6.25-1.el6.remi.x86_64.rpm                        |  90 kB     00:00     
php56-php-xml-5.6.25-1.el6.remi.x86_64.rpm                          | 147 kB     00:00     
php56-php-xmlrpc-5.6.25-1.el6.remi.x86_64.rpm                       |  66 kB     00:00     
libzip-last-1.1.3-1.el6.remi.x86_64.rpm                             |  42 kB     00:00     
php56-php-process-5.6.25-1.el6.remi.x86_64.rpm                      |  55 kB     00:00     
setools-libs-python-3.3.7-4.el6.x86_64.rpm                          | 222 kB     00:00     
tcl-8.5.7-6.el6.x86_64.rpm                                          | 1.9 MB     00:00     
php56-php-pecl-jsonc-devel-1.3.10-1.el6.remi.x86_64.rpm             |  31 kB     00:00     
php56-php-pecl-zip-1.13.4-1.el6.remi.x86_64.rpm                     |  40 kB     00:00     
libsemanage-python-2.0.43-5.1.el6.x86_64.rpm                        |  81 kB     00:00     
audit-2.4.5-3.el6.x86_64.rpm                                        | 214 kB     00:00     
libselinux-devel-2.0.94-7.el6.x86_64.rpm                            | 137 kB     00:00     
setools-libs-3.3.7-4.el6.x86_64.rpm                                 | 400 kB     00:00     
libsemanage-2.0.43-5.1.el6.x86_64.rpm                               | 104 kB     00:00     
environment-modules-3.2.10-3.el6.x86_64.rpm                         | 103 kB     00:00     
libselinux-python-2.0.94-7.el6.x86_64.rpm                           | 203 kB     00:00     
policycoreutils-2.0.83-29.el6.x86_64.rpm                            | 663 kB     00:00     
libwebp-0.4.3-3.el6.x86_64.rpm                                      | 210 kB     00:00     
libselinux-utils-2.0.94-7.el6.x86_64.rpm                            |  82 kB     00:00     
php56-runtime-2.1-5.el6.remi.x86_64.rpm                             | 1.0 MB     00:00     
libselinux-2.0.94-7.el6.x86_64.rpm                                  | 109 kB     00:00     
audit-libs-2.4.5-3.el6.x86_64.rpm                                   |  74 kB     00:00     
policycoreutils-python-2.0.83-29.el6.x86_64.rpm                     | 437 kB     00:00     
audit-libs-python-2.4.5-3.el6.x86_64.rpm                            |  63 kB     00:00     
php56-php-pecl-jsonc-1.3.10-1.el6.remi.x86_64.rpm                   |  42 kB     00:00     
gd-last-2.2.3-1.el6.remi.x86_64.rpm                                 | 126 kB     00:00
[root@workstation php56_rpms]# ll
total 12148
-rw-r--r-- 1 root root  218660 May 12 19:49 audit-2.4.5-3.el6.x86_64.rpm
-rw-r--r-- 1 root root   75924 May 12 19:50 audit-libs-2.4.5-3.el6.x86_64.rpm
-rw-r--r-- 1 root root   64864 May 12 19:48 audit-libs-python-2.4.5-3.el6.x86_64.rpm
-rw-r--r-- 1 root root  105700 Dec  2  2015 environment-modules-3.2.10-3.el6.x86_64.rpm
-rw-r--r-- 1 root root  129271 Jul 22 14:47 gd-last-2.2.3-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root  111508 May 12 19:46 libselinux-2.0.94-7.el6.x86_64.rpm
-rw-r--r-- 1 root root  140160 May 12 19:49 libselinux-devel-2.0.94-7.el6.x86_64.rpm
-rw-r--r-- 1 root root  207796 May 12 19:51 libselinux-python-2.0.94-7.el6.x86_64.rpm
-rw-r--r-- 1 root root   84072 May 12 19:47 libselinux-utils-2.0.94-7.el6.x86_64.rpm
-rw-r--r-- 1 root root  106836 Jul 25  2015 libsemanage-2.0.43-5.1.el6.x86_64.rpm
-rw-r--r-- 1 root root   83188 Jul 25  2015 libsemanage-python-2.0.43-5.1.el6.x86_64.rpm
-rw-r--r-- 1 root root  215532 Apr  3  2015 libwebp-0.4.3-3.el6.x86_64.rpm
-rw-r--r-- 1 root root   42963 May 29 00:50 libzip-last-1.1.3-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root 2752907 Sep  1 02:17 php56-php-cli-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root  707143 Sep  1 02:17 php56-php-common-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root  660663 Sep  1 02:17 php56-php-devel-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   66235 Sep  1 02:17 php56-php-gd-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root  521395 Sep  1 02:17 php56-php-mbstring-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   49387 Sep  1 02:17 php56-php-mcrypt-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root  179423 Sep  1 02:17 php56-php-mysqlnd-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   92515 Sep  1 02:17 php56-php-pdo-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root  375183 Aug  6 15:11 php56-php-pear-1.10.1-6.el6.remi.noarch.rpm
-rw-r--r-- 1 root root   42859 Jun 15 14:53 php56-php-pecl-jsonc-1.3.10-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   31727 Jun 15 14:53 php56-php-pecl-jsonc-devel-1.3.10-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   35107 Jun 13 00:57 php56-php-pecl-ssh2-0.13-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   41123 Jul 21 16:12 php56-php-pecl-zip-1.13.4-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   91939 Sep  1 02:17 php56-php-pgsql-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   56739 Sep  1 02:17 php56-php-process-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root  150983 Sep  1 02:17 php56-php-xml-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root   67867 Sep  1 02:17 php56-php-xmlrpc-5.6.25-1.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root 1083379 Mar 10 22:08 php56-runtime-2.1-5.el6.remi.x86_64.rpm
-rw-r--r-- 1 root root  678484 May 12 19:48 policycoreutils-2.0.83-29.el6.x86_64.rpm
-rw-r--r-- 1 root root  447572 May 12 19:52 policycoreutils-python-2.0.83-29.el6.x86_64.rpm
-rw-r--r-- 1 root root  409460 Jul  3  2011 setools-libs-3.3.7-4.el6.x86_64.rpm
-rw-r--r-- 1 root root  226876 Jul  3  2011 setools-libs-python-3.3.7-4.el6.x86_64.rpm
-rw-r--r-- 1 root root 2007772 Jul  3  2011 tcl-8.5.7-6.el6.x86_64.rpm

4 rpm 업로드 및 설치

[root@zetawiki php56_rpms]# ls
audit-2.4.5-3.el6.x86_64.rpm
audit-libs-2.4.5-3.el6.x86_64.rpm
audit-libs-python-2.4.5-3.el6.x86_64.rpm
environment-modules-3.2.10-3.el6.x86_64.rpm
gd-last-2.2.3-1.el6.remi.x86_64.rpm
libselinux-2.0.94-7.el6.x86_64.rpm
libselinux-devel-2.0.94-7.el6.x86_64.rpm
libselinux-python-2.0.94-7.el6.x86_64.rpm
libselinux-utils-2.0.94-7.el6.x86_64.rpm
libsemanage-2.0.43-5.1.el6.x86_64.rpm
libsemanage-python-2.0.43-5.1.el6.x86_64.rpm
libwebp-0.4.3-3.el6.x86_64.rpm
libzip-last-1.1.3-1.el6.remi.x86_64.rpm
php56-php-cli-5.6.25-1.el6.remi.x86_64.rpm
php56-php-common-5.6.25-1.el6.remi.x86_64.rpm
php56-php-devel-5.6.25-1.el6.remi.x86_64.rpm
php56-php-gd-5.6.25-1.el6.remi.x86_64.rpm
php56-php-mbstring-5.6.25-1.el6.remi.x86_64.rpm
php56-php-mcrypt-5.6.25-1.el6.remi.x86_64.rpm
php56-php-mysqlnd-5.6.25-1.el6.remi.x86_64.rpm
php56-php-pdo-5.6.25-1.el6.remi.x86_64.rpm
php56-php-pear-1.10.1-6.el6.remi.noarch.rpm
php56-php-pecl-jsonc-1.3.10-1.el6.remi.x86_64.rpm
php56-php-pecl-jsonc-devel-1.3.10-1.el6.remi.x86_64.rpm
php56-php-pecl-ssh2-0.13-1.el6.remi.x86_64.rpm
php56-php-pecl-zip-1.13.4-1.el6.remi.x86_64.rpm
php56-php-pgsql-5.6.25-1.el6.remi.x86_64.rpm
php56-php-process-5.6.25-1.el6.remi.x86_64.rpm
php56-php-xml-5.6.25-1.el6.remi.x86_64.rpm
php56-php-xmlrpc-5.6.25-1.el6.remi.x86_64.rpm
php56-runtime-2.1-5.el6.remi.x86_64.rpm
policycoreutils-2.0.83-29.el6.x86_64.rpm
policycoreutils-python-2.0.83-29.el6.x86_64.rpm
setools-libs-3.3.7-4.el6.x86_64.rpm
setools-libs-python-3.3.7-4.el6.x86_64.rpm
tcl-8.5.7-6.el6.x86_64.rpm
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}