安装wget时没有包wget可用

时间:2017-05-15 04:46:09

标签: centos wget yum

在我的CentOS 6.5中,我想安装wget:

#  yum -y install wget

但我收到以下错误:

[root@localhost yum.repos.d]#  yum -y install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
No package wget available.
Error: Nothing to do

1 个答案:

答案 0 :(得分:1)

听起来你可能会错过这个基础'来自你的yum配置的回购。

/etc/yum.repos.d/CentOS-Base.repo

听起来你可能错过了CentOS-Base'来自您的配置的repo。签入[base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 如果它不存在则创建它并添加以下配置块;

{{1}}

您还可以通过http://rpm.pbone.net

找到该套餐