スポンサーリンク

【yum】PHP5系じゃなくてPHP7系を入れたい

vagrant上のCentOSにphp7系をインストールしたいが、リポジトリに存在しなかった。
→epelやremiリポジトリを追加して解決する。

 

yumリポジトリの追加リストについてはこちらの記事を参考に

スポンサーリンク

インストール可能なパッケージリストを確認

[root@localhost vagrant]# yum –enablerepo=epel,remi,rpmforge info php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.tsukuba.wide.ad.jp
* epel: ftp.kddilabs.jp
* extras: ftp.tsukuba.wide.ad.jp
* remi: mirror.bebout.net
* remi-safe: mirror.bebout.net
* updates: ftp.tsukuba.wide.ad.jp
Available Packages
Name : php
Arch : x86_64
Version : 5.4.45
Release : 14.el7.remi
Size : 2.7 M
Repo : remi
Summary : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
License : PHP and Zend and BSD
Description : PHP is an HTML-embedded scripting language. PHP attempts to make it
: easy for developers to write dynamically generated web pages. PHP also
: offers built-in database integration for several commercial and
: non-commercial database management systems, so writing a
: database-enabled webpage with PHP is fairly simple. The most common
: use of PHP coding is probably as a replacement for CGI scripts.
:
: The php package contains the module (often referred to as mod_php)
: which adds support for the PHP language to Apache HTTP Server.

 

 

5.4しかない。
Repoがremiになっているので、とりあえずepel/remiリポジトリを追加する。

 

 

コメント

タイトルとURLをコピーしました