Minor updates

This commit is contained in:
Adi Chirilov
2020-08-24 12:29:09 +03:00
parent ae44dcb68f
commit c0246101f7
7 changed files with 301 additions and 340 deletions

View File

@ -676,10 +676,9 @@
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
<h1 class="bd-title" id="content">Set up CentOS</h1>
<p class="bd-lead"></p>
<h1 id="set-up-centos">Set Up <a href="https://www.centos.org/">CentOS</a></h1>
<p class="bd-lead"></p>
<hr />
<p><a href="https://www.centos.org/">CentOS</a> is a Linux distribution that provides a free, community-supported computing platform functionally compatible with its upstream source, Red Hat Enterprise Linux (RHEL). In January 2014, CentOS announced the official joining with Red Hat while staying independent from RHEL under a new CentOS governing board.</p>
<p><br /></p>
@ -689,10 +688,8 @@
<p>The <code class="highlighter-rouge">Development Tools</code> package group provides the GNU Compiler Collection (GCC), GNU Debugger (GDB), and other related development tools.</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="c"># install Development Tools bundle</span>
<span class="nv">$ </span><span class="nb">sudo </span>yum group <span class="nb">install</span> <span class="s2">"Development Tools"</span>
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ # install Development Tools bundle
$ sudo yum group install "Development Tools"</code></pre></figure>
<p><br /></p>
@ -701,8 +698,7 @@
<p><a href="https://git-scm.com/">Git</a> is the most popular version control system on Linux. It is easy to use, amazingly fast, its very efficient with large projects, and it has an incredible branching system for non-linear development.</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="nb">sudo </span>yum <span class="nb">install </span>git
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ sudo yum install git</code></pre></figure>
<p><br /></p>
@ -710,16 +706,13 @@
<p>By default, CentOS is not installing python3, but we can easily set up the installation.</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="nb">sudo </span>yum <span class="nb">install </span>python3
<span class="err">$</span>
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ sudo yum install python3</code></pre></figure>
<blockquote>
<p>And Python3 libraries for development</p>
</blockquote>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">sudo </span>yum <span class="nb">install </span>python3-devel
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">sudo yum install python3-devel</code></pre></figure>
<p><br /></p>
@ -727,8 +720,7 @@
<p><a href="https://httpd.apache.org/">Apache</a> is available within CentOSs default software repositories, which means you can install it with the <code class="highlighter-rouge">yum</code> package manager.</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="nb">sudo </span>yum <span class="nb">install </span>httpd
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ sudo yum install httpd</code></pre></figure>
<p><br /></p>
@ -736,17 +728,16 @@
<p><br /></p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="c"># this cmd will start the server</span>
<span class="nv">$ </span><span class="nb">sudo </span>systemctl start httpd
<span class="err">$</span>
<span class="nv">$ </span><span class="c"># test server status</span>
<span class="nv">$ </span><span class="nb">sudo </span>systemctl status httpd
<span class="err">$</span>
<span class="nv">$ </span><span class="c"># access the default page with `lynx`</span>
<span class="nv">$ </span><span class="nb">sudo </span>yum <span class="nb">install </span>lynx
<span class="err">$</span>
<span class="nv">$ </span>lynx http://localhost
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ # this cmd will start the server
$ sudo systemctl start httpd
$
$ # test server status
$ sudo systemctl status httpd
$
$ # access the default page with `lynx`
$ sudo yum install lynx
$
$ lynx http://localhost</code></pre></figure>
<p><br /></p>
@ -754,11 +745,10 @@
<p>Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser.</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="nb">sudo </span>yum <span class="nb">install </span>nodejs
<span class="err">$</span>
<span class="nv">$ </span><span class="c"># check the version</span>
<span class="nv">$ </span>node <span class="nt">--version</span>
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ sudo yum install nodejs
$
$ # check the version
$ node --version</code></pre></figure>
<p><br /></p>
@ -766,11 +756,10 @@
<p>The yarn is an advanced package management software for Node.js applications. It is a fast, secure, and reliable alternative that any other Nodejs package manager.</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="nb">sudo </span>npm <span class="nb">install </span>yarn <span class="nt">-g</span>
<span class="err">$</span>
<span class="nv">$ </span><span class="c"># check the version</span>
<span class="nv">$ </span>yarn <span class="nt">-v</span>
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ sudo npm install yarn -g
$
$ # check the version
$ yarn -v</code></pre></figure>
<p><br /></p>
@ -779,8 +768,7 @@
<p>RHEL 8 does not officially support Docker; in this section, we will show how to install the new set of container tools as well as the old lady, docker package. The docker package is replaced by the Container Tools module, which consists of tools such as Podman, Buildah, Skope, and several others.</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>dnf module <span class="nb">install</span> <span class="nt">-y</span> container-tools
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ dnf module install -y container-tools</code></pre></figure>
<p><br /></p>
@ -789,10 +777,9 @@
<p>Now install docker from the official repositories by running the following commands. Here, the yum-utils package provides the yum-config-manager utility.</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>dnf <span class="nb">install </span>yum-utils
<span class="nv">$ </span>yum-config-manager <span class="nt">--add-repo</span> https://download.docker.com/linux/centos/docker-ce.repo
<span class="nv">$ </span>dnf <span class="nb">install </span>containerd.io docker-ce docker-ce-cli
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ dnf install yum-utils
$ yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
$ dnf install containerd.io docker-ce docker-ce-cli</code></pre></figure>
<p><br /></p>
@ -803,15 +790,15 @@
<p>To install DNF on RHEL/CentOS 7 systems, you need to set up and enable <code class="highlighter-rouge">epel</code> Yum repository before installing DNF</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="c"># Initial Setup</span>
<span class="nv">$ </span>yum <span class="nb">install </span>epel-release
<span class="err">$</span>
<span class="nv">$ </span><span class="c"># Install `DNF` tool</span>
<span class="nv">$ </span>yum <span class="nb">install </span>dnf
<span class="err">$</span>
<span class="nv">$ </span><span class="c"># test the installation</span>
<span class="nv">$ </span>dnf help
</code></pre></div></div>
<figure class="highlight"><pre><code class="language-html" data-lang="html">$ # Initial Setup
$ yum install epel-release
$
$ # Install `DNF` tool
$ yum install dnf
$
$ # test the installation
$ dnf help</code></pre></figure>
</main>
</div>