<?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>DB Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/db/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 04 Nov 2018 22:59:46 +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 11 on Fedora 29?</title>
		<link>https://www.osradar.com/how-to-install-postgresql-11-on-fedora-29/</link>
					<comments>https://www.osradar.com/how-to-install-postgresql-11-on-fedora-29/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 05 Nov 2018 02:00:45 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[DB]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6959</guid>

					<description><![CDATA[<p>Fedora is a great Linux distribution and I think we&#8217;ve made that clear. Therefore, it is the one chosen to develop applications and use the database. This article is about how to install PostgreSQL 11 on Fedora 29. PostgreSQL is a database manager relations program quite popular in the world. It is known for its [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-postgresql-11-on-fedora-29/">How to install PostgreSQL 11 on Fedora 29?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Fedora is a great Linux distribution and I think <a href="http://osradar.com/fedora-29-released/" rel="noopener">we&#8217;ve made that clear</a>. Therefore, it is the one chosen to develop applications and use the database. This article is about how to install PostgreSQL 11 on Fedora 29.</p>
<p><a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu18-04/" rel="noopener">PostgreSQL</a> is a database manager relations program quite popular in the world. It is known for its robustness, its speed in processing large databases and for its compatibility with most Linux distributions.</p>
<p>On the other hand, a great advantage of <a href="https://www.postgresql.org/" rel="noopener">PostgreSQL</a> is that it is <a href="https://www.postgresql.org/about/licence/" rel="noopener">open source</a>, so you can modify its source code and implement specific improvements for your project. In addition, the latest stable version incorporates many <a href="https://www.postgresql.org/about/news/1894/" rel="noopener">new features</a> concerning security and performance.</p>
<p>So, today I will install PostgreSQL 11 on Fedora 29.</p>
<h2>0. Prerequisites</h2>
<p>It is not complicated to install PostgreSQL 11 on Fedora 29, however, there are some things to keep in mind for everything to come up smoothly.</p>
<p>First, you need to execute commands using sudo. There shouldn&#8217;t be any problems, but be careful what you type using sudo.</p>
<p>Then, while it is not necessary to be an expert in Linux commands, it helps a little bit that you have a basic knowledge about the use of the Terminal.</p>
<p>Finally, you must <a href="https://www.osradar.com/how-to-install-fedora-29/" rel="noopener">install Fedora 29</a>. Obvious.</p>
<h2>1. Upgrade the system</h2>
<p>In this first step, you need to update the system. Fedora 29 is a distribution that is constantly being updated, and it is good to have the latest versions of some key packages in the system. This is why I recommend updating frequently.</p>
<p>Open a Terminal and run:</p>
<pre class="">:~$ sudo dnf update</pre>
<figure id="attachment_6977" aria-describedby="caption-attachment-6977" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6977" src="https://www.osradar.com/wp-content/uploads/2018/11/1-3.png" alt="1.- Upgrade the system" width="1366" height="731" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/1-3-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/1-3-768x411.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/1-3-1024x548.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/1-3-696x372.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/1-3-1068x572.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/1-3-785x420.png 785w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6977" class="wp-caption-text">1.- Upgrade the system</figcaption></figure>
<p>As you can see, many packages are being updated.</p>
<h2>2. Add the PostgreSQL repository</h2>
<p>To ensure that you are using the latest version of PostgreSQL in Fedora 29, it is necessary to add the external repository of PostgreSQL. The process is simple, but it keeps you up to date.</p>
<pre class="">:~$ sudo dnf install https://download.postgresql.org/pub/repos/yum/11/fedora/fedora-29-x86_64/pgdg-fedora11-11-2.noarch.rpm</pre>
<figure id="attachment_6978" aria-describedby="caption-attachment-6978" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6978" src="https://www.osradar.com/wp-content/uploads/2018/11/2-2.png" alt="2.- Adding the PostgreSQL repository" width="1366" height="731" srcset="https://www.osradar.com/wp-content/uploads/2018/11/2-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/2-2-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/2-2-768x411.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/2-2-1024x548.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/2-2-696x372.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/2-2-1068x572.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/2-2-785x420.png 785w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6978" class="wp-caption-text">2.- Adding the PostgreSQL repository</figcaption></figure>
<p>With this, we will be able to start the installation.</p>
<h2>3. Install PostgreSQL 11 on Fedora 29</h2>
<p>Now all that remains is to install the necessary package from the terminal.</p>
<pre class="">:~$ sudo dnf install postgresql11</pre>
<figure id="attachment_6979" aria-describedby="caption-attachment-6979" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6979" src="https://www.osradar.com/wp-content/uploads/2018/11/3-1.png" alt="3.- Install PostgreSQL 11 on Fedora" width="1366" height="731" srcset="https://www.osradar.com/wp-content/uploads/2018/11/3-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/3-1-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/3-1-768x411.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/3-1-1024x548.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/3-1-696x372.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/3-1-1068x572.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/3-1-785x420.png 785w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6979" class="wp-caption-text">3.- Install PostgreSQL 11 on Fedora</figcaption></figure>
<p>You can also install the server package if you wish.</p>
<pre class="">:~$ sudo dnf install postgresql11-server</pre>
<figure id="attachment_6980" aria-describedby="caption-attachment-6980" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6980" src="https://www.osradar.com/wp-content/uploads/2018/11/4-2.png" alt="4.- Installing postgresql server" width="1366" height="731" srcset="https://www.osradar.com/wp-content/uploads/2018/11/4-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/4-2-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/4-2-768x411.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/4-2-1024x548.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/4-2-696x372.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/4-2-1068x572.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/4-2-785x420.png 785w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6980" class="wp-caption-text">4.- Installing PostgreSQL server</figcaption></figure>
<h2>4. Preparing the first use</h2>
<p>Before using PostgreSQL for the first time, it is necessary to perform a few steps first. The first step is to initialize the database.</p>
<pre class="">:~$ sudo /usr/pgsql-11/bin/postgresql-11-setup initdb</pre>
<p>Then, enable and start the service so you can use it without problems.</p>
<pre class="">:~$ sudo systemctl enable postgresql-11
:~$ sudo systemctl start postgresql-11</pre>
<figure id="attachment_6981" aria-describedby="caption-attachment-6981" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6981" src="https://www.osradar.com/wp-content/uploads/2018/11/5-2.png" alt="5.- Preparing the first use of postgreSQL" width="1366" height="731" srcset="https://www.osradar.com/wp-content/uploads/2018/11/5-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/5-2-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/5-2-768x411.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/5-2-1024x548.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/5-2-696x372.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/5-2-1068x572.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/5-2-785x420.png 785w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6981" class="wp-caption-text">5.- Preparing the first use of PostgreSQL</figcaption></figure>
<p>Now, you can start to use PostgreSQL.</p>
<h2>5. Testing the installation</h2>
<p>The best way to know if everything worked out is to use PostgreSQL. Nothing more than that. So, open a terminal and run.</p>
<pre class="">:~$ sudo su - postgres</pre>
<p>Now that you are logged in as a postgres user, you can use <em>psql</em>, which is a console to execute commands in PostgreSQL.</p>
<pre class="">:~$ psql</pre>
<p>Now, you can, for example, list all existing databases.</p>
<pre class="">postgres=# \l</pre>
<figure id="attachment_6983" aria-describedby="caption-attachment-6983" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6983" src="https://www.osradar.com/wp-content/uploads/2018/11/6-2.png" alt="6.- Using PostgreSQL" width="1366" height="731" srcset="https://www.osradar.com/wp-content/uploads/2018/11/6-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/6-2-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/6-2-768x411.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/6-2-1024x548.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/6-2-696x372.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/6-2-1068x572.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/6-2-785x420.png 785w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6983" class="wp-caption-text">6.- Using PostgreSQL</figcaption></figure>
<p>Or you can show all users.</p>
<pre class="">postgres=# \du</pre>
<figure id="attachment_6984" aria-describedby="caption-attachment-6984" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6984" src="https://www.osradar.com/wp-content/uploads/2018/11/7-2.png" alt="7.- Showing all users of PostgreSQL" width="1366" height="731" srcset="https://www.osradar.com/wp-content/uploads/2018/11/7-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/7-2-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/7-2-768x411.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/7-2-1024x548.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/7-2-696x372.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/7-2-1068x572.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/7-2-785x420.png 785w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6984" class="wp-caption-text">7.- Showing all users of PostgreSQL</figcaption></figure>
<p>And that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is a great application and installing it in Fedora 29 is not complex, but it is very useful if you use both programs.</p>
<p>Please share this article with your friends.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-postgresql-11-on-fedora-29/">How to install PostgreSQL 11 on Fedora 29?</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-postgresql-11-on-fedora-29/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
