首页 > 系统相关 >centos 离线安装tree命令

centos 离线安装tree命令

时间:2024-01-25 14:23:54浏览次数:16  
标签:x86 centos mirrors 离线 tree sclo 64 edu com

在线安装tree命令:

 yum -y install tree

 

但是在线包总是下载失败:

Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * centos-sclo-rh: ftp.sjtu.edu.cn
 * centos-sclo-sclo: mirror.lzu.edu.cn
 * epel: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.tuna.tsinghua.edu.cn/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.tuna.tsinghua.edu.cn; 未知的错误"
正在尝试其它镜像。
http://ftp.sjtu.edu.cn/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: ftp.sjtu.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.cn99.com/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cn99.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.neusoft.edu.cn/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.neusoft.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirror.lzu.edu.cn/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirror.lzu.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.163.com/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.163.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.bfsu.edu.cn/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.bfsu.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.cqu.edu.cn/CentOS/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cqu.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.huaweicloud.com/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.huaweicloud.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.nju.edu.cn/centos/7.9.2009/sclo/x86_64/rh/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.nju.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.tuna.tsinghua.edu.cn/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.tuna.tsinghua.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.bupt.edu.cn/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.bupt.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.jlu.edu.cn/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.jlu.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.ustc.edu.cn/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.ustc.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirror.lzu.edu.cn/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirror.lzu.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.163.com/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.163.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.bfsu.edu.cn/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.bfsu.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.cqu.edu.cn/CentOS/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cqu.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.huaweicloud.com/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.huaweicloud.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.nju.edu.cn/centos/7.9.2009/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.nju.edu.cn; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyun.com/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyuncs.com/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyun.com/centos/7/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyuncs.com/centos/7/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyun.com/centos/7/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyuncs.com/centos/7/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
正在解决依赖关系
--> 正在检查事务
---> 软件包 tree.x86_64.0.1.6.0-10.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

============================================================================================================================================================
 Package                           架构                                版本                                         源                                 大小
============================================================================================================================================================
正在安装:
 tree                              x86_64                              1.6.0-10.el7                                 base                               46 k

事务概要
============================================================================================================================================================
安装  1 软件包

总下载量:46 k
安装大小:87 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
tree-1.6.0-10.el7.x86_64.rpm   FAILED                                          
http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/tree-1.6.0-10.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error"
正在尝试其它镜像。
tree-1.6.0-10.el7.x86_64.rpm   FAILED                                          
http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/tree-1.6.0-10.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; Unknown error"
正在尝试其它镜像。


Error downloading packages:
  tree-1.6.0-10.el7.x86_64: [Errno 256] No more mirrors to try.

 

所以需要采用离线安装方式:

离线包获取地址:https://developer.aliyun.com/packageSearch?word=tree

 

 

 

 

然后使用命令安装本地yum包:

yum localinstall tree-1.7.0-15.el8.x86_64.rpm
yum localinstall tree-1.7.0-15.el8.x86_64.rpm 
已加载插件:fastestmirror
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
正在检查 tree-1.7.0-15.el8.x86_64.rpm: tree-1.7.0-15.el8.x86_64
tree-1.7.0-15.el8.x86_64.rpm 将被安装
正在解决依赖关系
--> 正在检查事务
---> 软件包 tree.x86_64.0.1.7.0-15.el8 将被 安装
--> 解决依赖关系完成

依赖关系解决

============================================================================================================================================================
 Package                      架构                           版本                                   源                                                 大小
============================================================================================================================================================
正在安装:
 tree                         x86_64                         1.7.0-15.el8                           /tree-1.7.0-15.el8.x86_64                         109 k

事务概要
============================================================================================================================================================
安装  1 软件包

总计:109 k
安装大小:109 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : tree-1.7.0-15.el8.x86_64                                                                                                                1/1 
  验证中      : tree-1.7.0-15.el8.x86_64                                                                                                                1/1 

已安装:
  tree.x86_64 0:1.7.0-15.el8                                                                                                                                

完毕!

 

标签:x86,centos,mirrors,离线,tree,sclo,64,edu,com
From: https://www.cnblogs.com/hankuikui/p/17987042

