Centos 安装wget时没有可用的wget包
在CentOS 6.5中,我想安装wget:Centos 安装wget时没有可用的wget包,centos,wget,yum,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
# 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
听起来您可能在yum-config中缺少了“base”repo
yum info wget
* base: mirrors.melbourne.co.uk
Installed Packages
Name : wget
Arch : x86_64
Version : 1.12
Release : 10.el6
Size : 1.8 M
Repo : installed
From repo : base
Summary : A utility for retrieving files using the HTTP or FTP protocols
URL : http://www.gnu.org/software/wget/
License : GPLv3+ and GFDL
Description : GNU Wget is a file retrieval utility which can use either the HTTP or
: FTP protocols. Wget features include the ability to work in the
: background while you are logged out, recursive retrieval of
: directories, file name wildcard matching, remote file timestamp
: storage and comparison, use of Rest with FTP servers and Range with
: HTTP servers to retrieve files over slow or unstable connections,
: support for Proxy servers, and configurability.
听起来您可能缺少配置中的“CentOS Base”回购协议。签入/etc/yum.repos.d/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
您还可以通过编辑您的问题并输入yum repolist的输出来查找该软件包。您是否设法解决了此问题?@user3788685 yum源代码有问题,我将其更改为无可挑剔的源代码。