1.在centos6.4 中使用yum install heartbeat,并没有发现heartbeat软件包
[root@master ~]# yum install heartbeat heartbeat*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
No package heartbeat available.
No package heartbeat* available.
Error: Nothing to do
[root@master ~]#
2.下载并安装epel包
[root@master ~]# wget http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm [root@master ~]# rpm -ivh epel-release--.noarch.rpm
warning: epel-release--.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [%]
:epel-release ########################################### [%]
3.再次安装heartbeat
[root@master ~]# yum install heartbeat*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 6.5 kB :
* base: mirrors.btte.net
* epel: mirrors.hustunique.com
* extras: mirrors.btte.net
* updates: mirrors.btte.net
epel | 4.2 kB :
epel/primary_db | 4.7 MB :
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package heartbeat.i686 :3.0.-.el6 will be installed
--> Processing Dependency: resource-agents for package: heartbeat-3.0.-.el6.i686
--> Processing Dependency: libplumb.so. for package: heartbeat-3.0.-.el6.i686
--> Processing Dependency: cluster-glue-libs for package: heartbeat-3.0.-.el6.i686
--> Processing Dependency: cluster-glue for package: heartbeat-3.0.-.el6.i686
--> Processing Dependency: PyXML for package: heartbeat-3.0.-.el6.i686
---> Package heartbeat-devel.i686 :3.0.-.el6 will be installed
---> Package heartbeat-libs.i686 :3.0.-.el6 will be installed
--> Running transaction check
---> Package PyXML.i686 :0.8.-.el6 will be installed
---> Package cluster-glue.i686 :1.0.-.el6 will be installed
--> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.-.el6.i686
---> Package cluster-glue-libs.i686 :1.0.-.el6 will be installed
---> Package resource-agents.i686 :3.9.-.el6_4. will be installed
--> Running transaction check
---> Package perl-TimeDate.noarch :1.16-11.1.el6 will be installed
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================
Package Arch Version Repository Size
============================================================================================================================
Installing:
heartbeat i686 3.0.-.el6 epel k
heartbeat-devel i686 3.0.-.el6 epel k
heartbeat-libs i686 3.0.-.el6 epel k
Installing for dependencies:
PyXML i686 0.8.-.el6 base k
cluster-glue i686 1.0.-.el6 base k
cluster-glue-libs i686 1.0.-.el6 base k
perl-TimeDate noarch :1.16-11.1.el6 base k
resource-agents i686 3.9.-.el6_4. updates k Transaction Summary
============================================================================================================================
Install Package(s) Total download size: 1.9 M
Installed size: 6.7 M
Is this ok [y/N]: y