PostgreSQL 9.3 install-by-one-command (Debian 7.4 x64)

Laziness. Need for one-click solution (Windows). Need for one-command solution (*nix). OK! 🙂

root@deb74:~# echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" > /etc/apt/sources.list.d/postgre.list && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && apt-get update && apt-get dist-upgrade && apt-get install postgresql-9.3
OK
Ign cdrom://[Debian GNU/Linux 7.4.0 _Wheezy_ – Official amd64 DVD Binary-1 20140208-13:47] wheezy Release.gpg
Ign cdrom://[Debian GNU/Linux 7.4.0 _Wheezy_ – Official amd64 DVD Binary-1 20140208-13:47] wheezy Release
Ign cdrom://[Debian GNU/Linux 7.4.0 _Wheezy_ – Official amd64 DVD Binary-1 20140208-13:47] wheezy/contrib amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 7.4.0 _Wheezy_ – Official amd64 DVD Binary-1 20140208-13:47] wheezy/main amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 7.4.0 _Wheezy_ – Official amd64 DVD Binary-1 20140208-13:47] wheezy/contrib Translation-en_US
Ign cdrom://[Debian GNU/Linux 7.4.0 _Wheezy_ – Official amd64 DVD Binary-1 20140208-13:47] wheezy/main Translation-en_US
Hit http://security.debian.org wheezy/updates Release.gpg                                          
Hit http://security.debian.org wheezy/updates Release                                              
Hit http://ftp.de.debian.org wheezy Release.gpg                                      
Hit http://security.debian.org wheezy/updates/main Sources                        
Hit http://security.debian.org wheezy/updates/contrib Sources                     
Hit http://ftp.de.debian.org wheezy-updates Release.gpg                           
Hit http://security.debian.org wheezy/updates/main amd64 Packages                 
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages              
Hit http://ftp.de.debian.org wheezy Release                                       
Hit http://security.debian.org wheezy/updates/contrib Translation-en                               
Hit http://security.debian.org wheezy/updates/main Translation-en                                  
Hit http://ftp.de.debian.org wheezy-updates Release                               
Hit http://ftp.de.debian.org wheezy/main Sources                                  
Hit http://ftp.de.debian.org wheezy/main amd64 Packages     
Hit http://ftp.de.debian.org wheezy/main Translation-en     
Hit http://ftp.de.debian.org wheezy-updates/main Sources    
Hit http://ftp.de.debian.org wheezy-updates/contrib Sources                  
Get:1 http://apt.postgresql.org wheezy-pgdg Release.gpg [836 B]              
Hit http://ftp.de.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Hit http://ftp.de.debian.org wheezy-updates/contrib amd64 Packages
Get:2 http://apt.postgresql.org wheezy-pgdg Release [29.2 kB]
Hit http://ftp.de.debian.org wheezy-updates/contrib Translation-en
Hit http://ftp.de.debian.org wheezy-updates/main Translation-en/DiffIndex
Get:3 http://apt.postgresql.org wheezy-pgdg/main amd64 Packages [43.6 kB]
Ign http://apt.postgresql.org wheezy-pgdg/main Translation-en_US
Ign http://apt.postgresql.org wheezy-pgdg/main Translation-en
Fetched 73.6 kB in 1s (38.9 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree       
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
  file libmagic1
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 254 kB of archives.
After this operation, 110 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://security.debian.org/ wheezy/updates/main file amd64 5.11-2+deb7u1 [51.9 kB]
Get:2 http://security.debian.org/ wheezy/updates/main libmagic1 amd64 5.11-2+deb7u1 [202 kB]
Fetched 254 kB in 0s (1,136 kB/s)
Reading changelogs… Done
(Reading database … 142292 files and directories currently installed.)
Preparing to replace file 5.11-2 (using …/file_5.11-2+deb7u1_amd64.deb) …
Unpacking replacement file …
Preparing to replace libmagic1:amd64 5.11-2 (using …/libmagic1_5.11-2+deb7u1_amd64.deb) …
Unpacking replacement libmagic1:amd64 …
Processing triggers for man-db …
Setting up libmagic1:amd64 (5.11-2+deb7u1) …
Setting up file (5.11-2+deb7u1) …
Reading package lists… Done
Building dependency tree       
Reading state information… Done
The following extra packages will be installed:
  libpq5 pgdg-keyring postgresql-client-9.3 postgresql-client-common postgresql-common
Suggested packages:
  oidentd ident-server locales-all postgresql-doc-9.3
The following NEW packages will be installed:
  libpq5 pgdg-keyring postgresql-9.3 postgresql-client-9.3 postgresql-client-common
  postgresql-common
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,142 kB of archives.
After this operation, 24.4 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg/main libpq5 amd64 9.3.2-1.pgdg70+1 [565 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg/main pgdg-keyring all 2013.2 [4,802 B]
Get:3 http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg/main postgresql-client-common all 151.pgdg70+1 [70.7 kB]
Get:4 http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg/main postgresql-client-9.3 amd64 9.3.2-1.pgdg70+1 [1,477 kB]
Get:5 http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg/main postgresql-common all 151.pgdg70+1 [157 kB]
Get:6 http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg/main postgresql-9.3 amd64 9.3.2-1.pgdg70+1 [3,867 kB]
Fetched 6,142 kB in 4s (1,391 kB/s)   
Preconfiguring packages …
Selecting previously unselected package libpq5.
(Reading database … 142292 files and directories currently installed.)
Unpacking libpq5 (from …/libpq5_9.3.2-1.pgdg70+1_amd64.deb) …
Selecting previously unselected package pgdg-keyring.
Unpacking pgdg-keyring (from …/pgdg-keyring_2013.2_all.deb) …
Selecting previously unselected package postgresql-client-common.
Unpacking postgresql-client-common (from …/postgresql-client-common_151.pgdg70+1_all.deb) …
Selecting previously unselected package postgresql-client-9.3.
Unpacking postgresql-client-9.3 (from …/postgresql-client-9.3_9.3.2-1.pgdg70+1_amd64.deb) …
Selecting previously unselected package postgresql-common.
Unpacking postgresql-common (from …/postgresql-common_151.pgdg70+1_all.deb) …
Adding ‚diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common‘
Selecting previously unselected package postgresql-9.3.
Unpacking postgresql-9.3 (from …/postgresql-9.3_9.3.2-1.pgdg70+1_amd64.deb) …
Processing triggers for man-db …
Setting up libpq5 (9.3.2-1.pgdg70+1) …
Setting up pgdg-keyring (2013.2) …
Removing apt.postgresql.org key from trusted.gpg: OK
Importing apt.postgresql.org key: OK
Setting up postgresql-client-common (151.pgdg70+1) …
Setting up postgresql-client-9.3 (9.3.2-1.pgdg70+1) …
update-alternatives: using /usr/share/postgresql/9.3/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up postgresql-common (151.pgdg70+1) …
Adding user postgres to group ssl-cert
Building PostgreSQL dictionaries from installed myspell/hunspell packages…
  en_us
Removing obsolete dictionary files:
[warn] No PostgreSQL clusters exist; see „man pg_createcluster“ … (warning).
Setting up postgresql-9.3 (9.3.2-1.pgdg70+1) …
Creating new cluster 9.3/main …
  config /etc/postgresql/9.3/main
  data   /var/lib/postgresql/9.3/main
  locale en_US.UTF-8
  port   5432
update-alternatives: using /usr/share/postgresql/9.3/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
[ ok ] Starting PostgreSQL 9.3 database server: main.
root@deb74:~#

-a-

This entry was posted in Databases, PostgreSQL. Bookmark the permalink.

Napsat komentář