{"id":1504,"date":"2020-08-31T23:00:00","date_gmt":"2020-08-31T19:30:00","guid":{"rendered":"https:\/\/parsdev.com\/wpblog\/centos-version-check\/"},"modified":"2025-07-28T08:54:26","modified_gmt":"2025-07-28T05:24:26","slug":"centos-version-check","status":"publish","type":"post","link":"https:\/\/parsdev.com/blog\/centos-version-check\/","title":{"rendered":"\u0686\u0637\u0648\u0631 \u0646\u0633\u062e\u0647 centos \u062e\u0648\u062f \u0631\u0627 \u0686\u06a9 \u06a9\u0646\u06cc\u062f"},"content":{"rendered":"<p>\u0647\u0646\u06af\u0627\u0645 \u0648\u0631\u0648\u062f \u0628\u0647 \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 CentOS \u0628\u0631\u0627\u06cc \u0627\u0648\u0644\u06cc\u0646 \u0628\u0627\u0631\u060c \u0642\u0628\u0644 \u0627\u0632 \u0627\u0646\u062c\u0627\u0645 \u0647\u0631 \u06a9\u0627\u0631 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0634\u0645\u0627 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u062f \u0686\u0647 \u0646\u0633\u062e\u0647 CentOS \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0634\u0645\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f.<br \/>\n\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0686\u0646\u062f \u062f\u0633\u062a\u0648\u0631 \u0645\u062e\u062a\u0644\u0641 \u0631\u0627 \u062f\u0631 \u0645\u0648\u0631\u062f \u0686\u06af\u0648\u0646\u06af\u06cc \u0628\u0631\u0631\u0633\u06cc \u0646\u0633\u062e\u0647&nbsp; \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 CentOS&nbsp; \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u06cc\u0645.<\/p>\n<p>\u062a\u0627 \u0632\u0645\u0627\u0646 \u0646\u0648\u0634\u062a\u0646 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647&nbsp; CentOS&nbsp; \u0633\u0647 \u0646\u0633\u062e\u0647&nbsp; \u0641\u0639\u0627\u0644 \u062f\u0627\u0631\u062f :: CentOS 5\u060c CentOS 6 \u0648 CentOS 7<\/p>\n<p>&nbsp;<\/p>\n<h3>\u0646\u0633\u062e\u0647&nbsp; CentOS \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 lsb_release \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f<\/h3>\n<p>\n\u062f\u0633\u062a\u0648\u0631 lsb_release \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u067e\u0627\u06cc\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f (LSB) \u062f\u0631\u0628\u0627\u0631\u0647 \u062a\u0648\u0632\u06cc\u0639 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0634\u0645\u0627 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u0631\u0648\u0634 \u062a\u0631\u062c\u06cc\u062d \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0628\u062f\u0648\u0646 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0646\u0633\u062e\u0647 CentOS&nbsp; \u0634\u0645\u0627 \u06a9\u0647 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0627\u0633\u062a \u06a9\u0627\u0631 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.<\/p>\n<p>\u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f:<\/p>\n<pre> <code>lsb_release -a<\/code><\/pre>\n<p style=\"text-align: center;\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/files.parsdev.com\/data\/\/1546543920_.jpg\" \/><\/p>\n<p>\u0646\u0633\u062e\u0647 CentOS \u0634\u0645\u0627 \u062f\u0631 \u062e\u0637 \u0634\u0631\u062d \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f. \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc \u0628\u06cc\u0646\u06cc\u062f \u0627\u0632 \u062e\u0631\u0648\u062c\u06cc \u0628\u0627\u0644\u0627 \u0645\u0646 \u0627\u0632 CentOS Linux release 7.5.1804 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u0645.<\/p>\n<p>\n<strong>\u0645\u0639\u0646\u06cc \u0634\u0645\u0627\u0631\u0647 \u0646\u0633\u062e\u0647 \u06f7.\u06f5.\u06f1\u06f8\u06f0\u06f4 \u0686\u06cc\u0633\u062a\u061f<\/strong><\/p>\n<ul>\n<li>&nbsp;&nbsp;&nbsp;&nbsp; 7 \u0646\u0633\u062e\u0647&nbsp; \u0627\u0635\u0644\u06cc&nbsp; CentOS \u0627\u0633\u062a.<\/li>\n<li>&nbsp;&nbsp;&nbsp;&nbsp; 7.5 \u0622\u062e\u0631\u06cc\u0646 \u0646\u0633\u062e\u0647 \u062c\u0632\u0626\u06cc CentOS 7 \u0627\u0633\u062a.<\/li>\n<li>&nbsp;&nbsp;&nbsp;&nbsp; 1804 \u06a9\u062f \u062a\u0627\u0631\u06cc\u062e \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u062c\u0632\u0626\u06cc \u0627\u0633\u062a\u060c \u06f1\u06f8\u06f0\u06f4 \u0628\u0647 \u0645\u0639\u0646\u06cc \u0622\u0648\u0631\u06cc\u0644 \u06f2\u06f0\u06f1\u06f8 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0634\u0645\u0627\u0631\u0647 \u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 \u0632\u0645\u0627\u0646 \u0627\u0646\u062a\u0634\u0627\u0631 \u0627\u062a\u0641\u0627\u0642 \u0645\u06cc \u0627\u0641\u062a\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u0627\u06af\u0631 \u067e\u06cc\u0627\u0645\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f : bash: lsb_release: command not found&#8230;\u060c \u0628\u062f\u0627\u0646 \u0645\u0639\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0633\u062a\u0647&nbsp; redhat-lsb core \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0634\u0645\u0627 \u0646\u0635\u0628 \u0646\u0634\u062f\u0647 \u0627\u0633\u062a. \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f<\/p>\n<pre> <code>sudo yum install redhat-lsb-core<\/code><\/pre>\n<p><strong>\u0646\u0633\u062e\u0647 <\/strong><strong>CentOS \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 rpm \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f<\/strong><\/p>\n<p>\nrpm (Red Hat Package Manager) \u06cc\u06a9 \u0628\u0633\u062a\u0647 \u0627\u0628\u0632\u0627\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a\u06cc \u0628\u0631\u0627\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0647\u0627\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 Red Hat \u0645\u0627\u0646\u0646\u062f RHEL\u060c CentOS \u0648 Fedora \u0627\u0633\u062a.<\/p>\n<p>\u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0627\u0628\u0632\u0627\u0631 rpm \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0628\u0633\u062a\u0647 \u0646\u0633\u062e\u0647 centos \u06a9\u0647 \u0634\u0627\u0645\u0644 \u0646\u0633\u062e\u0647 CentOS \u062f\u0631 \u0646\u0627\u0645 \u0622\u0646 \u0627\u0633\u062a\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre> <code>rpm --query centos-release<\/code><\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<pre> <code>centos-release-7-5.1804.4.el7.centos.x86_64<\/code><\/pre>\n<p>\n<strong>\u0646\u0633\u062e\u0647 CentOS \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u0627\u06cc\u0644 \/ etc \/ centos-release \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f<\/strong><\/p>\n<p>\u0641\u0627\u06cc\u0644 \/ etc \/ centos-release \u062a\u0648\u0633\u0637 \u0628\u0633\u062a\u0647 centos \u0645\u0646\u062a\u0634\u0631 \u0634\u062f\u0647 \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0646 \u0646\u0633\u062e\u0647 CentOS \u062e\u0648\u062f\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<pre> <code>cat \/etc\/redhat-release<\/code><\/pre>\n<p>\n\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<pre> <code>CentOS Linux release 7.5.1804 (Core)<\/code><\/pre>\n<p>\n<strong>\u0646\u0633\u062e\u0647 CentOS \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u0627\u06cc\u0644 \/ etc \/ os-release \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f<\/strong><br \/>\n\u0641\u0627\u06cc\u0644 \/ etc \/ os-release \u062f\u0631 \u062a\u0645\u0627\u0645 \u0633\u06cc\u0633\u062a\u0645 \u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u0631\u0648\u0634 \u0627\u06af\u0631 \u0634\u0645\u0627 CentOS 7 \u062f\u0627\u0631\u06cc\u062f\u060c\u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f :<\/p>\n<pre> <code>cat \/etc\/os-release<\/code><\/pre>\n<p>\n\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<pre> <code>\r\n<p style=\"text-align: left;\">NAME=&quot;CentOS Linux&quot;<br \/>\r\nVERSION=&quot;7 (Core)&quot;<br \/>\r\nID=&quot;centos&quot;<br \/>\r\nID_LIKE=&quot;rhel fedora&quot;<br \/>\r\nVERSION_ID=&quot;7&quot;<br \/>\r\nPRETTY_NAME=&quot;CentOS Linux 7 (Core)&quot;<br \/>\r\nANSI_COLOR=&quot;0;31&quot;<br \/>\r\nCPE_NAME=&quot;cpe:\/o:centos:centos:7&quot;<br \/>\r\nHOME_URL=&quot;https:\/\/www.centos.org\/&quot;<br \/>\r\nBUG_REPORT_URL=&quot;https:\/\/bugs.centos.org\/&quot;<\/p><\/code><\/pre>\n<pre> <code><p style=\"text-align: left;\">CENTOS_MANTISBT_PROJECT=&quot;CentOS-7&quot;<br \/>\r\nCENTOS_MANTISBT_PROJECT_VERSION=&quot;7&quot;<br \/>\r\nREDHAT_SUPPORT_PRODUCT=&quot;centos&quot;<br \/>\r\nREDHAT_SUPPORT_PRODUCT_VERSION=&quot;<\/p><\/code><\/pre>\n<p><strong>\u0646\u0633\u062e\u0647 CentOS \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 hostnamectl \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f<\/strong><\/p>\n<p>\nhostnamectl \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f hostname \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f \u0627\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0628\u0631\u0627\u06cc \u06cc\u0627\u0641\u062a\u0646 \u0646\u0633\u062e\u0647&nbsp; CentOS \u062e\u0648\u062f \u0647\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u0631\u0648\u0634 \u0627\u06af\u0631 \u0634\u0645\u0627 CentOS 7 \u062f\u0627\u0631\u06cc\u062f\u060c\u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f :<\/p>\n<p style=\"text-align: left;\">hostnamectl<\/p>\n<p>\n\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<p style=\"text-align: left;\">&nbsp;<\/p>\n<p style=\"text-align: left;\">Static hostname: localhost.localdomain<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Icon name: computer-vm<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Chassis: vm<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Machine ID: 2849f743fbe74706abaa6cb8b2ae5377<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Boot ID: 8259a43c6265465884920ac6d762ed5e<br \/>\n&nbsp;&nbsp;&nbsp; Virtualization: kvm<br \/>\n&nbsp; Operating System: CentOS Linux 7 (Core)<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPE OS Name: cpe:\/o:centos:centos:7<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Kernel: Linux 3.10.0-862.9.1.el7.x86_64<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Architecture: x86-64<\/p>\n<p style=\"text-align: left;\">&nbsp;<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627\u060c \u0645\u0627 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0627\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0646\u0633\u062e\u0647&nbsp; CentOS \u0646\u0635\u0628 \u0634\u062f\u0647 \u062f\u0631 \u0633\u0631\u0648\u0631 \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"\u0647\u0646\u06af\u0627\u0645 \u0648\u0631\u0648\u062f \u0628\u0647 \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 CentOS \u0628\u0631\u0627\u06cc \u0627\u0648\u0644\u06cc\u0646 \u0628\u0627\u0631\u060c \u0642\u0628\u0644 \u0627\u0632 \u0627\u0646\u062c\u0627\u0645 \u0647\u0631 \u06a9\u0627\u0631 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0634\u0645\u0627 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f&hellip;","protected":false},"author":1,"featured_media":1503,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[8],"tags":[],"class_list":{"0":"post-1504","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-server","8":"cs-entry"},"_links":{"self":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/comments?post=1504"}],"version-history":[{"count":7,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1504\/revisions"}],"predecessor-version":[{"id":6910,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1504\/revisions\/6910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/media\/1503"}],"wp:attachment":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/media?parent=1504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/categories?post=1504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/tags?post=1504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}