The following NEW packages will be installed: Postgresql-doc postgresql-doc-13 libjson-perl isag Libpq5 pgdg-keyring postgresql-13 postgresql-client-13 postgresql-client-common postgresql-common sysstat The following additional packages will be installed: Now let’s install PostgreSQL 13: sudo apt-get -y install postgresql If we want to deploy, say, PostgreSQL 12 instead of the current PostgreSQL, we would use “apt-get install postgresql-12” instead. Installing PostgreSQL on Ubuntuīasically, all we need to do is run “apt-get -y install postgresql” This will automatically deploy the latest version of PostgreSQL. Once the repositories are ready to use, we can actually go and install PostgreSQL on our Ubuntu server. Next, we can update the package list and ensure that our system has the latest stuff: apt-get update Manage keyring files in instead (see apt-key(8)). Then you can add the keys to the system to make sure the repository is trustworthy: wget -quiet -O - | sudo apt-key add. Here is how it works: sudo sh -c 'echo "deb $(lsb_release -cs)-pgdg main" > /etc/apt//pgdg.list' The first thing you have to do is to add the repository to your Ubuntu installation. The following steps are now necessary to install PostgreSQL: In our example, I have selected the latest version of Ubuntu (20.10). Please select your desired operating system. Those PostgreSQL packages provided by the community are high quality and we recommend using them for your deployment: To download PostgreSQL, we suggest checking out the official PostgreSQL website. Once Ubuntu is installed, we can proceed with the installation of PostgreSQL itself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |