Remi repository是包含最新版本php和mysql包的linux源。
1. Enterprise Linux 7 (with EPEL) x86_64wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmwget http://rpms.remirepo.net/enterprise/remi-release-7.rpmrpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm# for RHEL onlysubscription-manager repos --enable=rhel-7-server-optional-rpms wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmwget http://rpms.remirepo.net/enterprise/remi-release-7.rpmrpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm# for RHEL onlysubscription-manager repos --enable=rhel-7-server-optional-rpms2. Enterprise Linux 6 (with EPEL) i386 or x86_64wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpmwget http://rpms.remirepo.net/enterprise/remi-release-6.rpmrpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm# for RHEL onlyrhn-channel --add --channel=rhel-$(uname -i)-server-optional-6 wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpmwget http://rpms.remirepo.net/enterprise/remi-release-6.rpmrpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm# for RHEL onlyrhn-channel --add --channel=rhel-$(uname -i)-server-optional-63.Enterprise Linux 5 (with EPEL) i386 or x86_64wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpmwget http://rpms.remirepo.net/enterprise/remi-release-5.rpmrpm -Uvh remi-release-5.rpm epel-release-latest-5.noarch.rpmwget https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpmwget http://rpms.remirepo.net/enterprise/remi-release-5.rpmrpm -Uvh remi-release-5.rpm epel-release-latest-5.noarch.rpm
安装过程:
[root@86 ~]# ls /etc/yum.repos.d/backup CentOS-Debuginfo.repo CentOS-Vault.repoCentOS-Base.repo CentOS-Media.repo epel.repo[root@86 ~]# wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm--2017-02-01 16:43:32-- http://rpms.remirepo.net/enterprise/remi-release-6.rpmResolving rpms.remirepo.net... 195.154.241.117, 2001:bc8:33a1:100::1Connecting to rpms.remirepo.net|195.154.241.117|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 8159 (8.0K) [application/x-rpm]Saving to: “remi-release-6.rpm”100%[======================================>] 8,159 28.9K/s in 0.3s 2017-02-01 16:43:33 (28.9 KB/s) - “remi-release-6.rpm” saved [8159/8159][root@86 ~]# yum install remi-release-6.rpm Loaded plugins: securitySetting up Install ProcessExamining remi-release-6.rpm: remi-release-6.8-1.el6.remi.noarchMarking remi-release-6.rpm to be installedResolving Dependencies--> Running transaction check---> Package remi-release.noarch 0:6.8-1.el6.remi will be installed--> Processing Dependency: epel-release = 6 for package: remi-release-6.8-1.el6.remi.noarch--> Running transaction check---> Package epel-release.noarch 0:6-8 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Installing: remi-release noarch 6.8-1.el6.remi /remi-release-6 6.3 kInstalling for dependencies: epel-release noarch 6-8 epel 14 kTransaction Summary================================================================================Install 2 Package(s)Total size: 21 kTotal download size: 14 kInstalled size: 28 kIs this ok [y/N]: yDownloading Packages:epel-release-6-8.noarch.rpm | 14 kB 00:00 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum. Installing : epel-release-6-8.noarch 1/2 warning: /etc/yum.repos.d/epel.repo created as /etc/yum.repos.d/epel.repo.rpmnew Installing : remi-release-6.8-1.el6.remi.noarch 2/2 Verifying : epel-release-6-8.noarch 1/2 Verifying : remi-release-6.8-1.el6.remi.noarch 2/2 Installed: remi-release.noarch 0:6.8-1.el6.remi Dependency Installed: epel-release.noarch 0:6-8 Complete![root@86 ~]# ls /etc/yum.repos.d/backup CentOS-Media.repo epel.repo.rpmnew remi-php71.repoCentOS-Base.repo CentOS-Vault.repo epel-testing.repo remi.repoCentOS-Debuginfo.repo epel.repo remi-php70.repo remi-safe.repo