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

Jmnote (토론 | 기여)님의 2016년 9월 6일 (화) 10:35 판 (→‎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 downloader php56-php
... (생략)
php56-php-5.6.25-1.el6.remi.x86_64.rpm                              | 1.4 MB     00:02  
[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
... (생략)
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
[root@zetawiki php56_rpms]# yum install *.rpm
... (생략)
==================================================================================================================
 Package                    Arch   Version             Repository                                            Size
==================================================================================================================
Installing:
 audit-libs-python          x86_64 2.4.5-3.el6         /audit-libs-python-2.4.5-3.el6.x86_64                279 k
 environment-modules        x86_64 3.2.10-3.el6        /environment-modules-3.2.10-3.el6.x86_64             210 k
 gd-last                    x86_64 2.2.3-1.el6.remi    /gd-last-2.2.3-1.el6.remi.x86_64                     396 k
 libselinux-python          x86_64 2.0.94-7.el6        /libselinux-python-2.0.94-7.el6.x86_64               657 k
 libsemanage-python         x86_64 2.0.43-5.1.el6      /libsemanage-python-2.0.43-5.1.el6.x86_64            312 k
 libwebp                    x86_64 0.4.3-3.el6         /libwebp-0.4.3-3.el6.x86_64                          659 k
 libzip-last                x86_64 1.1.3-1.el6.remi    /libzip-last-1.1.3-1.el6.remi.x86_64                  78 k
 php56-php-cli              x86_64 5.6.25-1.el6.remi   /php56-php-cli-5.6.25-1.el6.remi.x86_64              7.7 M
 php56-php-common           x86_64 5.6.25-1.el6.remi   /php56-php-common-5.6.25-1.el6.remi.x86_64           4.3 M
 php56-php-devel            x86_64 5.6.25-1.el6.remi   /php56-php-devel-5.6.25-1.el6.remi.x86_64            4.2 M
 php56-php-gd               x86_64 5.6.25-1.el6.remi   /php56-php-gd-5.6.25-1.el6.remi.x86_64               113 k
 php56-php-mbstring         x86_64 5.6.25-1.el6.remi   /php56-php-mbstring-5.6.25-1.el6.remi.x86_64         1.4 M
 php56-php-mcrypt           x86_64 5.6.25-1.el6.remi   /php56-php-mcrypt-5.6.25-1.el6.remi.x86_64            44 k
 php56-php-mysqlnd          x86_64 5.6.25-1.el6.remi   /php56-php-mysqlnd-5.6.25-1.el6.remi.x86_64          478 k
 php56-php-pdo              x86_64 5.6.25-1.el6.remi   /php56-php-pdo-5.6.25-1.el6.remi.x86_64              172 k
 php56-php-pear             noarch 1:1.10.1-6.el6.remi /php56-php-pear-1.10.1-6.el6.remi.noarch             2.1 M
 php56-php-pecl-jsonc       x86_64 1.3.10-1.el6.remi   /php56-php-pecl-jsonc-1.3.10-1.el6.remi.x86_64       101 k
 php56-php-pecl-jsonc-devel x86_64 1.3.10-1.el6.remi   /php56-php-pecl-jsonc-devel-1.3.10-1.el6.remi.x86_64 120 k
 php56-php-pecl-ssh2        x86_64 0.13-1.el6.remi     /php56-php-pecl-ssh2-0.13-1.el6.remi.x86_64           87 k
 php56-php-pecl-zip         x86_64 1.13.4-1.el6.remi   /php56-php-pecl-zip-1.13.4-1.el6.remi.x86_64         109 k
 php56-php-pgsql            x86_64 5.6.25-1.el6.remi   /php56-php-pgsql-5.6.25-1.el6.remi.x86_64            174 k
 php56-php-process          x86_64 5.6.25-1.el6.remi   /php56-php-process-5.6.25-1.el6.remi.x86_64           75 k
 php56-php-xml              x86_64 5.6.25-1.el6.remi   /php56-php-xml-5.6.25-1.el6.remi.x86_64              406 k
 php56-php-xmlrpc           x86_64 5.6.25-1.el6.remi   /php56-php-xmlrpc-5.6.25-1.el6.remi.x86_64            77 k
 php56-runtime              x86_64 2.1-5.el6.remi      /php56-runtime-2.1-5.el6.remi.x86_64                  21 k
 policycoreutils-python     x86_64 2.0.83-29.el6       /policycoreutils-python-2.0.83-29.el6.x86_64         1.3 M
 setools-libs               x86_64 3.3.7-4.el6         /setools-libs-3.3.7-4.el6.x86_64                     1.1 M
 setools-libs-python        x86_64 3.3.7-4.el6         /setools-libs-python-3.3.7-4.el6.x86_64              1.6 M
Updating:
 audit                      x86_64 2.4.5-3.el6         /audit-2.4.5-3.el6.x86_64                            583 k
 audit-libs                 x86_64 2.4.5-3.el6         /audit-libs-2.4.5-3.el6.x86_64                       230 k
 libselinux                 x86_64 2.0.94-7.el6        /libselinux-2.0.94-7.el6.x86_64                      127 k
 libselinux-devel           x86_64 2.0.94-7.el6        /libselinux-devel-2.0.94-7.el6.x86_64                159 k
 libselinux-utils           x86_64 2.0.94-7.el6        /libselinux-utils-2.0.94-7.el6.x86_64                 61 k
 libsemanage                x86_64 2.0.43-5.1.el6      /libsemanage-2.0.43-5.1.el6.x86_64                   199 k
 policycoreutils            x86_64 2.0.83-29.el6       /policycoreutils-2.0.83-29.el6.x86_64                3.4 M
Installing for dependencies:
 libcgroup                  x86_64 0.40.rc1-17.el6_7   base                                                 129 k
 scl-utils                  x86_64 20120927-27.el6_6   base                                                  22 k
 t1lib                      x86_64 5.1.2-6.el6_2.1     base                                                 160 k
Updating for dependencies:
 libssh2                    x86_64 1.4.2-2.el6_7.1     base                                                 123 k

Transaction Summary
==================================================================================================================
Install      31 Package(s)
Upgrade       8 Package(s)

Total size: 33 M
Total download size: 435 k
Is this ok [y/N]: y
... (생략)
Installed:
  audit-libs-python.x86_64 0:2.4.5-3.el6               environment-modules.x86_64 0:3.2.10-3.el6                 
  gd-last.x86_64 0:2.2.3-1.el6.remi                    libselinux-python.x86_64 0:2.0.94-7.el6                   
  libsemanage-python.x86_64 0:2.0.43-5.1.el6           libwebp.x86_64 0:0.4.3-3.el6                              
  libzip-last.x86_64 0:1.1.3-1.el6.remi                php56-php-cli.x86_64 0:5.6.25-1.el6.remi                  
  php56-php-common.x86_64 0:5.6.25-1.el6.remi          php56-php-devel.x86_64 0:5.6.25-1.el6.remi                
  php56-php-gd.x86_64 0:5.6.25-1.el6.remi              php56-php-mbstring.x86_64 0:5.6.25-1.el6.remi             
  php56-php-mcrypt.x86_64 0:5.6.25-1.el6.remi          php56-php-mysqlnd.x86_64 0:5.6.25-1.el6.remi              
  php56-php-pdo.x86_64 0:5.6.25-1.el6.remi             php56-php-pear.noarch 1:1.10.1-6.el6.remi                 
  php56-php-pecl-jsonc.x86_64 0:1.3.10-1.el6.remi      php56-php-pecl-jsonc-devel.x86_64 0:1.3.10-1.el6.remi     
  php56-php-pecl-ssh2.x86_64 0:0.13-1.el6.remi         php56-php-pecl-zip.x86_64 0:1.13.4-1.el6.remi             
  php56-php-pgsql.x86_64 0:5.6.25-1.el6.remi           php56-php-process.x86_64 0:5.6.25-1.el6.remi              
  php56-php-xml.x86_64 0:5.6.25-1.el6.remi             php56-php-xmlrpc.x86_64 0:5.6.25-1.el6.remi               
  php56-runtime.x86_64 0:2.1-5.el6.remi                policycoreutils-python.x86_64 0:2.0.83-29.el6             
  setools-libs.x86_64 0:3.3.7-4.el6                    setools-libs-python.x86_64 0:3.3.7-4.el6                  

Dependency Installed:
  libcgroup.x86_64 0:0.40.rc1-17.el6_7   scl-utils.x86_64 0:20120927-27.el6_6   t1lib.x86_64 0:5.1.2-6.el6_2.1  

Updated:
  audit.x86_64 0:2.4.5-3.el6                              audit-libs.x86_64 0:2.4.5-3.el6                        
  libselinux.x86_64 0:2.0.94-7.el6                        libselinux-devel.x86_64 0:2.0.94-7.el6                 
  libselinux-utils.x86_64 0:2.0.94-7.el6                  libsemanage.x86_64 0:2.0.43-5.1.el6                    
  policycoreutils.x86_64 0:2.0.83-29.el6                 

Dependency Updated:
  libssh2.x86_64 0:1.4.2-2.el6_7.1                                                                                

Complete!
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}