-bash: tar: command not found 解决方法

CentOS 8 系统没有自带 tar 的压缩解压工具。当用到 tar 如果没有安装就会出现 -bash: tar: Command Not Found ,需要我们自己安装。

执行:

yum install tar -y