{"id":1901,"date":"2019-11-14T16:08:37","date_gmt":"2019-11-14T14:08:37","guid":{"rendered":"https:\/\/wolfisp.com\/?p=1901"},"modified":"2019-11-14T16:13:32","modified_gmt":"2019-11-14T14:13:32","slug":"upgrade-centos-7-to-version-8","status":"publish","type":"post","link":"https:\/\/wolfisp.com\/en\/2019\/11\/14\/upgrade-centos-7-to-version-8\/","title":{"rendered":"Upgrade CentOS 7 to version 8"},"content":{"rendered":"\n<h2>Recently, the world saw the release of the new CentOS 8 which received many interesting innovations, such as:<\/h2>\n\n\n\n<ul><li>the two main repositories are <strong>baseos <\/strong>and <strong>appstream<\/strong>. The first is designed for basic use on servers, nodes, vps\/vds, etc. the Second is more suitable for workstations.<\/li><li><strong>yum <\/strong>package manager is replaced by <strong>dnf <\/strong>from <strong>Fedora<\/strong>, it is faster than its predecessor and is backward compatible.<\/li><li>the <strong>cockpit <\/strong>Web interface appeared. You can now manage the main functions of the server from the browser.<\/li><li>delivered support <strong>Podman <\/strong>containers, it is an analog-compatible replacement <strong>Docker<\/strong>.<\/li><li>updated <strong>TCP <\/strong>stack to version 4.16. Which supports new methods of processing incoming connections, the use of which allows you to serve a larger number of connections.<\/li><li>network configuration is now fully managed by <strong>NetworkManager<\/strong> and <strong>nmcli <\/strong>utility.<\/li><li>there is support for booting from <strong>NVDIMM <\/strong>drives.<\/li><li><strong>iptables <\/strong>is replaced by <strong>nftables<\/strong>.<\/li><li>the <strong>chrony <\/strong>utility is now used to synchronize <strong>ntp <\/strong>time.<\/li><li>the usual <strong>Xorg <\/strong>display server was replaced by <strong>Wayland <\/strong>by default.<\/li><\/ul>\n\n\n\n<p>And as part of this article I want to tell You how to <strong>upgrade CentOS 7 to CentOS 8 without reinstalling.<\/strong><\/p>\n\n\n\n<p><strong>Back up your OS before upgrading<\/strong>, as the process is <strong>irreversible<\/strong>. Also, if you are using control panels, for now refrain from updating, since most of them do not yet support the new OS.<\/p>\n\n\n\n<p><strong>Proceed\u2026<\/strong><\/p>\n\n\n\n<p><strong>We put the packages necessary for the update:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>yum install rpmconf epel-release yum-utils<\/code><\/pre>\n\n\n\n<p><strong>Next, perform a reconciliation of configs, be careful, the utility offers several options (from the package, the current one\u2026):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>rpmconf -a<\/code><\/pre>\n\n\n\n<p><strong>Remove unnecessary packages, such as those that were not installed from repositories:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>package-cleanup --orphans\n<\/code>\n<code>package-cleanup --leaves<\/code><\/pre>\n\n\n\n<p><strong>We install dnf and remove yum:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>yum install dnf\n<\/code>\n<code>dnf remove yum yum-metadata-parser\n<\/code>\n<code>rm -Rf \/etc\/yum<\/code><\/pre>\n\n\n\n<p><strong>Upgrade the system via dnf:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf upgrade<\/code><\/pre>\n\n\n\n<p><strong>Adding new centos and epel repositories:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf upgrade https:\/\/mirror.yandex.ru\/centos\/8\/BaseOS\/x86_64\/os\/Packages\/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm\n<\/code>\n<code>dnf upgrade https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm<\/code><\/pre>\n\n\n\n<p><strong>Delete temporary dnf files:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf clean all<\/code><\/pre>\n\n\n\n<p><strong>Remove kernels and conflicting packages:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>rpm -e `rpm -q kernel`\n<\/code>\n<code>rpm -e --nodeps sysvinit-tools<\/code><\/pre>\n\n\n\n<p><strong>And run the process of upgrading the system:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync<\/code><\/pre>\n\n\n\n<p><strong>Check that the new kernel is installed:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>rpm -qa | grep kernel-core-4<\/code><\/pre>\n\n\n\n<p>or so<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install kernel-core<\/code><\/pre>\n\n\n\n<p><strong>Install \/ update the minimum set of packages:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf groupupdate \"Core\" \"Minimal Install\"<\/code><\/pre>\n\n\n\n<p><strong>After the process is complete, restart the OS and check the version:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cat \/etc\/centos-release<\/code><\/pre>\n\n\n\n<p>Next, I advise you to check the work of the installed software with the new kernel, and the update process is over.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, the world saw the release of the new CentOS 8 which received many interesting innovations, such as: the two main repositories are baseos and appstream. The first is designed for basic use on servers, nodes, vps\/vds, etc. the Second&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[76],"tags":[100,112,99,113,94,101,96,103,107,108,105,109,106,102,98,104,97,111,110,95],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/posts\/1901"}],"collection":[{"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/comments?post=1901"}],"version-history":[{"count":2,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/posts\/1901\/revisions"}],"predecessor-version":[{"id":1903,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/posts\/1901\/revisions\/1903"}],"wp:attachment":[{"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/media?parent=1901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/categories?post=1901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/tags?post=1901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}