参考
https://zeroc.com/downloads/ice
[chin@localhost cpp] $ cd /etc/yum.repos.d
[chin@localhost yum.repos.d] $ sudo wget https://zeroc.com/download/rpm/zeroc-ice-el7.repo
--2015-12-17 13:48:32-- https://zeroc.com/download/rpm/zeroc-ice-el7.repo
Resolving zeroc.com (zeroc.com)... 54.209.160.119
Connecting to zeroc.com (zeroc.com)|54.209.160.119|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://download.zeroc.com/rpm/zeroc-ice-el7.repo [following]
--2015-12-17 13:48:34-- https://download.zeroc.com/rpm/zeroc-ice-el7.repo
Resolving download.zeroc.com (download.zeroc.com)... 54.230.124.114, 54.230.124.11, 54.230.124.123, ...
Connecting to download.zeroc.com (download.zeroc.com)|54.230.124.114|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 560 [text/plain]
Saving to: ‘zeroc-ice-el7.repo’
zeroc-ice-el7.repo 100%[=====================>] 560 --.-KB/s in 0s
2015-12-17 13:48:51 (246 MB/s) - ‘zeroc-ice-el7.repo’ saved [560/560]
[chin@localhost yum.repos.d] $ sudo yum install ice-all-runtime ice-all-devel
Yum command has been deprecated, redirecting to '/usr/bin/dnf install ice-all-runtime ice-all-devel'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
Failed to synchronize cache for repo 'zeroc-ice-el7' from 'https://zeroc.com/download/rpm/el22/x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.
Failed to synchronize cache for repo 'zeroc-ice-el7-noarch' from 'https://zeroc.com/download/rpm/el22/noarch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.
Failed to synchronize cache for repo 'zeroc-ice-el7-src' from 'https://zeroc.com/download/rpm/el22/SRPMS': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.
Last metadata expiration check performed 1:52:05 ago on Thu Dec 17 11:57:11 2015.
No package ice-all-runtime available.
No package ice-all-devel available.
Error: Unable to find a match.
[chin@localhost yum.repos.d] $ sudo vi zeroc-ice-el7.repo
---------------------------------------
[zeroc-ice-el7] name=ZeroC Ice for el7 baseurl=https://zeroc.com/download/rpm/el$releasever/$basearch enabled=1 gpgcheck=1 gpgkey=https://zeroc.com/download/GPG-KEY-zeroc-release [zeroc-ice-el7-noarch] name=ZeroC Ice for el7 (noarch) baseurl=https://zeroc.com/download/rpm/el$releasever/noarch enabled=1 gpgcheck=1 gpgkey=https://zeroc.com/download/GPG-KEY-zeroc-release [zeroc-ice-el7-src] name=ZeroC Ice for el7 (SRPMS) baseurl=https://zeroc.com/download/rpm/el$releasever/SRPMS enabled=1 gpgcheck=1 gpgkey=https://zeroc.com/download/GPG-KEY-zeroc-release
---------------------------------------
#将文件中的
$releasever换成7,再次安装
[chin@localhost yum.repos.d] $ sudo yum install ice-all-runtime ice-all-devel
Yum command has been deprecated, redirecting to '/usr/bin/dnf install ice-all-runtime ice-all-devel'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
ZeroC Ice for el7 4.3 kB/s | 18 kB 00:04
ZeroC Ice for el7 (noarch) 557 B/s | 2.4 kB 00:04
Failed to synchronize cache for repo 'zeroc-ice-el7-src' from 'https://zeroc.com/download/rpm/el7/SRPMS': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.
Last metadata expiration check performed 0:00:16 ago on Thu Dec 17 13:51:36 2015.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
glacier2 x86_64 3.6.1-1.el7 zeroc-ice-el7 201 k
ice-all-devel x86_64 3.6.1-1.el7 zeroc-ice-el7 13 k
ice-all-runtime x86_64 3.6.1-1.el7 zeroc-ice-el7 13 k
ice-slice noarch 3.6.1-1.el7 zeroc-ice-el7-noarch 72 k
ice-utils x86_64 3.6.1-1.el7 zeroc-ice-el7 1.0 M
ice-utils-java noarch 3.6.1-1.el7 zeroc-ice-el7-noarch 3.1 M
icebox x86_64 3.6.1-1.el7 zeroc-ice-el7 83 k
icegrid x86_64 3.6.1-1.el7 zeroc-ice-el7 1.6 M
icepatch2 x86_64 3.6.1-1.el7 zeroc-ice-el7 38 k
java-1.8.0-openjdk x86_64 1:1.8.0.65-3.b17.fc22 updates 217 k
java-1.8.0-openjdk-headless
x86_64 1:1.8.0.65-3.b17.fc22 updates 31 M
javapackages-tools noarch 4.3.2-6.fc22 fedora 100 k
libdb-cxx x86_64 5.3.28-12.fc22 updates 762 k
libdb-java x86_64 5.3.28-12.fc22 updates 1.3 M
libfreeze3.6-c++ x86_64 3.6.1-1.el7 zeroc-ice-el7 359 k
libice-c++-devel x86_64 3.6.1-1.el7 zeroc-ice-el7 422 k
libice-java x86_64 3.6.1-1.el7 zeroc-ice-el7 3.4 M
libice3.6-c++ x86_64 3.6.1-1.el7 zeroc-ice-el7 3.7 M
libicestorm3.6 x86_64 3.6.1-1.el7 zeroc-ice-el7 451 k
lksctp-tools x86_64 1.0.16-3.fc22 fedora 93 k
php-ice x86_64 3.6.1-1.el7 zeroc-ice-el7 190 k
php-ice-devel x86_64 3.6.1-1.el7 zeroc-ice-el7 64 k
ttmkfdir x86_64 3.0.9-44.fc22 fedora 52 k
xorg-x11-fonts-Type1 noarch 7.5-14.fc22 fedora 522 k
Transaction Summary
================================================================================
Install 24 Packages
Total download size: 49 M
Installed size: 149 M
Is this ok [y/N]: Y
Downloading Packages:
(1/24): icebox-3.6.1-1.el7.x86_64.rpm 25 kB/s | 83 kB 00:03
(2/24): ice-all-runtime-3.6.1-1.el7.x86_64.rpm 3.3 kB/s | 13 kB 00:03
(3/24): glacier2-3.6.1-1.el7.x86_64.rpm 39 kB/s | 201 kB 00:05
(4/24): icepatch2-3.6.1-1.el7.x86_64.rpm 20 kB/s | 38 kB 00:01
(5/24): libfreeze3.6-c++-3.6.1-1.el7.x86_64.rpm 155 kB/s | 359 kB 00:02
(6/24): libicestorm3.6-3.6.1-1.el7.x86_64.rpm 51 kB/s | 451 kB 00:08
(7/24): php-ice-3.6.1-1.el7.x86_64.rpm 27 kB/s | 190 kB 00:07
(8/24): icegrid-3.6.1-1.el7.x86_64.rpm 69 kB/s | 1.6 MB 00:23
(9/24): libice3.6-c++-3.6.1-1.el7.x86_64.rpm 106 kB/s | 3.7 MB 00:35
(10/24): ice-all-devel-3.6.1-1.el7.x86_64.rpm 8.4 kB/s | 13 kB 00:01
(11/24): libice-c++-devel-3.6.1-1.el7.x86_64.rp 42 kB/s | 422 kB 00:10
(12/24): ice-utils-3.6.1-1.el7.x86_64.rpm 34 kB/s | 1.0 MB 00:30
(13/24): php-ice-devel-3.6.1-1.el7.x86_64.rpm 14 kB/s | 64 kB 00:04
(14/24): ice-slice-3.6.1-1.el7.noarch.rpm 29 kB/s | 72 kB 00:02
(15/24): libdb-java-5.3.28-12.fc22.x86_64.rpm 506 kB/s | 1.3 MB 00:02
(16/24): libdb-cxx-5.3.28-12.fc22.x86_64.rpm 818 kB/s | 762 kB 00:00
(17/24): java-1.8.0-openjdk-1.8.0.65-3.b17.fc22 158 kB/s | 217 kB 00:01
(18/24): xorg-x11-fonts-Type1-7.5-14.fc22.noarc 369 kB/s | 522 kB 00:01
(19/24): ttmkfdir-3.0.9-44.fc22.x86_64.rpm 48 kB/s | 52 kB 00:01
(20/24): ice-utils-java-3.6.1-1.el7.noarch.rpm 46 kB/s | 3.1 MB 01:10
(21/24): javapackages-tools-4.3.2-6.fc22.noarch 72 kB/s | 100 kB 00:01
(22/24): lksctp-tools-1.0.16-3.fc22.x86_64.rpm 72 kB/s | 93 kB 00:01
(23/24): libice-java-3.6.1-1.el7.x86_64.rpm 75 kB/s | 3.4 MB 00:47
(24/24): java-1.8.0-openjdk-headless-1.8.0.65-3 779 kB/s | 31 MB 00:41
--------------------------------------------------------------------------------
Total 426 kB/s | 49 MB 01:58
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : libice3.6-c++-3.6.1-1.el7.x86_64 1/24
Installing : php-ice-3.6.1-1.el7.x86_64 2/24
Installing : libdb-cxx-5.3.28-12.fc22.x86_64 3/24
Installing : libfreeze3.6-c++-3.6.1-1.el7.x86_64 4/24
Installing : ice-utils-3.6.1-1.el7.x86_64 5/24
Installing : libicestorm3.6-3.6.1-1.el7.x86_64 6/24
Installing : ice-slice-3.6.1-1.el7.noarch 7/24
Installing : libice-c++-devel-3.6.1-1.el7.x86_64 8/24
Installing : php-ice-devel-3.6.1-1.el7.x86_64 9/24
Installing : icegrid-3.6.1-1.el7.x86_64 10/24
Installing : icebox-3.6.1-1.el7.x86_64 11/24
Installing : icepatch2-3.6.1-1.el7.x86_64 12/24
Installing : glacier2-3.6.1-1.el7.x86_64 13/24
Installing : lksctp-tools-1.0.16-3.fc22.x86_64 14/24
Installing : javapackages-tools-4.3.2-6.fc22.noarch 15/24
Installing : java-1.8.0-openjdk-headless-1:1.8.0.65-3.b17.fc22.x86_6 16/24
Installing : ttmkfdir-3.0.9-44.fc22.x86_64 17/24
Installing : xorg-x11-fonts-Type1-7.5-14.fc22.noarch 18/24
Installing : java-1.8.0-openjdk-1:1.8.0.65-3.b17.fc22.x86_64 19/24
Installing : ice-utils-java-3.6.1-1.el7.noarch 20/24
Installing : libdb-java-5.3.28-12.fc22.x86_64 21/24
Installing : libice-java-3.6.1-1.el7.x86_64 22/24
Installing : ice-all-devel-3.6.1-1.el7.x86_64 23/24
Installing : ice-all-runtime-3.6.1-1.el7.x86_64 24/24
Verifying : ice-all-runtime-3.6.1-1.el7.x86_64 1/24
Verifying : glacier2-3.6.1-1.el7.x86_64 2/24
Verifying : icebox-3.6.1-1.el7.x86_64 3/24
Verifying : icegrid-3.6.1-1.el7.x86_64 4/24
Verifying : icepatch2-3.6.1-1.el7.x86_64 5/24
Verifying : libfreeze3.6-c++-3.6.1-1.el7.x86_64 6/24
Verifying : libice3.6-c++-3.6.1-1.el7.x86_64 7/24
Verifying : libicestorm3.6-3.6.1-1.el7.x86_64 8/24
Verifying : php-ice-3.6.1-1.el7.x86_64 9/24
Verifying : ice-utils-java-3.6.1-1.el7.noarch 10/24
Verifying : ice-utils-3.6.1-1.el7.x86_64 11/24
Verifying : ice-all-devel-3.6.1-1.el7.x86_64 12/24
Verifying : libice-c++-devel-3.6.1-1.el7.x86_64 13/24
Verifying : libice-java-3.6.1-1.el7.x86_64 14/24
Verifying : php-ice-devel-3.6.1-1.el7.x86_64 15/24
Verifying : ice-slice-3.6.1-1.el7.noarch 16/24
Verifying : libdb-java-5.3.28-12.fc22.x86_64 17/24
Verifying : libdb-cxx-5.3.28-12.fc22.x86_64 18/24
Verifying : java-1.8.0-openjdk-1:1.8.0.65-3.b17.fc22.x86_64 19/24
Verifying : xorg-x11-fonts-Type1-7.5-14.fc22.noarch 20/24
Verifying : ttmkfdir-3.0.9-44.fc22.x86_64 21/24
Verifying : java-1.8.0-openjdk-headless-1:1.8.0.65-3.b17.fc22.x86_6 22/24
Verifying : javapackages-tools-4.3.2-6.fc22.noarch 23/24
Verifying : lksctp-tools-1.0.16-3.fc22.x86_64 24/24
Installed:
glacier2.x86_64 3.6.1-1.el7
ice-all-devel.x86_64 3.6.1-1.el7
ice-all-runtime.x86_64 3.6.1-1.el7
ice-slice.noarch 3.6.1-1.el7
ice-utils.x86_64 3.6.1-1.el7
ice-utils-java.noarch 3.6.1-1.el7
icebox.x86_64 3.6.1-1.el7
icegrid.x86_64 3.6.1-1.el7
icepatch2.x86_64 3.6.1-1.el7
java-1.8.0-openjdk.x86_64 1:1.8.0.65-3.b17.fc22
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.65-3.b17.fc22
javapackages-tools.noarch 4.3.2-6.fc22
libdb-cxx.x86_64 5.3.28-12.fc22
libdb-java.x86_64 5.3.28-12.fc22
libfreeze3.6-c++.x86_64 3.6.1-1.el7
libice-c++-devel.x86_64 3.6.1-1.el7
libice-java.x86_64 3.6.1-1.el7
libice3.6-c++.x86_64 3.6.1-1.el7
libicestorm3.6.x86_64 3.6.1-1.el7
lksctp-tools.x86_64 1.0.16-3.fc22
php-ice.x86_64 3.6.1-1.el7
php-ice-devel.x86_64 3.6.1-1.el7
ttmkfdir.x86_64 3.0.9-44.fc22
xorg-x11-fonts-Type1.noarch 7.5-14.fc22
Complete!