Install only dblink module from postgresql-contrib package in centOS - postgresql

I would like to install only the dblink module from postgresql-contrib package. I use the command as below
zypper install postgres-contrib
But it installs everything. Is there a way to install a specific module.

There is no reasonable way to install just a part of an RPM package. Is there any specific reason to do so? The contrib package isn't that large and the modules aren't used unless you want to use them.

Related

How to install uuid-ossp postgresql extension in arch Linux

I need to install uuid-ossp postgresql extension on arch linux. I have postgresql-9.5. On ubuntu its easy to do via sudo apt-get install postgresql-contrib but how to do this in arch Linux?
The default postgresql package doesn't provide ossp-uuid-feature. You have to enable it via ./configure before compiling. So you have two ways to get this feature:
compile postgresql yourself with --with-ossp-uuid-flag and install it via make install. (I don't recommend this)
Download the postgresql package specifications via the tool asp. You can install it with sudo pacman -Syu asp and then do: asp checkout postgresql. Then you need to modify the PKGBUILD and insert the --with-ossp-uuid-flag inside of the build()-function. Then you can simply build the package and install it with makepkg -si. It is possible that you need additional dependencies. I haven't tested it, but it should work this way.

Can't intall chef-manage rpm package

I have CentOS and chef-server. I try to install chef-manage, but something wrong.
When I start install my rpm package
I have this error
You need to install Chef Server (i.e. chef-server-core) first. Then install Manage afterwards via the addons system.

Can I install perl binary with perlbrew?

I am using perlbrew on a raspi, but I don't want to the slow processor to compile new perls. Can I install binaries with it (or other similar tools), like when I use homebrew?
perlbrew isn't a package manager. It can't install whatever package it is you have.
But once you have it installed, you can manage it using perlbrew by following these intructions.

How do I install upstart on CentOS 5.9?

YUM doesn't have upstart. I installed the package under NPM, but I don't think that's what I want. I know there's a package for apt-get, but CentOS doesn't have apt-get (at least, not by default).
So... pretty newbie question, I know, but how do I install under CentOS 5.9?
If you've got software that's in Debian package manager (apt-get) format, and you want to install it on a Linux that uses RPM (yum) format ...
... your best bet is to install something like RPMForge:
http://everyday-tech.com/apt-get-on-centos/

How can I install the postgresql-contrib module in an existing database?

I'm using postgresql 9.1.6 on CentOS. I would like to install the postgresql-contrib module using a binary file, but I can't find it online. I'm unsure if I can install this after already installing postgresql. Is it possible to do this?
I installed postgresql in the following way:
wget http://ftp.postgresql.org/pub/source/v9.1.6/postgresql-9.1.6.tar.gz
tar -xzf postgresql-9.1.6.tar.gz
cd postgresql-9.1.6./configure --prefix=$HOME
make
make install
I am currently using the databases within this install and would prefer not to reinstall it (if possible).
I understand that once I install this I can use a function in the following way:
create extension tablefunc ;
EDIT: If I followed the instructions from here, does gmake and gmake install affect an existing database?
You might be hard pressed to find the contrib modules as binary distributions; however, the very page you linked has explicit instructions on how to build the contrib modules:
When building from the source distribution, these modules are not built automatically. You can build and install all of them by running
gmake
gmake install
in the contrib directory of a configured source tree; or to build and install just one selected module, do the same in that module's subdirectory.
Alternatively, you could try using yum (the package is postgresql-contrib.x86_64), but I can't vouch for the results of this if you installed Postgres from source.