Run rpm --eval '%{centos_ver}' to get MAJOR version of centos. ... <看更多>
Search
Search
Run rpm --eval '%{centos_ver}' to get MAJOR version of centos. ... <看更多>
cat /etc/redhat-release. # https://linuxconfig.org/how-to-check-centos-version. # the later two may need some package to install. rpm --query centos-release. ... <看更多>
Inside the ssh type: cat /etc/redhat-release cat /etc/issue For safely upgrade to Centos lastest version, you can type: yum update Other may ask: How to ... ... <看更多>
If you just want the number, not the awk thing, here is a way much easier: . /etc/os-release echo $VERSION_ID. Why? Check the man page man ... ... <看更多>