linux 最常用的yum源remi

时间:2024-02-19 18:17:05

Remi repository是包含最新版本php和mysql包的linux源。

1. Enterprise Linux 7 (with EPEL) x86_64

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
# for RHEL only
subscription-manager repos --enable=rhel-7-server-optional-rpms

    
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
# for RHEL only
subscription-manager repos --enable=rhel-7-server-optional-rpms

2. Enterprise Linux 6 (with EPEL) i386 or x86_64

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm
# for RHEL only
rhn-channel --add --channel=rhel-$(uname -i)-server-optional-6

    
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm
# for RHEL only
rhn-channel --add --channel=rhel-$(uname -i)-server-optional-6

3.Enterprise Linux 5 (with EPEL) i386 or x86_64

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5.rpm epel-release-latest-5.noarch.rpm

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5.rpm epel-release-latest-5.noarch.rpm

安装过程:

[root@86 ~]# ls /etc/yum.repos.d/
backup            CentOS-Debuginfo.repo  CentOS-Vault.repo
CentOS-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.rpm
Resolving rpms.remirepo.net... 195.154.241.117, 2001:bc8:33a1:100::1
Connecting to rpms.remirepo.net|195.154.241.117|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 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: security
Setting up Install Process
Examining remi-release-6.rpm: remi-release-6.8-1.el6.remi.noarch
Marking remi-release-6.rpm to be installed
Resolving 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 Resolution

Dependencies Resolved

================================================================================
 Package           Arch        Version               Repository            Size
================================================================================
Installing:
 remi-release      noarch      6.8-1.el6.remi        /remi-release-6      6.3 k
Installing for dependencies:
 epel-release      noarch      6-8                   epel                  14 k

Transaction Summary
================================================================================
Install       2 Package(s)

Total size: 21 k
Total download size: 14 k
Installed size: 28 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-6-8.noarch.rpm                              |  14 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: 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.repo
CentOS-Base.repo       CentOS-Vault.repo  epel-testing.repo  remi.repo
CentOS-Debuginfo.repo  epel.repo          remi-php70.repo    remi-safe.repo