2017-05-15 1 views
0

をインストールするときに、私はwgetのをインストールしたい:なしパッケージwgetの私はCentOSの6.5をwgetの

# yum -y install wget 

しかし、私は以下のエラーが表示されます。

[[email protected] 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 
+0

編集あなたの質問を経由して、パッケージを見つけて、YUM 'の出力を置くことができる

[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 

は – iamauser

+0

は、あなたがこの解決を取得するために管理したのrepolist'? – user3788685

+0

@ user3788685 yumのソースは問題があります。私はそれを完璧なソースに変更します。 – 244boy

答えて

0

あなたがかもしれようですねあなたのyum設定から 'base'リポジトリがありません。

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存在しない場合は作成し、次の設定ブロックを追加してください。あなたはまた、http://rpm.pbone.net