<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Centos 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/centos-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 16 Jun 2021 16:15:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</title>
		<link>https://www.osradar.com/install-postgresql-13-centos-8/</link>
					<comments>https://www.osradar.com/install-postgresql-13-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 18 Jun 2021 23:25:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13249</guid>

					<description><![CDATA[<p>PostgreSQL is one of the most popular database management systems in the world. Its robustness, high availability, and ease of installation make it perhaps the most advanced in the world. Despite easy installation, not always many users do. So, in this post, I will show you how to install PostgreSQL 13 on CentOS 8 / [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-13-centos-8/">How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PostgreSQL is one of the most popular database management systems in the world. Its robustness, high availability, and ease of installation make it perhaps the most advanced in the world. Despite easy installation, not always many users do. So, in this post, I will show you how to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8. In addition, we&#8217;ll show you the most basic configurations. At the end of the post, you will have a PostgreSQL installation ready to start working.</p>
<h2>Install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>Both RHEL 8 and its derivatives include <a href="https://www.osradar.com/tag/postgresql/">PostgreSQL</a> 10 in their repositories. However, we already have available version 13. And it is recommended to install it because thanks to it, we can enjoy interesting news and improvements in the performance of the application. Important, if we are going to store large quantities of records.</p>
<p>So first, open a terminal session. Or if you are using a server connect to it using ssh.</p>
<pre>:~$ ssh [your-user]@[your-host]</pre>
<p>Then log in as the root user.</p>
<pre>:~$ su
:~#</pre>
<p>The best way to install PostgreSQL 13 on CentOS 8, RHEL 8 and Oracle Linux 8 is to add the official PostgreSQL refill. Not only is it easy, but also safe and the possibility to be always up to date.</p>
<p>To do this, run the following command:</p>
<pre>:~# dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm</pre>
<figure id="attachment_13268" aria-describedby="caption-attachment-13268" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13268" src="https://www.osradar.com/wp-content/uploads/2019/08/1-23.jpeg" alt="1.- Add the PostgreSQL repository" width="1366" height="355" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-23.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-300x78.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-768x200.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-1024x266.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-696x181.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-1068x278.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13268" class="wp-caption-text">1.- Add the PostgreSQL repository</figcaption></figure>
<p>Then, disable the PostgreSQL module on CentOS 8.</p>
<pre>:~# dnf module disable postgresql</pre>
<p>Now, install PostgreSQL 13 on CentOS 8.</p>
<pre>:~# dnf install postgresql13-server postgresql13</pre>
<figure id="attachment_30666" aria-describedby="caption-attachment-30666" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30666 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/2-23.png" alt="2.- Install PostgreSQL 13 8 on AlmaLinux OS 8 / CentOS 8" width="1364" height="435" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-23.png 1364w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-300x96.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-1024x327.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-768x245.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-696x222.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-1068x341.png 1068w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-30666" class="wp-caption-text">2.- Install PostgreSQL 13 8 on AlmaLinux OS 8 / CentOS 8</figcaption></figure>
<p>After that, let us configure it.</p>
<h2>Configure PostgreSQL on CentOS / RHEL 8 / Oracle Linux 8</h2>
<h3>Initialize PostgreSQL database and start the service</h3>
<p>After installing it, the first thing to do is to initialize the database. To achieve this, it is necessary to execute the following command:</p>
<pre>:~# /usr/pgsql-13/bin/postgresql-13-setup initdb
Initializing database ... OK</pre>
<p>With this, we will have already started the initial database. At this point, the PostgreSQL service is not enable, so you can&#8217;t use it yet. Then you have to do it.</p>
<pre>:~# systemctl enable postgresql-13</pre>
<p>Then, if you want PostgreSQL to start along with the system run this command:</p>
<pre>:~# systemctl start postgresql-13</pre>
<p>To check that everything is going well, check the status of the service:</p>
<pre>:~# systemctl status postgresql-13</pre>
<figure id="attachment_30667" aria-describedby="caption-attachment-30667" style="width: 1167px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30667 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/3-22.png" alt="3.- PostgreSQL status" width="1167" height="481" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-22.png 1167w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-300x124.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-1024x422.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-768x317.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-696x287.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-1068x440.png 1068w" sizes="(max-width: 1167px) 100vw, 1167px" /><figcaption id="caption-attachment-30667" class="wp-caption-text">3.- PostgreSQL status</figcaption></figure>
<p>As you can see, everything&#8217;s fine.</p>
<h3>Change the password to the &#8220;postgres&#8221; user and allow the remote connections</h3>
<p>During the installation of PostgreSQL, a new user called postgres is created. The problem is that you do not define a password, so it makes you vulnerable. To avoid problems, it is convenient to create a password.</p>
<p>To do this, just use the Unix passwd command.</p>
<pre>:~# passwd postgres</pre>
<p>There you will have to enter the password twice. If both are effective, the final change will be made.</p>
<p>Now, we have to allow access to remote connections. The client must be installed on each of the systems that will access PostgreSQL. It will depend on each operating system.</p>
<p>Then, a good security measure is to specify the hosts that can access it. Of course, if the data will be served on the Internet, then it is necessary to allow all the accesses.</p>
<pre>:~# nano /var/lib/pgsql/13/data/postgresql.conf
</pre>
<p>then searches for the listen_addresses line and places the hosts that can access it. If you allow any access, type &#8216;*&#8217;.</p>
<pre>listen_addresses = '[host/IP_adress]'
or
listen_addresses = '*'</pre>
<figure id="attachment_13272" aria-describedby="caption-attachment-13272" style="width: 766px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13272" src="https://www.osradar.com/wp-content/uploads/2019/08/5-10.jpeg" alt="5.- Allow the remote connections" width="766" height="352" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-10.jpeg 766w, https://www.osradar.com/wp-content/uploads/2019/08/5-10-300x138.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-10-696x320.jpeg 696w" sizes="(max-width: 766px) 100vw, 766px" /><figcaption id="caption-attachment-13272" class="wp-caption-text">5.- Allow the remote connections</figcaption></figure>
<p>Then, restart PostgreSQL.</p>
<pre>:~# systemctl restart postgresql-13</pre>
<p>Finally, you have to open the port 5432 on the firewall to allow the connections.</p>
<pre>:~# firewall-cmd --add-port=5432/tcp --permanent
success
:~# firewall-cmd --reload
success</pre>
<p>Now, you can access to the PostgreSQL shell.</p>
<pre>:~# su - postgres
:~# psql</pre>
<p>Now, you can start to work.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is one of the best there is for databases. Thanks to its community spirit, it is possible to find a lot of documentation about it. On the other hand, installing version 13 on CentOS 8, RHEL 8 and Oracle Linux 8 is quite simple as you have seen in this post.</p>
<p>Also, you can read <a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu18-04/" rel="noopener noreferrer">how to install Postgresql on Ubuntu 18.04?</a></p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-13-centos-8/">How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-postgresql-13-centos-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install eSpeak on CentOS 8 / Ubuntu 20.04 / 18.04?</title>
		<link>https://www.osradar.com/install-espeak-on-centos-ubuntu/</link>
					<comments>https://www.osradar.com/install-espeak-on-centos-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 27 Feb 2021 00:30:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[espeak]]></category>
		<category><![CDATA[gespeaker]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[voice]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14311</guid>

					<description><![CDATA[<p>The multimedia section continues to be one of the most requested topics of Linux. Because until now, Linux is master and master of servers. Within the developers, it has a pretty good reputation that competes for face-to-face with Windows and macOS. But in the multimedia section, it has to be said that it is still [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-espeak-on-centos-ubuntu/">How to install eSpeak on CentOS 8 / Ubuntu 20.04 / 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>The multimedia section continues to be one of the most requested topics of Linux. Because until now, Linux is master and master of servers. Within the developers, it has a pretty good reputation that competes for face-to-face with Windows and macOS.  But in the multimedia section, it has to be said that it is still a bit behind the competition. In this sense, open-source projects try to shorten the differences with many new libraries or with software that allows shortening differences. It is also true that the differences lie in the drivers of the new devices and in the applications that can be installed in the system. However, today we will show you how to install eSpeak on CentOS 8 and<a aria-label=" Ubuntu (opens in a new tab)" rel="noreferrer noopener" href="https://www.osradar.com/tag/ubuntu/" target="_blank"> Ubuntu</a> 20.04 / 18.04. With this program, you will be able to transform text to speech and use it in your multimedia or development projects.</p>



<h2>eSpeak to convert text to speech</h2>



<p>In general, we can say that eSpeak is an application written in open-source C that allows transforming the text into a voice file. <strong>In short, it works as a synthesizer</strong>.</p>



<p class="has-text-align-left">The application can be installed in multiple operating systems such as Windows, Linux and macOS. However, in Linux there is a fork called <a href="https://github.com/espeak-ng/espeak-ng/" target="_blank" rel="noreferrer noopener" aria-label="eSpeak NG (opens in a new tab)">eSpeak NG</a> that was born with the aim of facilitating the compilation for unix systems.</p>



<p>eSpeak is quite a wonder. In the first place, because<strong> it supports many languages including the most spoken as English, Cantonese, Japanese and others</strong>.  Also because the audio quality is quite good and is very reliable in its target.</p>



<p>One aspect to keep in mind the application is that it is a tool purely <strong>used in the terminal</strong>. So you have to get to work on it. But do not worry the community has developed a graphical interface for the program called <g class="gr_ gr_5 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="5" data-gr-id="5"><a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="http://www.muflone.com/gespeaker/english/" target="_blank">gespeaker</a></g>.</p>



<p>So, let us install it.</p>



<h3>Install eSpeak on Ubuntu 20.04 / 18.04 / Linux Mint 19/20</h3>



<p>A great advantage is that eSpeak is an application that is available in the official repositories of Ubuntu- So to install it, just use the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install espeak</pre>



<p>Once installed, it will be ready for action. If you don&#8217;t want to use eSpeak from the temrinal, you can install gespeaker which is a graphical interface for the application.</p>



<pre class="wp-block-preformatted">:~$ sudo apt install gespeaker</pre>



<p>And now you can use the application.</p>



<h3>Install eSpeak on CentOS 7 / CentOS 8</h3>



<p>In the case of CentOS 7 and 8, they are also available in the official repositories. So as a root user you run some of these commands depending on which version of CentOS you are running:</p>



<p>For CentOS 7:</p>



<pre class="wp-block-preformatted">:~$ su <br>:~# yum install espeak </pre>



<p>But if you use CentOS 8:</p>



<pre class="wp-block-preformatted">:~$ su
:~# dnf install espeak</pre>



<p>This way, you will have the application running.</p>



<h2>Basic use of eSpeak</h2>



<p>The most basic way to use eSpeak through the console is with the following syntax:</p>



<pre class="wp-block-preformatted">:~$ espeak "[text_to_convert]" -w [output_file] -g [x] -p [x] -s [x] -v [language]</pre>



<p>I&#8217;ll explain briefly. First we invoke the command and pass it the text we want it to &#8220;read&#8221;. With the -w option we simply point to the path of the output file. The -g option is used to set the pause time between words. -p defines the pitch. To define the reading time we use the option -s and finally we set the language of the reading.</p>



<p>An example would be the following:</p>



<pre class="wp-block-preformatted">:~$ espeak "Hello welcome to osradar" -w /tmp/output.wav -g 10 -p 80 -s 100 -v en-uk</pre>



<p>Then, open the file with <a rel="noreferrer noopener" aria-label="VLC (opens in a new tab)" href="https://www.osradar.com/how-to-add-plugins-on-vlc-media-player/" target="_blank">VLC</a> or another media player.</p>



<p>If you want to use the graphical interface, just install it. This is how it looks.</p>



<figure class="wp-block-image"><img loading="lazy" width="902" height="501" src="https://www.osradar.com/wp-content/uploads/2019/10/1-5.png" alt="1.- Install espeak on CentOS 8 / Ubuntu 20.04 / 18.04" class="wp-image-14313" srcset="https://www.osradar.com/wp-content/uploads/2019/10/1-5.png 902w, https://www.osradar.com/wp-content/uploads/2019/10/1-5-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/1-5-768x427.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/1-5-696x387.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/1-5-756x420.png 756w" sizes="(max-width: 902px) 100vw, 902px" /><figcaption>1.- Install espeak on CentOS 8 / Ubuntu 20.04 / 18.04</figcaption></figure>



<p>And enjoy it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-espeak-on-centos-ubuntu/">How to install eSpeak on CentOS 8 / Ubuntu 20.04 / 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-espeak-on-centos-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Git from the source code on CentOS 8</title>
		<link>https://www.osradar.com/install-git-from-the-source-code-centos-8/</link>
					<comments>https://www.osradar.com/install-git-from-the-source-code-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 25 Feb 2021 00:16:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28598</guid>

					<description><![CDATA[<p>Hello, friends. Git is one of the most popular tools among developers. It is almost a must to use it in the development of any application and although it has a lot of support on Linux, it is also true that many prefer other means of installation. So, in this post, you will learn how [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-from-the-source-code-centos-8/">Install Git from the source code on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Git is one of the most popular tools among developers. It is almost a must to use it in the development of any application and although it has a lot of support on Linux, it is also true that many prefer other means of installation. So, in this post, you will learn how to install Git from the source code on CentOS 8.</p>



<p><a href="https://git-scm.com/">Git</a> is a free and open-source distributed version control system. It is perhaps the most popular within the branch as millions of developers use it to control software versions. Ease of use, community support, and efficient version control are the main features of Git. Also, it is open-source and free, which makes it ideal for all projects.</p>



<h2 id="why-should-i-install-a-program-from-the-source-code?"><a href="#why-should-i-install-a-program-from-the-source-code?" name="why-should-i-install-a-program-from-the-source-code?"></a>Why should I install a program from the source code?</h2>



<p>The answer to this question can be summed up as efficiency. When we install a program from the source code, only what is necessary to work according to our system and hardware is installed. This makes it faster and more efficient.</p>



<p>On the other hand, there is a security issue. When a package comes already done and we install it, at the end we won’t know who compiled it and under what parameters it was done. This is not the end of the world because we know that in Linux, the repositories are quite taken care of by the developers of the distributions, but, indeed, it is not compiled specifically for us.</p>



<p>Therefore, if you are thinking of using it in a company or a personal project, compiling it can assure you even more efficiency and security.</p>



<p>Finally, learning to compile packages is a great help for working with Linux and can also be used in other areas.</p>



<h2 id="install-git-from-the-source-code-on-centos-8"><a href="#install-git-from-the-source-code-on-centos-8" name="install-git-from-the-source-code-on-centos-8"></a>Install Git from the source code on CentOS 8</h2>



<p>The procedure is quite simple. First, open a terminal and update CentOS 8.</p>



<pre class="wp-block-preformatted">dnf update</pre>



<p><strong>Note in this post, we will use the root user. If your user can use sudo, you can run the commands with root privileges.</strong></p>



<p>After that, install the required libraries and dependencies.</p>



<pre class="wp-block-preformatted">dnf install gettext-devel openssl-devel perl-CPAN perl-devel perl-devel zlib-devel gcc autoconf curl-devel expat-devel gettext-devel wget tar</pre>



<p>Next, download the source code from Git. At the time of writing this post, the latest stable version is <code>2.30.1</code>.</p>



<pre class="wp-block-preformatted">wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.1.tar.gz -O git.tar.gz
--2021-02-22 20:58:12--  https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.1.tar.gz
Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 2604:1380:2001:3900::1, 147.75.101.1
Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|2604:1380:2001:3900::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9864833 (9.4M) [application/x-gzip]
Saving to: ‘git.tar.gz’

git.tar.gz                                 100%[=====================================================================================>]   9.41M  --.-KB/s    in 0.1s    

2021-02-22 20:58:12 (73.6 MB/s) - ‘git.tar.gz’ saved [9864833/9864833]
</pre>



<p>Next, decompress the archive:</p>



<pre class="wp-block-preformatted">tar -vzxf git.tar.gz</pre>



<p>Go to the folder that is generated:</p>



<pre class="wp-block-preformatted">cd git-*</pre>



<p>And from there configure the compilation.</p>



<pre class="wp-block-preformatted">make prefix=/usr/local all</pre>



<p>And at the end, perform the installation</p>



<pre class="wp-block-preformatted">make prefix=/usr/local install</pre>



<p>When the process is finished, Git will be installed. To test it, run the command <code>git</code>:</p>



<pre class="wp-block-preformatted">git --version</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">git version 2.30.1</pre>



<p>This will install <a href="https://www.osradar.com/how-to-install-git-from-the-source-code-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">Git from the source code</a>. To upgrade, you have to repeat these steps with the new version.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Perhaps compiling the source code of an application yourself is not the most direct way to install it, but it is the most efficient and secure. So it’s always good to do so when there are not too many complications.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-git-from-the-source-code-centos-8/">Install Git from the source code on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-git-from-the-source-code-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to migrate from CentOS 8 to CentOS Stream?</title>
		<link>https://www.osradar.com/migrate-from-centos-8-to-centos-stream/</link>
					<comments>https://www.osradar.com/migrate-from-centos-8-to-centos-stream/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 05 Jan 2021 09:41:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[centos stream]]></category>
		<category><![CDATA[migrating]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27116</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we will show you how to migrate from CentOS 8 to CentOS Stream quickly. This tutorial is quite simple but it will be useful for many people due to the latest events. As we know, the end of the year 2020, in the Linux world, was marked by the death [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/migrate-from-centos-8-to-centos-stream/">How to migrate from CentOS 8 to CentOS Stream?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, we will show you how to migrate from CentOS 8 to CentOS Stream quickly. This tutorial is quite simple but it will be useful for many people due to the latest events.</p>



<p>As we know, the end of the year 2020, in the Linux world, was marked by <a href="https://www.osradar.com/centos-linux-8-will-be-discontinued/" target="_blank" rel="noreferrer noopener">the death of CentOS 8</a> as we know it. Of course, this death will not be consummated until December 2021 but it has opened many questions in the world of servers.</p>



<p>From that date, we will be invited to leap <a href="https://www.centos.org/" target="_blank" rel="noreferrer noopener">CentOS</a> stream and the development model that has given us so much joy will disappear. That is, there will be no CentOS 9. And CentOS Stream will be a kind of Red Hat Beta.</p>



<p>For desktop users the change may not seem negative, or it may even seem positive because CentOS Stream will have more updates and newer packages. However, in the server environment where CentOS dominates along with Debian there is no need for new packages, but rather for <a href="https://www.osradar.com/opinion-development-focus-changes-for-centos/" target="_blank" rel="noreferrer noopener">a stable and supported static development model</a> for many years.</p>



<p>So, in this tutorial you will learn how to make the leap that sooner or later many will have to make.</p>



<h2>How to migrate from CentOS 8 to CentOS Stream</h2>



<p>The process is really simple but many system packages are updated so keep this in mind.</p>



<p>Open a terminal and log in as a root user or a user using <a href="https://www.osradar.com/how-to-enable-sudo-on-centos-8/" target="_blank" rel="noreferrer noopener">sudo</a>.</p>



<p>Install the package that allows you to make the jump to CentOS Stream</p>



<pre class="wp-block-preformatted">dnf install centos-release-stream
CentOS Linux 8 - AppStream                                                                                                               4.6 kB/s | 4.3 kB     00:00    
 CentOS Linux 8 - AppStream                                                                                                                12 MB/s | 6.3 MB     00:00    
 CentOS Linux 8 - BaseOS                                                                                                                   94 kB/s | 3.9 kB     00:00    
 CentOS Linux 8 - BaseOS                                                                                                                   19 MB/s | 2.3 MB     00:00    
 CentOS Linux 8 - Extras                                                                                                                   43 kB/s | 1.5 kB     00:00    
 CentOS Linux 8 - Extras                                                                                                                  238 kB/s | 8.6 kB     00:00    
 Dependencies resolved.
  Package                                         Architecture                     Version                                         Repository                        Size
 Installing:
  centos-release-stream                           x86_64                           8.1-1.1911.0.7.el8                              extras                            11 k
 Transaction Summary
 Install  1 Package
 Total download size: 11 k
 Installed size: 6.6 k
 Is this ok [y/N]:</pre>



<p>Then, change the CentOS 8 repositories to CentOS Stream</p>



<pre class="wp-block-preformatted">dnf swap centos-{linux,stream}-repos
CentOS-Stream - AppStream                                                                                                                 25 MB/s | 6.4 MB     00:00    
 CentOS-Stream - Base                                                                                                                      15 MB/s | 2.4 MB     00:00    
 CentOS-Stream - Extras                                                                                                                   103 kB/s | 7.0 kB     00:00    
 Dependencies resolved.
  Package                                          Architecture                      Version                               Repository                                Size
 Installing:
  centos-stream-release                            noarch                            8.4-1.el8                             Stream-BaseOS                             21 k
      replacing  centos-linux-release.noarch 8.3-1.2011.el8
      replacing  centos-release-stream.x86_64 8.1-1.1911.0.7.el8
  centos-stream-repos                              noarch                            8-2.el8                               Stream-BaseOS                             19 k
 Removing:
  centos-linux-repos                               noarch                            8-2.el8                               @BaseOS                                   26 k
 Transaction Summary
 Install  2 Packages
 Remove   1 Package
 Total download size: 40 k
 Is this ok [y/N]:</pre>



<p>At the end, it carries out the migration by executing the following command:</p>



<pre class="wp-block-preformatted">dnf distro-sync</pre>



<p>At the end you can verify the system change by running:</p>



<pre class="wp-block-preformatted">cat /etc/centos-release</pre>



<p>And you&#8217;ll get a screen output like this:</p>



<pre class="wp-block-preformatted">CentOS Stream release 8</pre>



<p>So, enjoy it.</p>



<h2> </h2>
<p>The post <a rel="nofollow" href="https://www.osradar.com/migrate-from-centos-8-to-centos-stream/">How to migrate from CentOS 8 to CentOS Stream?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/migrate-from-centos-8-to-centos-stream/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Open vSwitch on CentOS 8 &#124; RHEL 8</title>
		<link>https://www.osradar.com/how-to-install-open-vswitch-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-open-vswitch-on-centos-8-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 17 Aug 2020 06:15:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[how to 2020]]></category>
		<category><![CDATA[how to configure open vswitch]]></category>
		<category><![CDATA[How To Install Open vSwitch on CentOS 8 | RHEL 8]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[Open vswitch installation]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20895</guid>

					<description><![CDATA[<p>In this tutorial you&#8217;ll cover the installation of Open vSwitch on CentOS 8/REHL 8. Follow the complete guide to learn that how to install Open vSwtich on CentOS 8. Before proceeding further let&#8217;s have a short introduction about the Open vSwitch. Introduction: Safety appliance might permit packets among some interfaces to be forwarded in layer [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-open-vswitch-on-centos-8-rhel-8/">How To Install Open vSwitch on CentOS 8 | RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial you&#8217;ll cover the installation of Open vSwitch on CentOS 8/REHL 8. Follow the complete guide to learn that how to install Open vSwtich on CentOS 8. Before proceeding further let&#8217;s have a short introduction about the Open vSwitch.</p>



<h3><strong>Introduction:</strong></h3>



<p>Safety appliance might permit packets among some interfaces to be forwarded in layer 2 (referred to as transparent mode), and packets among some interfaces to be forwarded in layer three (referred to as routing mode), in particular depending on specific requirement. To facilitate a flexible configuration of hybrid mode of layer 2 and layer3, gadget introduces the concept of Virtual Switch (vswitch). </p>



<p>By default system ships with a vswitch called vswitch1. each time you create a vswitch, gadget will create a corresponding vswitch interface (vswitchIF) for the vswitch mechanically. You could bind an interface to a vswitch by binding that interface to a safety sector, and then binding the security zone to the vswitch.</p>



<p>A vSwitch acts as a layer 2 forwarding zone, and every vswitch has its personal independent MAC address, so the packets of various interfaces in a single vswitch might be forwarded in line with layer 2 forwarding rules. You can configure policy regulations without problems in a vswitch. A vswitchif virtually acts as a switch uplink interface, allowing packets forwarding among layer 2 and layer 3.</p>



<p>Some of the important features of Open vSwitch are given below:</p>



<ul><li>Visibility into inter-VM communication via NetFlow, sFlow(R), IPFIX, SPAN, RSPAN, and GRE-tunneled mirrors</li><li>LACP (IEEE 802.1AX-2008)</li><li>Standard 802.1Q VLAN model with trunking</li><li>Multicast snooping</li><li>IETF Auto-Attach SPBM and rudimentary required LLDP support</li><li>BFD and 802.1ag link monitoring</li><li>STP (IEEE 802.1D-1998) and RSTP (IEEE 802.1D-2004)</li><li>Fine-grained QoS control</li><li>Support for HFSC qdisc</li><li>Multi-table forwarding pipeline with flow-caching engine</li><li>Forwarding layer abstraction to ease porting to new software and hardware platforms</li></ul>



<p>Now, we&#8217;ll move towards the installation process.</p>



<h3><strong>Step 1: Install Open vSwitch on CentOS 8 / RHEL 8</strong></h3>



<p>Add OpenStack Repository to install the Open vSwtich on CentOS 8 / REHL 8. Type the below command in your terminal.</p>



<h4><strong>On CentOS 8:</strong></h4>



<pre class="wp-block-verse">sudo yum install -y epel-release<br>sudo yum install -y centos-release-openstack-train</pre>



<h4><strong>On RHEL 8</strong>:</h4>



<pre class="wp-block-verse">sudo subscription-manager repos --enable=openstack-16-for-rhel-8-x86_64-rpms<br>sudo subscription-manager repos --enable=fast-datapath-for-rhel-8-x86_64-rpms<br>sudo subscription-manager repos --enable=rhel-8-server-optional-rpms</pre>



<p>For those users having no Red Hat OpenStack subscription, can use RDO:</p>



<pre class="wp-block-verse">sudo subscription-manager repos --enable=rhel-8-server-optional-rpms<br>sudo sudo yum install https://rdoproject.org/repos/rdo-release.rpm</pre>



<p>Finally hit the below command to install the Open vSwitch on CentOS 8 / REHL 8.</p>



<pre class="wp-block-verse">sudo yum install openvswitch libibverbs</pre>



<p>Press<strong> &#8220;Y&#8221;</strong> when prompted.</p>



<h5><strong>CentOS 8:</strong></h5>



<pre class="wp-block-verse">[sabi@localhost ~]$<strong> sudo yum install openvswitch libibverbs</strong>
[sudo] password for sabi:
Last metadata expiration check: 0:05:07 ago on Sat 08 Aug 2020 01:21:33 AM EDT.
Package libibverbs-26.0-8.el8.x86_64 is already installed.
Dependencies resolved.
Package Arch Version Repository Size
Installing:
openvswitch x86_64 2.12.0-1.1.el8 centos-openstack-train 2.0 M
Transaction Summary
Install 1 Package
Total download size: 2.0 M
Installed size: 5.7 M
Is this ok [y/N]: <strong>y</strong>
Downloading Packages:
openvswitch-2.12.0-1.1.el8.x86_64.rpm 264 kB/s | 2.0 MB 00:07
Total 238 kB/s | 2.0 MB 00:08
warning: /var/cache/dnf/centos-openstack-train-ceeb4cd59b18ee21/packages/openvswitch-2.12.0-1.1.el8.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 764429e6: NOKEY
CentOS- 8 - OpenStack train 1.0 MB/s | 1.0 kB 00:00
Importing GPG key 0x764429E6:
Userid : "CentOS Cloud SIG (http://wiki.centos.org/SpecialInterestGroup/Cloud) <a href="mailto:security@centos.org">security@centos.org</a>"
Fingerprint: 736A F511 6D9C 40E2 AF6B 074B F9B9 FEE7 7644 29E6
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
Is this ok [y/N]: <strong>y</strong></pre>



<h5><strong>RHEL 8:</strong></h5>



<pre class="wp-block-verse">Updating Subscription Management repositories.
RDO CentOS-7 - QEMU EV 208 kB/s | 18 kB 00:00
OpenStack Train Repository 23 MB/s | 3.9 MB 00:00
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
openvswitch x86_64 1:2.12.0-1.el7 openstack-train 2.0 M
Installing dependencies:
compat-openssl10 x86_64 1:1.0.2o-3.el8 rhel-8-for-x86_64-appstream-rpms 1.1 M
dpdk x86_64 18.11.2-3.el8 rhel-8-for-x86_64-appstream-rpms 1.8 M
make x86_64 1:4.2.1-10.el8 rhel-8-for-x86_64-baseos-rpms 498 k
python2 x86_64 2.7.17-1.module+el8.2.0+4561+f4e0d66a rhel-8-for-x86_64-appstream-rpms 108 k
python2-libs x86_64 2.7.17-1.module+el8.2.0+4561+f4e0d66a rhel-8-for-x86_64-appstream-rpms 6.0 M
python2-pip-wheel noarch 9.0.3-16.module+el8.2.0+5478+b505947e rhel-8-for-x86_64-appstream-rpms 1.2 M
python2-setuptools-wheel noarch 39.0.1-11.module+el8.1.0+3446+c3d52da3 rhel-8-for-x86_64-appstream-rpms 289 k
Installing weak dependencies:
python2-pip noarch 9.0.3-16.module+el8.2.0+5478+b505947e rhel-8-for-x86_64-appstream-rpms 1.9 M
python2-setuptools noarch 39.0.1-11.module+el8.1.0+3446+c3d52da3 rhel-8-for-x86_64-appstream-rpms 643 k
Enabling module streams:
python27 2.7
Transaction Summary
Install 10 Packages
Total download size: 15 M
Installed size: 54 M
Is this ok [y/N]: y
…
1.0 MB/s | 1.0 kB 00:00
Importing GPG key 0x764429E6:
Userid : "CentOS Cloud SIG (http://wiki.centos.org/SpecialInterestGroup/Cloud) <a href="mailto:security@centos.org">security@centos.org</a>"
Fingerprint: 736A F511 6D9C 40E2 AF6B 074B F9B9 FEE7 7644 29E6
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
Is this ok [y/N]: y</pre>



<p>Then start &amp; enable the Open vSwitch services.</p>



<pre class="wp-block-verse">sudo systemctl enable --now openvswitch</pre>



<p>Now, verify the status by hitting.</p>



<pre class="wp-block-verse">sudo systemctl status openvswitch</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-verse">[sabi@localhost ~]$ sudo systemctl status openvswitch
[sudo] password for sabi:
● openvswitch.service - Open vSwitch
Loaded: loaded (/usr/lib/systemd/system/openvswitch.service; enabled; vendor&gt;
Active:<strong> active (exited) </strong>since Sat 2020-08-08 01:39:42 EDT; 17min ago
Process: 136991 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 136991 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 15464)
Memory: 0B
CGroup: /system.slice/openvswitch.service
Aug 08 01:39:42 localhost.localdomain systemd[1]: Starting Open vSwitch…
Aug 08 01:39:42 localhost.localdomain systemd[1]: Started Open vSwitch.
lines 1-11/11 (END)</pre>



<p>And then type the below command to verify that if it is usable or not.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ <strong>sudo ovs-vsctl show</strong>
b42363e3-4690-4b2c-83fd-f2e6dc44031e
ovs_version: "2.12.0"</pre>



<p>If you want to configure the Open vSwitch type the following command in your terminal to install os-net-config .</p>



<pre class="wp-block-verse">sudo yum install os-net-config</pre>



<p>So, this is how you can install Open vSwitch on CentOS 8 / RHEL 8. </p>



<p>After it in the next tutorial we&#8217;ll cover the <a href="https://www.osradar.com/?p=20893" target="_blank" rel="noreferrer noopener">configuraiton of Open vSwitch on CentOS 8 / RHEL 8</a>.</p>



<p>If you&#8217;ve any queries regarding this guide, feel free to ask in comment section. We&#8217;ll try to help you solve your problems ASAP!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-open-vswitch-on-centos-8-rhel-8/">How To Install Open vSwitch on CentOS 8 | RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-open-vswitch-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to upgrade from CentOS 8.1 to CentOS 8.2</title>
		<link>https://www.osradar.com/how-to-upgrade-from-centos-8-1-to-centos-8-2/</link>
					<comments>https://www.osradar.com/how-to-upgrade-from-centos-8-1-to-centos-8-2/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 17 Jun 2020 23:14:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=21091</guid>

					<description><![CDATA[<p>One of the best things about Linux is that we can upgrade between versions with almost no problems. Of course, on CentOS it is also possible to do this. And it&#8217;s worth doing because CentOS 8.2 is available and loaded with new features from Red Hat Enterprise Linux. In this post, we will explain how [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-upgrade-from-centos-8-1-to-centos-8-2/">How to upgrade from CentOS 8.1 to CentOS 8.2</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>One of the best things about Linux is that we can upgrade between versions with almost no problems. Of course, on CentOS it is also possible to do this. And it&#8217;s worth doing because <a href="https://www.osradar.com/centos-8-2-available/" target="_blank" rel="noreferrer noopener">CentOS 8.2 is available</a> and loaded with new features from <a href="https://www.osradar.com/red-hat-enterprise-linux-8-2-available/" target="_blank" rel="noreferrer noopener">Red Hat Enterprise Linux</a>. In this post, we will explain how to upgrade from CentOS 8.1 to CentOS 8.2</p>



<h2>Why upgrade?</h2>



<p>Constantly updating a Linux distribution is a guarantee that you will always be safe. This security is provided by the various patches and updates of critical packages that are released from time to time.</p>



<p>In this sense, CentOS is mostly used as the operating system for many servers. These servers are in charge of being the center of many networks where a lot of information circulates. It is therefore important that security policies are up to date.</p>



<p>So let&#8217;s do it.</p>



<h2>Upgrade from CentOS 8.1 to CentOS 8.2</h2>



<p>To update a Linux operating system, you need to be a root user. So, open a terminal and become a root user.</p>



<pre class="wp-block-preformatted">:~$ su</pre>



<p>Next, check out the version of CentOS 8 you&#8217;re running.</p>



<pre class="wp-block-preformatted">:~# cat /etc/centos-release</pre>



<p>And you&#8217;ll have a screen output like the one below:</p>



<pre class="wp-block-preformatted">CentOS Linux release 8.1.1911 (Core)</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="543" height="96" src="https://www.osradar.com/wp-content/uploads/2020/06/1-6.png" alt="1.- Check the centos version" class="wp-image-21210" srcset="https://www.osradar.com/wp-content/uploads/2020/06/1-6.png 543w, https://www.osradar.com/wp-content/uploads/2020/06/1-6-300x53.png 300w" sizes="(max-width: 543px) 100vw, 543px" /><figcaption>1.- Check the centos version</figcaption></figure>



<p>And it&#8217;s also a good idea to check the Kernel version. To do this, execute this other command:</p>



<pre class="wp-block-preformatted">:~# uname -r</pre>



<p>In my case, this is the screen output I got:</p>



<pre class="wp-block-preformatted">4.18.0-147.8.1.el8_1.x86_64</pre>



<p>Now all you have to do is make a general system update using dnf.</p>



<pre class="wp-block-preformatted">:~# dnf update</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2020/06/2-5-1024x536.png" alt="2.- Upgrade from CentOS 8.1 to CentOS 8.2" class="wp-image-21211" srcset="https://www.osradar.com/wp-content/uploads/2020/06/2-5-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2020/06/2-5-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/2-5-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2020/06/2-5-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2020/06/2-5-1068x559.png 1068w, https://www.osradar.com/wp-content/uploads/2020/06/2-5.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Upgrade from CentOS 8.1 to CentOS 8.2</figcaption></figure>



<p>Once the whole process is over, reboot the system.</p>



<pre class="wp-block-preformatted">:~# reboot</pre>



<p>When the system boots, become root again and check the system version:</p>



<pre class="wp-block-preformatted">:~# cat /etc/centos-release</pre>



<p>This is the screen output:</p>



<pre class="wp-block-preformatted">CentOS Linux release 8.2.2004 (Core)</pre>



<p>And also check the kernel:</p>



<pre class="wp-block-preformatted">:~# uname -r</pre>



<p>And you will get a screen output similar to this:</p>



<pre class="wp-block-preformatted">4.18.0-193.6.3.el8_2.x86_64</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="740" height="123" src="https://www.osradar.com/wp-content/uploads/2020/06/3-6.png" alt="3.- CentOS 8.2 installed" class="wp-image-21212" srcset="https://www.osradar.com/wp-content/uploads/2020/06/3-6.png 740w, https://www.osradar.com/wp-content/uploads/2020/06/3-6-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2020/06/3-6-696x116.png 696w" sizes="(max-width: 740px) 100vw, 740px" /><figcaption>3.- CentOS 8.2 installed</figcaption></figure>



<p>So, this is it. You now have CentOS 8.2 in your system perfectly working and ready.</p>



<p>Enjoy it.</p>



<p>Please share this post, join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a>, and buy us a coffee.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-upgrade-from-centos-8-1-to-centos-8-2/">How to upgrade from CentOS 8.1 to CentOS 8.2</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-upgrade-from-centos-8-1-to-centos-8-2/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Ant on CentOS 8?</title>
		<link>https://www.osradar.com/how-to-install-apache-ant-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-apache-ant-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 14 Apr 2020 23:12:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[apache ant]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[java]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19216</guid>

					<description><![CDATA[<p>Apache Ant functions as an important tool in the development of Java applications. With this tool, you will not have to worry about repetitive tasks in the process of compiling, and generating packages from source code in Java projects. So, this post is about installing Apaache Ant on CentOS 8. Apache Ant Apache Ant is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-ant-centos-8/">How to install Apache Ant on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Apache Ant functions as an important tool in the development of Java applications. With this tool, you will not have to worry about repetitive tasks in the process of compiling, and generating packages from source code in Java projects. So, this post is about installing Apaache Ant on CentOS 8.</p>
<h2>Apache Ant</h2>
<p><a href="https://ant.apache.org/" target="_blank" rel="noopener noreferrer">Apache Ant</a> is an application created in <a href="https://www.osradar.com/tag/java" target="_blank" rel="noopener noreferrer">Java</a> sponsored by the Apache foundation that allows automating tasks of compilation and construction of projects. As it is made in Java it is common to use it for Java projects.</p>
<p>Thanks to Apache Ant it is possible to save a lot of time in medium size projects. It is similar to the make tool, the difference is that it uses a file called build.xml where you specify the rules that the application will use.</p>
<p>With this in mind, it is very likely that if you develop applications with Java, you will use Ant.</p>
<h2>Let us work</h2>
<h3>Install Java on CentOS 8</h3>
<p>The first step is to install Java. Java is a very popular development platform and is the basis for many projects worldwide.</p>
<p>Apache Ant is built with Java technology. This makes it necessary to install it for it to run.</p>
<p>OpenJDK 11 is available from the CentOS 8 repositories. To find it, run the following command:</p>
<pre>:~$ sudo dnf search openjdk<br>Failed to set locale, defaulting to C.UTF-8<br>Last metadata expiration check: 0:41:14 ago on Mon Apr  6 10:34:18 2020.<br>==================================================================== Name &amp; Summary Matched: openjdk ====================================================================<br>java-11-openjdk-demo.x86_64 : OpenJDK Demos 11<br>java-1.8.0-openjdk-demo.x86_64 : OpenJDK Demos 8<br>java-11-openjdk-jmods.x86_64 : JMods for OpenJDK 11<br>java-11-openjdk-src.x86_64 : OpenJDK Source Bundle 11<br>java-11-openjdk.x86_64 : OpenJDK Runtime Environment 11<br>java-1.8.0-openjdk-src.x86_64 : OpenJDK Source Bundle 8<br>java-11-openjdk.x86_64 : OpenJDK Runtime Environment 11<br>java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment 8<br>java-11-openjdk-javadoc.x86_64 : OpenJDK 11 API documentation<br>java-1.8.0-openjdk-javadoc.noarch : OpenJDK 8 API documentation<br>java-11-openjdk-devel.x86_64 : OpenJDK Development Environment 11<br>java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment 8<br>java-11-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 11<br>java-11-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 11<br>java-1.8.0-openjdk-accessibility.x86_64 : OpenJDK 8 accessibility connector<br>java-1.8.0-openjdk-headless.x86_64 : OpenJDK Headless Runtime Environment 8<br>java-11-openjdk-javadoc-zip.x86_64 : OpenJDK 11 API documentation compressed in single archive<br>java-1.8.0-openjdk-javadoc-zip.noarch : OpenJDK 8 API documentation compressed in single archive<br>======================================================================= Summary Matched: openjdk ========================================================================<br>icedtea-web.noarch : Additional Java components for OpenJDK - Java browser plug-in and Web Start implementation<br><br></pre>
<p>As you can see in the image above, Java 11 is available for installation from the official repositories through the OpenJDK project.</p>
<p>So to install it, run the following command:</p>
<pre>:~$ sudo dnf install java-11-openjdk</pre>
<figure id="attachment_19660" aria-describedby="caption-attachment-19660" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19660" src="https://www.osradar.com/wp-content/uploads/2020/04/1-4.png" alt="1.- Install Java on CentOS 8" width="1365" height="718" srcset="https://www.osradar.com/wp-content/uploads/2020/04/1-4.png 1365w, https://www.osradar.com/wp-content/uploads/2020/04/1-4-300x158.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/1-4-1024x539.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/1-4-768x404.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/1-4-696x366.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/1-4-1068x562.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-19660" class="wp-caption-text">1.- Install Java on CentOS 8</figcaption></figure>
<p>Confirm the installation and it will start.</p>
<p>When it is finished, you can check the operation of Java with the following command:</p>
<pre>~$ java --version<br>openjdk 11.0.6 2020-01-14 LTS<br>OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS)<br>OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, sharing)</pre>
<p>So, Java is correctly installed.</p>
<h3>Download and Install Apache Ant on CentOS 8</h3>
<p>Apache Ant is a project sponsored by the Apache Foundation. This makes the download safe and free to use.</p>
<p>In this case, I will use an Apache mirror to download it.</p>
<pre>:~$ cd /tmp/<br>:~$ wget -c http://mirrors.advancedhosters.com/apache/ant/binaries/apache-ant-1.10.7-bin.zip<br>--2020-04-06 11:18:58--  http://mirrors.advancedhosters.com/apache/ant/binaries/apache-ant-1.10.7-bin.zip<br>Resolving mirrors.advancedhosters.com (mirrors.advancedhosters.com)... 213.174.147.249, 2a02:b48:6:1::2<br>Connecting to mirrors.advancedhosters.com (mirrors.advancedhosters.com)|213.174.147.249|:80... connected.<br>HTTP request sent, awaiting response... 200 OK<br>Length: 10186279 (9.7M) [application/zip]<br>Saving to: 'apache-ant-1.10.7-bin.zip'<br><br>apache-ant-1.10.7-bin.zip                  100%[=====================================================================================&gt;]   9.71M   496KB/s    in 25s     <br><br>2020-04-06 11:19:25 (396 KB/s) - 'apache-ant-1.10.7-bin.zip' saved [10186279/10186279]</pre>
<p>At the time of this tutorial, the latest stable version of Apache Ant is 1.10.7 When a new version is released all you have to do is update the command.</p>
<p>The downloaded version is in ZIP format. To unzip it, use the unzip command. If you don&#8217;t have it downloaded, just install it like this:</p>
<pre>:~$ sudo dnf install unzip</pre>
<p>Now, proceed to decompress it.</p>
<pre>:~$ unzip apache-ant-1.10.7-bin.zip</pre>
<p>And move the folder that is created to another location such as</p>
<pre>:~$ sudo mv apache-ant-1.10.7/ /usr/local/ant</pre>
<p>Now we have to make Ant available as a command to all users of the system. This will make it easy to use and run from any folder.</p>
<pre>:~$ sudo nano /etc/profile</pre>
<p>And add the following lines:</p>
<pre>ANT_HOME="/usr/local/ant"<br>PATH="$PATH:/usr/local/ant/bin"<br>export ANT_HOME<br>export PATH</pre>
<figure id="attachment_19661" aria-describedby="caption-attachment-19661" style="width: 858px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19661" src="https://www.osradar.com/wp-content/uploads/2020/04/2-3.png" alt="2.- Edit the profile file" width="858" height="149" srcset="https://www.osradar.com/wp-content/uploads/2020/04/2-3.png 858w, https://www.osradar.com/wp-content/uploads/2020/04/2-3-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/2-3-768x133.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/2-3-696x121.png 696w" sizes="(max-width: 858px) 100vw, 858px" /><figcaption id="caption-attachment-19661" class="wp-caption-text">2.- Edit the profile file</figcaption></figure>
<p>Then save the changes and close the editor.</p>
<p>Apply the changes made with the command:</p>
<pre>:~$ source /etc/profile</pre>
<p>Now, test it!</p>
<h3>Test the Apache Ant installation</h3>
<p>Once we have configured Ant, we must test if it works. The first test is to show the version of Ant using the command ant.</p>
<pre>:~$ ant -version<br>Apache Ant(TM) version 1.10.7 compiled on September 1 2019</pre>
<p>As you can see, the command works. Now place yourself in any folder and run ant.</p>
<pre>:~$ ant</pre>
<p>You&#8217;ll get the next output on the screen:</p>
<pre>Buildfile: build.xml does not exist!<br>Build failed</pre>
<figure id="attachment_19662" aria-describedby="caption-attachment-19662" style="width: 821px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19662" src="https://www.osradar.com/wp-content/uploads/2020/04/3-3.png" alt="3.- Testing Ant on CentOS 8" width="821" height="122" srcset="https://www.osradar.com/wp-content/uploads/2020/04/3-3.png 821w, https://www.osradar.com/wp-content/uploads/2020/04/3-3-300x45.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/3-3-768x114.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/3-3-696x103.png 696w" sizes="(max-width: 821px) 100vw, 821px" /><figcaption id="caption-attachment-19662" class="wp-caption-text">3.- Testing Ant on CentOS 8</figcaption></figure>
<p>This indicates that the command is working. All that remains is to create a build.xml file with the compilation instructions.</p>
<p>You can also check the command&#8217;s help:</p>
<pre>:~$ ant --help</pre>
<figure id="attachment_19663" aria-describedby="caption-attachment-19663" style="width: 943px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19663" src="https://www.osradar.com/wp-content/uploads/2020/04/4-2.png" alt="4.- Ant help" width="943" height="652" srcset="https://www.osradar.com/wp-content/uploads/2020/04/4-2.png 943w, https://www.osradar.com/wp-content/uploads/2020/04/4-2-300x207.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/4-2-768x531.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/4-2-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2020/04/4-2-696x481.png 696w" sizes="(max-width: 943px) 100vw, 943px" /><figcaption id="caption-attachment-19663" class="wp-caption-text">4.- Ant help</figcaption></figure>
<p>So, enjoy it.</p>
<h2>Conclusion</h2>
<p>Apache Ant is a very important application for many Java developers. So it might be a good idea to have it if you want to start with Java.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-ant-centos-8/">How to install Apache Ant on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-apache-ant-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>CentOS 8 (1911) is available</title>
		<link>https://www.osradar.com/centos8-1911-available/</link>
					<comments>https://www.osradar.com/centos8-1911-available/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 16 Jan 2020 23:21:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[New version]]></category>
		<category><![CDATA[News]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17707</guid>

					<description><![CDATA[<p>Hi, folks. We already know that CentOS is one of the most popular server distributions. So CentOS 8 (1911) is available for download. It comes with many new features and bug fixes and in this post, we will tell you about it. CentOS is a wonder for our servers. Together with Debian and Ubuntu Server, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/centos8-1911-available/">CentOS 8 (1911) is available</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, folks. We already know that CentOS is one of the most popular server distributions. So <strong>CentOS 8 (1911) is available for download</strong>. It comes with many new features and bug fixes and in this post, we will tell you about it.</p>



<p>CentOS is a wonder for our servers. <strong>Together with Debian and Ubuntu Server, they dominate the field of Red Hat and SUSE permission servers</strong>. CentOS (1911) is a collection of all the new features of Red Hat Linux 8.1 because it is based on it.</p>



<p>That&#8217;s why there are many interesting new features such as <strong>support for live kernel patches</strong>. This feature allows you to apply changes caused by patches without having to reboot your computer. This feature is available on Ubuntu or SUSE.</p>



<p>On the other hand, <strong>we also have a new routing protocol stack that supports IPv4 and IPv6</strong>.</p>



<p>However, there are other features to consider:</p>



<ul><li>The development team has modified certain packages. I imagine that to adapt them better to the distribution. Some of them are <a rel="noreferrer noopener" aria-label="Firefox (opens in a new tab)" href="https://www.osradar.com/enable-dns-over-https-firefox/" target="_blank">Firefox</a>, <a rel="noreferrer noopener" aria-label="DHCP (opens in a new tab)" href="https://www.osradar.com/set-up-dhcp-server-debian-9/" target="_blank">DHCP</a>, Plymouth, <a rel="noreferrer noopener" aria-label="httpd (opens in a new tab)" href="https://www.osradar.com/install-lamp-stack-on-oracle-linux-8-rhel-8-centos-8/" target="_blank">httpd</a>, thunderbird, yum, among others.</li><li>You make your debut as an <strong>SELinux policy generator for containers.</strong></li><li>The LUKS2 format <strong>now supports re-encrypting block devices while the devices are in use. </strong></li><li><strong>PHP 7.3, Ruby 2.6 Node.js 12 and Nginx 1.16 are available as new module streams</strong>.</li></ul>



<p>However, there are also <strong>known problems</strong> that warn us:</p>



<ul><li>If you&#8217;re going to use CentOS 8 (1911) in VirtualBox don&#8217;t choose the &#8220;Server with a GUI&#8221; option.</li><li>Installing the VirtualBox Addons will produce an error if your version is 6.0.12/5.2.32 or lower.</li><li>It is also known that PackageKit is unable to resolve local DNF/YUM variables.</li></ul>



<h2>Download CentOS 8 (1911)</h2>



<p>Of course, this new version of CentOS 8 is available for download from the project website. As always it is recommended to use a<a href="https://www.osradar.com/how-to-download-torrents-on-linux/" target="_blank" rel="noreferrer noopener" aria-label=" torrent client (opens in a new tab)"> torrent client</a> so as not to saturate the servers.</p>



<p>Current CentOS 8 users are also urged to upgrade to this version as they will be removing support for the old packages.</p>



<p>If you want more information you can check the <a href="https://wiki.centos.org/Manuals/ReleaseNotes/CentOS8.1911" target="_blank" rel="noreferrer noopener" aria-label="release notes (opens in a new tab)">release notes</a>.</p>



<p>Also share this post and join <a rel="noreferrer noopener" aria-label="our Telegram channel. (opens in a new tab)" href="https://t.me/osradar" target="_blank">our Telegram channel.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/centos8-1911-available/">CentOS 8 (1911) is available</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/centos8-1911-available/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Yii framework on CentOS 8?</title>
		<link>https://www.osradar.com/install-yii-framework-centos-8/</link>
					<comments>https://www.osradar.com/install-yii-framework-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 14 Jan 2020 00:01:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Yii]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17542</guid>

					<description><![CDATA[<p>We know that web development occupies a lot of place in today’s world. In fact, more and more business applications are made with web technology. You can use NodeJS or a programming language like PHP. PHP is perhaps the most popular language for web development although there are other technologies that are increasing in popularity [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yii-framework-centos-8/">How to install Yii framework on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>We know that web development occupies a lot of place in today’s world.  In fact, more and more business applications are made with web technology. You can use NodeJS or a programming language like PHP. PHP  is perhaps the most popular language for web development although there are other technologies that are increasing in popularity at a constant rate like NodeJS. But there is no doubt that PHP is very popular. To make quality applications in PHP you have to use a framework and there are many of those, but today <strong>we will teach you how to install Yii PHP framework on <a href="https://www.osradar.com/tag/centos-8" target="_blank" rel="noreferrer noopener" aria-label="CentOS (opens in a new tab)">CentOS</a> 8.</strong></p>



<p>In order to be pragmatic and flexible, <a href="https://www.yiiframework.com/">Yii PHP</a>  was born. It is a framework for object-oriented PHP development that uses the architectural pattern MVC. What makes it ideal for developing many web applications such as forums, information sites or virtual shopping.</p>



<p>With Yii PHP you will have no licensing problems because it is open source (<a href="http://www.linfo.org/bsdlicense.html">BSD Licence</a>) which makes it ideal for community, educational or long-range projects.</p>



<h2>Install Yii PHP Framework on CentOS 8</h2>



<p>From the project&#8217;s website, we recommend using composer to perform the installation. This is because the framework has many dependencies and Composer is the best for it.</p>



<p>So the first step is to install Composer on CentOS 8</p>



<h3>Install Composer on CentOS 8</h3>



<p>Installing Composer on CentOS 8 is quite simple, but you have to install some previous packages.</p>



<p>So, open a terminal session and run the following:</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install php php-json php-mbstring php-xmlrpc php-soap php-gd php-xml php-cli php-zip curl</pre>



<p>What have we just installed? Well, first of all, PHP so you can interpret Composer. Then, we installed a series of extensions that will also work for Yii. Finally, <a href="https://www.osradar.com/how-to-use-curl-command-linux/" target="_blank" rel="noreferrer noopener" aria-label="curl (opens in a new tab)">curl</a> is a utility that we will use to download Composer.</p>



<p>Then, we proceed to download and install it.</p>



<pre class="wp-block-preformatted">:~$ curl -sS https://getcomposer.org/installer | php</pre>



<p>Next, we will make Composer available from the terminal with the following commands:</p>



<pre class="wp-block-preformatted">:~$ sudo mv composer.phar /usr/local/bin/composer 
:~$ sudo chmod +x /usr/local/bin/composer 
:~$ source ~/.bashrc </pre>



<p>Now, you can check if everything went well with the next command: </p>



<pre class="wp-block-preformatted">:~$ composer -v </pre>



<p>If it shows you the version or helps you, it&#8217;s all right.</p>



<h3>Getting Yii framework on CentOS 8</h3>



<p>Once Composer is properly installed, we can install the Yii framework.</p>



<p>To do so, just use the following command:</p>



<pre class="wp-block-preformatted">:~$ composer create-project --prefer-dist yiisoft/yii2-app-basic example</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="552" src="https://www.osradar.com/wp-content/uploads/2020/01/1-6-1024x552.png" alt="1.- Installing Yii framework on CentOS 8" class="wp-image-17546" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-6-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-779x420.png 779w, https://www.osradar.com/wp-content/uploads/2020/01/1-6.png 1310w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing Yii framework on CentOS 8</figcaption></figure>



<p>This command will download and configure the entire directory structure of Yii making it available to us. In this case, the project is called &#8220;<strong>example</strong>&#8220;, but obviously you can change this.</p>



<p>Remember that when you run this command, it will create a folder with the name of the project in the current location.</p>



<p>By default, Yii allows Composer to handle CSS/Javascript dependencies. If you want Composer not to do it and you want NPM, you have to do the following steps.</p>



<pre class="wp-block-preformatted">:~$ cd [your-project]
:~$ nano composer.json</pre>



<p>And add the following:</p>



<pre class="wp-block-preformatted">"replace": {
    "bower-asset/jquery": ">=1.11.0",
    "bower-asset/inputmask": ">=3.2.0",
    "bower-asset/punycode": ">=1.3.0",
    "bower-asset/yii2-pjax": ">=2.0.0"
},</pre>



<p>As I said, it&#8217;s not mandatory.</p>



<p>To check that everything is in order, we will serve the project.</p>



<p>From the project location, run the following command:</p>



<pre class="wp-block-preformatted">:~$ php yii serve</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="794" height="178" src="https://www.osradar.com/wp-content/uploads/2020/01/2-5.png" alt="2.- Serve the Yii application" class="wp-image-17545" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-5.png 794w, https://www.osradar.com/wp-content/uploads/2020/01/2-5-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-5-768x172.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-5-696x156.png 696w" sizes="(max-width: 794px) 100vw, 794px" /><figcaption>2.- Serve the Yii application</figcaption></figure>



<p>This will allow the project to be displayed in a web browser at <code>http:/localhost:8080</code>. Remember that this port has to be available in the firewall.</p>



<p>However, we can specify a different host and port:</p>



<pre class="wp-block-preformatted">:~$ php yii serve [Ip-address] --port=[port]</pre>



<p>Then open your browser and go to your project and you will see the following:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/01/3-5-1024x506.png" alt="3.- Yii framework on CentOS 8" class="wp-image-17547" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-5-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-850x420.png 850w, https://www.osradar.com/wp-content/uploads/2020/01/3-5.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Yii framework on CentOS 8</figcaption></figure>



<p>So, that is it. You are ready to start creating fantastic web applications with Yii framework.</p>



<h2>Conclusion</h2>



<p>Yii is a less popular framework than Cake or Laravel, but equally powerful. Many websites are made with this framework and the results are fantastic for the developer and the end-user.</p>



<p>On the other hand, the installation of Yii is facilitated thanks to its compatibility with Composer.</p>



<p>Please share this post and join <a rel="noreferrer noopener" aria-label="our Telegram Channel (opens in a new tab)" href="https://t.me/osradar" target="_blank">our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yii-framework-centos-8/">How to install Yii framework on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-yii-framework-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Ruby on Rails on CentOS 8?</title>
		<link>https://www.osradar.com/install-ruby-on-rails-centos-8/</link>
					<comments>https://www.osradar.com/install-ruby-on-rails-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 13 Jan 2020 00:48:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17493</guid>

					<description><![CDATA[<p>In this post, I&#8217;ll show you how to install Ruby on Rails on CentOS 8. Ruby on Rails makes Ruby more popular The truth is that Ruby is still widely used today, but when compared to Python, PHP or Java is far behind. So it is no wonder it is not so easy to learn. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-ruby-on-rails-centos-8/">How to install Ruby on Rails on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>In this post, I&#8217;ll show you how to install Ruby on Rails on CentOS 8.</strong></p>
<h2>Ruby on Rails makes Ruby more popular</h2>
<p>The truth is that Ruby is still widely used today, but when compared to <a href="https://www.osaradar.com/tag/python/" rel="noopener noreferrer">Python</a>, <a href="https://www.osradar.com/tag/php/" rel="noopener noreferrer">PHP</a> or <a href="https://www.osradar.com/tag/java/" rel="noopener noreferrer">Java</a> is far behind. So it is no wonder it is not so easy to learn.</p>
<p>However, thanks to the efficiency of Ruby on Rails, many people have turned their eyes back to this language.<a href="https://rubyonrails.org/" rel="noopener noreferrer"> Ruby on Rails</a> is a fairly robust framework for creating web applications.</p>
<p>Some of the highlights of Ruby on Rails are as follows:</p>
<ul>
<li>It uses many <strong>configuration conventions</strong>. This makes the framework, once installed, ready to work.</li>
<li>In Rails, there are <strong>several ways to do a certain thing</strong>. That is, it makes collaboration easier and the code easier to understand.</li>
<li>With Ruby on Rails, you’ll have a framework that uses the <strong>DRY</strong> (Don’t Repeat Yourself) principle. With this, duplicity is eliminated and it makes it very agile.</li>
<li><strong>Open Source</strong>, so licensing should not be a problem for you.</li>
</ul>
<p>If we add a robust and stable operating system like CentOS to Ruby on Rails, then we have a great combination. So, let us start.</p>
<h2>Install Ruby on CentOS 8</h2>
<p>Obviously the first step is to install Ruby. We recently made a post explaining the process in detail:</p>
<p><a href="https://www.osradar.com/install-ruby-centos-8/" target="_blank" rel="noopener noreferrer">How to install Ruby on CentOS 8?</a></p>
<p>We&#8217;ll be able to continue later.</p>
<h2>Install Ruby on Rails on CentOS 8</h2>
<p>Installing Ruby on Rails on CentOS 8 is made easy by RVM. To install the latest stable version of Ruby on Rails, simply use the following command:</p>
<pre>:~# gem install rails</pre>
<figure id="attachment_17540" aria-describedby="caption-attachment-17540" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17540" src="https://www.osradar.com/wp-content/uploads/2020/01/1-5.png" alt="1.- Install Ruby on Rails on CentOS 8" width="1365" height="716" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-5.png 1365w, https://www.osradar.com/wp-content/uploads/2020/01/1-5-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-5-1024x537.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-5-768x403.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-5-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-5-1068x560.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-5-801x420.png 801w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-17540" class="wp-caption-text">1.- Install Ruby on Rails on CentOS 8</figcaption></figure>
<p>However, we can also specify a specific version:</p>
<pre>~# gem install rails -v [version]</pre>
<p>When the installation is finished, we will be able to consult the installed version.</p>
<pre>:~# rails -v <br />Rails 6.0.2.1</pre>
<p>And that&#8217;s it. As you can see it&#8217;s quite easy to follow the guide. Now you can start making applications with Rails.</p>
<h2>Conclusion</h2>
<p>Ruby on Rails is a framework for creating web applications in a fairly reasonable amount of time. It also has security and robustness as its strong points.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel.</a></p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-ruby-on-rails-centos-8/">How to install Ruby on Rails on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-ruby-on-rails-centos-8/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
