目 录CONTENT

文章目录

Ubuntu系统手动安装wget软件包

qiushengcai
2025-01-26 / 0 评论 / 0 点赞 / 27 阅读 / 0 字

1.下载wget软件包

官网地址:http://mirrors.163.com/centos/7/os/x86_64/Packages/

阿里云开源镜像站:https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/

下载名称为wget-1.14-18.el7_6.1.x86_64.rpm的软件包。

2.安装软件包

在/usr/local目录下手动创建一个wget文件目录,将软件包上传到这个目录下。

进入wget安装目录

cd /usr/local/wget

安装wget

rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm

查看wget是否安装

rpm -qa | grep wget

注意:如果后续版本升级,只需将安装时的wget文件名称更换为对应版本即可。

3.更换阿里云镜像

下载CentOS 7的repo文件

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

更新镜像源

# 清除缓存
yum clean all
# 生成缓存
yum makecache

启动EPEL软件源

yum install epel-release

参考网站

https://blog.csdn.net/qq_40577364/article/details/138260784

0

评论区