首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装wget时,没有可用的包wget。

安装wget时,没有可用的包wget。
EN

Stack Overflow用户
提问于 2017-05-15 04:46:08
回答 1查看 8.5K关注 0票数 1

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

代码语言:javascript
复制
#  yum -y install wget

但我得到了以下错误:

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-18 08:23:54

听起来你可能错过了你的yum配置中的“基本”回购。

代码语言:javascript
复制
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,如果它不存在,然后创建它并添加以下配置块;

代码语言:javascript
复制
[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

您还可以通过http://rpm.pbone.net找到这个包。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43971735

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档