如何查看启用仓库
运行repolist 命令即可检查系统上启用的仓库列表。
yum repolist
查看CentOS版本方法
cat /etc/redhat-release
CentOS Linux release 8.3.2011
或者
cat /proc/version
Linux version 4.18.0-240.el8.x86_64 ([email protected]) (gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)) #1 SMP Fri Sep 25 19:48:47 UTC 2020
tar -zxvf 解压缩报错
在Linux环境下,通过tar -zxvf 命令解压文件时遇到”gzip: stdin: not in gzip format“等错误:如图所示
1 root@xxxxxxxx:/usr/java# tar -zxvf jdk-8u144-linux-x64.tar.gz
2 gzip: stdin: not in gzip format
3 tar: Child returned status 1
4 tar: Error is not recoverable: exiting now
最终发现这个压缩包没有用gzip格式压缩,所以不用加z参数,囧(所以不是所有的解压包都得用 -zxvf)!
tar -zxvf jdk-8u144-linux-x64.tar.gz 改成 tar -xvf jdk-8u144-linux-x64.tar.