wget使用yum install安装无效的解决方案

大佬们各种情况都说了,我说一下我的情况

直接贴解决方案,记录一下,首先 在网上看见wget的默认目录为/usr/local/bin/wget

[root@duckweed mysql]# cd /usr/local/bin
[root@duckweed bin]# ls
chardetect  cloud-id  cloud-init  cloud-init-per  easy_install  easy_install-3.6  easy_install-3.8  jsondiff  jsonpatch  jsonpointer  jsonschema

发现没有这个目录,于是rpm -qa|grep wget 一下发现确实安装了

[root@duckweed bin]# rpm -qa|grep wget
wget-1.19.5-8.el8_1.1.x86_64

灵光一闪,果断卸载

[root@duckweed bin]# rpm -e wget-1.19.5-8.el8_1.1.x86_64
warning: file /usr/bin/wget: remove failed: No such file or directory

不管这个警告(本来就没有这个目录),确认删除成功后重新安装

[root@duckweed bin]# rpm -qa|grep wget
[root@duckweed bin]# yum install -y wget
Repository epel is listed more than once in the configuration
Last metadata expiration check: 0:47:54 ago on Fri 14 Aug 2020 02:46:55 PM CST.
Dependencies resolved.
==============================================================================================================================================================================================
 Package                                  Architecture                               Version                                              Repository                                     Size
==============================================================================================================================================================================================
Installing:
 wget                                     x86_64                                     1.19.5-8.el8_1.1                                     AppStream                                     735 k

Transaction Summary
==============================================================================================================================================================================================
Install  1 Package

Total download size: 735 k
Installed size: 2.9 M
Downloading Packages:
wget-1.19.5-8.el8_1.1.x86_64.rpm                                                                                                                              1.8 MB/s | 735 kB     00:00    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         1.8 MB/s | 735 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                      1/1 
  Installing       : wget-1.19.5-8.el8_1.1.x86_64                                                                                                                                         1/1 
  Running scriptlet: wget-1.19.5-8.el8_1.1.x86_64                                                                                                                                         1/1 
  Verifying        : wget-1.19.5-8.el8_1.1.x86_64                                                                                                                                         1/1 

Installed:
  wget-1.19.5-8.el8_1.1.x86_64   

  Complete!                                                                                                                                                             

确认安装成功

[root@duckweed bin]# wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

记录一下,记得点赞哦亲!

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页