- 安装lrzsz软件包
[root@localhost /]# yum -y install lrzsz
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
CentOS-8 - Base - mirrors.aliyun.com 41 kB/s | 3.9 kB 00:00
CentOS-8 - Extras - mirrors.aliyun.com 21 kB/s | 1.5 kB 00:00
CentOS-8 - AppStream - mirrors.aliyun. 58 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Mo 24 kB/s | 3.0 kB 00:00
Extra Packages for Enterprise Linux 8 37 kB/s | 4.7 kB 00:00
依赖关系解决。
=======================================================================
软件包 架构 版本 仓库 大小
=======================================================================
安装:
lrzsz x86_64 0.12.20-43.el8 base 84 k
事务概要
=======================================================================
安装 1 软件包
总下载:84 k
安装大小:190 k
下载软件包:
lrzsz-0.12.20-43.el8.x86_64.rpm 630 kB/s | 84 kB 00:00
-----------------------------------------------------------------------
总计 624 kB/s | 84 kB 00:00
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
安装 : lrzsz-0.12.20-43.el8.x86_64 1/1
运行脚本: lrzsz-0.12.20-43.el8.x86_64 1/1
验证 : lrzsz-0.12.20-43.el8.x86_64 1/1
Installed products updated.
已安装:
lrzsz-0.12.20-43.el8.x86_64
完毕!
- 将虚拟机文件传到本地
[root@localhost /]# sz /server.tar.xz
选择文件保存路径即可
- 将本地文件上传至虚拟机
[root@localhost /]# rz
选择需要传输的文件