Of cause, I put the ambari.repo in /etc/yum. repos.d [root@s109 ~]# cd /etc/yum.repos.d [root@s109 yum.repos.d]# ls ambari.repo CentOS-Media.repo epel.repo CentOS-Base.repo Citrix.repo epel-testing.repo
and the result of yum repolist like follows: [root@s109 yum.repos.d]# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: mirrors.hust.edu.cn repo id repo name status HDP-UTILS-1.1.0.16 Hortonworks Data Platform Utils Version enabled : 65 Updates-ambari-1.x ambari-1.x - Updates enabled : 45 ambari-1.x Ambari 1.x enabled : 5 base CentOS-5 - Base enabled : 2,789 citrix XenServer 5.5.0 updates for centos5x enabled : 33 epel Extra Packages for Enterprise Linux 5 - enabled : 6,068 extras CentOS-5 - Extras enabled : 271 updates CentOS-5 - Updates enabled : 55 repolist: 9,331 Thans. Xinsheng 2013-10-29 624238814 发件人: Olivier Renault 发送时间: 2013-10-29 17:22:02 收件人: ambari-user 抄送: 主题: Re: a problem: how to install ambari-agent It doesn't look like you've got the Ambari repo setup. As it's only looking in epel. Could you show us which repo you've got setup by pasting the output of: yum repolist Did you put ambari.repo in /etc/yum. repos.d Thanks Olivier On 29 Oct 2013 07:55, "624238814" <[email protected]> wrote: Hi all, I'm sorry to bother you. when I use the comman "yum install ambari-agent". but it cannot find the package. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: mirrors.hust.edu.cn Setting up Install Process Parsing package install arguments No package ambari-agent available. Nothing to do what's more I had added the "repo" file which download from: http://public-repo-1.hortonworks.com/ambari/centos5/1.x/GA/ambari.repo. Best Regards. Xinsheng Yang. 2013-10-29 624238814 CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