相关文章

  • centos服务器修改ssh端口号
    1、修改ssh配置文件,找到Port=22位置,可以新增Port=20022,或者修改22为20022vi/etc/ssh/sshd_config  2、重启ssh服务systemctl restartsshd 3、查看ssh服务状态systemctl  status  sshd注:这里可以查看到ssh启动时监听端口的日志,如果监听失败会显示failed,失败......
  • Electron 解决 connect ETIMEDOUT 或 sill idealTree buildDeps
    参考https://blog.csdn.net/Johanna51/article/details/123360477https://www.electronjs.org/zh/docs/latest/tutorial/installationhttps://cloud.tencent.com/developer/article/1781066环境环境版本说明Windows10nodev20.11.0npm10.2.4Windows......
  • Centos+jenkins+Docker+.Net6 简单使用CI/CD
    jenkins安装1:安装sudodockerpulljenkins/jenkins2:路劲/home/fengge/jenkins_home3:运行:/var/jenkins_home运行数据多了这个错误的东东路径jenkins_homesudodockerrun-d--restart=always--namejenkins-p8081:8080-v/home/fengge/jenkins_home:/var/je......
  • centOS7环境配置
    一台新的云服务器,如何配置基础环境:0.更新软件包和存储库sudoyumupdate-y1.安装gitsudoyuminstallgit-ygit--version2.安装nodeJSsudoyuminstallepel-releasesudoyuminstallnodejsnode--versionsudoyuminstallnpm--enablerepo=epel......
  • CodeForces 1010F Tree
    洛谷传送门CF传送门educational的。另一道类似的题是[ABC269Ex]Antichain(但是我还没写)。考虑令\(b_u=a_u-\sum\limits_{v\inson_u}a_v\)。那么\(\sum\limits_{i=1}^nb_i=a_1=x\),且\(\foralli\in[1,n],b_i\ge0\)。所以最后连通块内有\(y\)个点,那......
  • centos7 LAMP部署owncloud
    部署LAMP1.安装Apache[root@localhost~]#yuminstallhttpd-y2、启动Apache并设置为开机自启动##启动Apache[root@localhost~]#systemctlstarthttpd\##设置开机自启[root@localhost~]#systemctlenablehttpdCreatedsymlinkfrom/etc/systemd/system/multi......
  • CentOS 7上部署Zabbix 5.0
    安装环境centos7.9系统使用root权限登录到CentOS7服务器。确保服务器可以访问互联网#关闭防火墙systemctlstopfirewalld.servicesystemctldisablefirewalld.service#禁用SELINUXsetenforce0sed-i's/^SELINUX=.*/SELINUX=disabled/'/etc/selinux/config#安装Zabbix源......
  • centos6.9安装Jenkins服务
    1.安装javajdk,默认centos6.9只能下载到java8,安装成功后Jenkins会有一堆插件用不了,使用这里手动安装java17,在官网找对应安装包https://www.oracle.com/java/technologies/downloads/#java17这里下载了jdk-17_linux-x64_bin.rpm格式 rpm-ivh文件名java-version查看下版本,......
  • mellanox ib card芯片型号是ConnectX-6操作系统centos 7.6升级完内核5.19 .4后,安装驱
    在升级内核后,有时候需要重新编译和安装驱动以适配新的内核版本。以下是一些可能的解决步骤:确保内核头文件已安装:在升级内核后,可能需要安装新内核版本的头文件。使用以下命令安装:bashCopycodesudoyuminstallkernel-devel-$(uname-r)kernel-headers-$(uname-r)确保......
  • 【服务器数据恢复】DELL EqualLogic存储中RAID5多块磁盘出现坏道离线,上层虚拟机不可用
    服务器数据恢复环境&故障:某公司IT部门一台某品牌EqualLogicPS6100系列存储在运行过程中突然崩溃。服务器管理员对故障服务器存储进行初步检查,经过检测发现导致该服务器存储无法正常工作的原因是该存储中raid5磁盘阵列内有2块硬盘出现故障离线,导致上层虚拟机不可用。由于该存储......