Building from source vs RPMs

Started by Christophe Pettusover 16 years ago4 messagesgeneral
Jump to latest
#1Christophe Pettus
xof@thebuild.com

I'm moving from a long time in BSD-land to using Linux. I've always
been in the habit of building PostgreSQL from the source tarballs. On
Linux, is there an advantage either way to using the RPMs as opposed
to building from source? Thanks!
--
-- Christophe Pettus
xof@thebuild.com

#2Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: Christophe Pettus (#1)
Re: Building from source vs RPMs

On Mon, 2009-07-27 at 16:53 -0700, Christophe Pettus wrote:

On Linux, is there an advantage either way to using the RPMs as
opposed to building from source?

In terms of performance and functionality, there is no difference. On
the other hand, many people, including me, find precompiled packages
(RPMs, debs, etc) easier to administrate. Ubuntu, Debian, CentOS, Fedora
and Red Hat has packages for many PostgreSQL versions. See here:

http://www.postgresql.org/download/linux

-HTH.

Regards,
--
Devrim GÜNDÜZ, RHCE
Command Prompt - http://www.CommandPrompt.com
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Christophe Pettus (#1)
Re: Building from source vs RPMs

On Tuesday 28 July 2009 02:53:19 Christophe Pettus wrote:

I'm moving from a long time in BSD-land to using Linux. I've always
been in the habit of building PostgreSQL from the source tarballs. On
Linux, is there an advantage either way to using the RPMs as opposed
to building from source? Thanks!

RPMs will make sure the init script is correctly wired in and the server will
start at the right time, logging and log rotation is correctly set up, and
depending on the system, that your time zone data is current. Also, the
dependency system will make sure everything you need is installed and stays
installed. And finally, it saves you from having to install a complete
development and build environment on your server, and it installs much faster.

#4Scott Mead
scott.lists@enterprisedb.com
In reply to: Peter Eisentraut (#3)
Re: Building from source vs RPMs

On Wed, Jul 29, 2009 at 3:27 AM, Peter Eisentraut <peter_e@gmx.net> wrote:

On Tuesday 28 July 2009 02:53:19 Christophe Pettus wrote:

I'm moving from a long time in BSD-land to using Linux. I've always
been in the habit of building PostgreSQL from the source tarballs. On
Linux, is there an advantage either way to using the RPMs as opposed
to building from source? Thanks!

Just to offer another opinion, source compiles are much easier to control,
you're not subject to the author's feelings on certain options. Also, RPMs
usually over-write a version of PG when you upgrade, so you can't run
multiple versions side-by-side, and upgrading becomes tougher (unless you
have a second box that is).

Just my 2 cents.

--Scott