{"id":1374,"date":"2016-01-13T10:42:26","date_gmt":"2016-01-13T09:42:26","guid":{"rendered":"http:\/\/blog.rabahi.net\/?page_id=1374"},"modified":"2017-03-14T11:13:02","modified_gmt":"2017-03-14T10:13:02","slug":"redhat-survival-guide","status":"publish","type":"page","link":"https:\/\/blog.rabahi.net\/?page_id=1374","title":{"rendered":"Redhat Survival Guide"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#Register\"><span class=\"toc_number toc_depth_1\">1<\/span> Register<\/a><\/li><li><a href=\"#Subscription\"><span class=\"toc_number toc_depth_1\">2<\/span> Subscription<\/a><\/li><li><a href=\"#Change_distibution_version\"><span class=\"toc_number toc_depth_1\">3<\/span> Change distibution version<\/a><\/li><li><a href=\"#Check_redhat_version\"><span class=\"toc_number toc_depth_1\">4<\/span> Check redhat version<\/a><ul><li><a href=\"#using_command_lsb_release\"><span class=\"toc_number toc_depth_2\">4.1<\/span> using command lsb_release<\/a><\/li><li><a href=\"#using_file_etcredhat-release\"><span class=\"toc_number toc_depth_2\">4.2<\/span> using file \/etc\/redhat-release<\/a><\/li><li><a href=\"#using_file_etcissue\"><span class=\"toc_number toc_depth_2\">4.3<\/span> using file \/etc\/issue<\/a><\/li><\/ul><\/li><\/ul><\/div>\n<h1><span id=\"Register\">Register<\/span><\/h1>\n<pre lang=\"bash\">\r\nsubscription-manager register --username MYRHLOGIN --password MYRHPWD --auto-attach\r\n<\/pre>\n<h1><span id=\"Subscription\">Subscription<\/span><\/h1>\n<p>List all available subscriptions :<\/p>\n<pre lang=\"bash\">\r\nsubscription-manager list\r\n<\/pre>\n<p>Subscribe :<\/p>\n<pre lang=\"bash\">\r\nsubscription-manager subscribe --auto\r\n<\/pre>\n<h1><span id=\"Change_distibution_version\">Change distibution version<\/span><\/h1>\n<p>You can set your preferred release level using the subscription-manager tool. Example to set release to version 6.4 :<\/p>\n<pre lang=\"bash\">\r\nsubscription-manager release --set=6.4\r\nyum clean metadata all\r\nyum downgrade redhat-release\r\nyum distro-sync\r\n<\/pre>\n<h1><span id=\"Check_redhat_version\">Check redhat version<\/span><\/h1>\n<h2><span id=\"using_command_lsb_release\">using command lsb_release<\/span><\/h2>\n<p>First, install package redhat-lsb-core:<\/p>\n<pre lang=\"bash\">\r\nyum install redhat-lsb-core\r\n<\/pre>\n<p>Now, you can check the version:<\/p>\n<pre lang=\"bash\">\r\n\/usr\/bin\/lsb_release -a\r\n<\/pre>\n<h2><span id=\"using_file_etcredhat-release\">using file \/etc\/redhat-release<\/span><\/h2>\n<pre lang=\"bash\">\r\ncat \/etc\/redhat-release\r\n<\/pre>\n<h2><span id=\"using_file_etcissue\">using file \/etc\/issue<\/span><\/h2>\n<pre lang=\"bash\">\r\ncat \/etc\/issue\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 Register2 Subscription3 Change distibution version4 Check redhat version4.1 using command lsb_release4.2 using file \/etc\/redhat-release4.3 using file \/etc\/issue Register subscription-manager register &#8211;username MYRHLOGIN &#8211;password MYRHPWD &#8211;auto-attach Subscription List all available subscriptions : subscription-manager list Subscribe : subscription-manager subscribe &#8211;auto Change distibution version You can set your preferred release level using the subscription-manager tool. Example to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":440,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1374","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/1374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1374"}],"version-history":[{"count":8,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/1374\/revisions"}],"predecessor-version":[{"id":1843,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/1374\/revisions\/1843"}],"up":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/440"}],"wp:attachment":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}