[root@DEMO ~]# curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 664 100 664 0 0 26535 0 --:--:-- --:--:-- --:--:-- 27666
[root@DEMO ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2523 100 2523 0 0 75661 0 --:--:-- --:--:-- --:--:-- 76454
yum install sharutils -y
[root@DEMO ~]# yum install sharutils -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 sharutils.x86_64.0.4.13.3-8.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
==============================================================================================================================================================
Package 架构 版本 源 大小
==============================================================================================================================================================
正在安装:
sharutils x86_64 4.13.3-8.el7 base 252 k
事务概要
==============================================================================================================================================================
安装 1 软件包
总下载量:252 k
安装大小:898 k
Downloading packages:
sharutils-4.13.3-8.el7.x86_64.rpm | 252 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : sharutils-4.13.3-8.el7.x86_64 1/1
验证中 : sharutils-4.13.3-8.el7.x86_64 1/1
已安装:
sharutils.x86_64 0:4.13.3-8.el7