Install postgresql-8.4 on Ubuntu: sudo apt-get install postgresql-8.4

Learn how to install postgresql-8.4 with the command sudo apt-get install postgresql-8.4 on Ubuntus.


 

Ads

Quick installation of postgresql-8.4:

Step 1: Update system:

	sudo apt-get update

Step 2: Install: postgresql-8.4

Ater updaing the OS run following command to install the packae:

	sudo apt-get install postgresql-8.4

Package Details

Package:postgresql-8.4
Version:8.4.22-0ubuntu0.12.04
Maintainer:Ubuntu Developers
Home page:http://www.postgresql.org/
Description:object-relational SQL database, version 8.4 server PostgreSQL is a fully featured object-relational database management system. It supports a large part of the SQL standard and is designed to be extensible by users in many aspects. Some of the features are: ACID transactions, foreign keys, views, sequences, subqueries, triggers, user-defined types and functions, outer joins, multiversion concurrency control. Graphical user interfaces and bindings for many programming languages are available as well. . This package provides the database server for PostgreSQL 8.4. Servers for other major release versions can be installed simultaneously and are coordinated by the postgresql-common package. A package providing ident-server is needed if you want to authenticate remote connections with identd. Homepage: http://www.postgresql.org/
Distro:Ubuntu 12.04 LTS
Release:
Repo/Section:universe/database

How to install postgresql-8.4 on Ubuntu 12.04 LTS?

Install postgresql-8.4 on Ubuntu: sudo apt-get install postgresql-8.4

First of all update your system with the command:

sudo apt-get update

Ads

Above command will download the package lists for Ubuntu 12.04 LTS on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If postgresql-8.4 is not installed on your compter then the command 'dpkg -L postgresql-8.4' will give followin error.

deepak@deepak-VirtualBox:~$ dpkg -L postgresql-8.4
Package `postgresql-8.4' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
deepak@deepak-VirtualBox:~$ 

Installing postgresql-8.4:

After system update use the following command to install postgresql-8.4:

sudo apt-get install postgresql-8.4

Above command will confirm before installing the package on your Ubuntu 12.04 LTS Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove postgresql-8.4 from Ubuntu 12.04 LTS?

Now we will see the commands for uninstalling the postgresql-8.4 from Ubuntu 12.04 LTS. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the postgresql-8.4 following command is used:

sudo apt-get remove  postgresql-8.4

Following command is used to remove the postgresql-8.4 package along with its dependencies:

sudo apt-get remove --auto-remove postgresql-8.4

This will remove postgresql-8.4 and all its dependent packages which is no longer needed in the system.

Completely removing postgresql-8.4 with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge postgresql-8.4

or you can use following command also:

sudo apt-get purge --auto-remove postgresql-8.4

Above command will remove all the configuration files and data associated with postgresql-8.4 package. You can can't recover the delete data, so, use this command with care.