在我的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发布于 2017-05-18 08:23:54
听起来你可能错过了你的yum配置中的“基本”回购。
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您还可以通过http://rpm.pbone.net找到这个包。
https://stackoverflow.com/questions/43971735
复制相似问题