LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-29-2013, 08:51 AM   #1
EnderX
Member
 
Registered: Nov 2006
Posts: 66

Rep: Reputation: 15
Change install location of packages set up by YUM - RHEL 6.4 - How to do?


We recently got a new server box (RHEL 6.4, running as a Virtual Machine) in at our office, intending to use it primarily as a database replication source. However, our tech set up the partitions so that there are only 50 Gigs of free space on the root partition, and the database software (PostgreSQL 8.4) that our hardware guy pre-installed on the system is set up to put the data files in a subdirectory of /var/lib/. (This appears to be the generic default location for PostgreSQL to install into.) Given that a single copy of our database currently tips the scales at ~ 8.8 gigs, that we were intending to set up three copies on this machine for the replication process, and that we do expect our database to grow, I'm foreseeing a not-to-distant future where this setup ends up running us out of disk space on the machine.

The machine in question is set up with a /home/ partition showing ~164 gigs left. I know it's possible to swap the install from one directory to another if you're compiling the code yourself, as I've had to do that several times before now on other systems. I'm kind of hoping, however, that there's some way to get YUM, which appears to be the package manager installed on he system, to let me set it up in another location on-disk (in the /home/ directory, of course) without having to recompile.

Is this possible, or should I go ahead and start downloading the install pack from the PostgreSQL website now?
 
Old 04-29-2013, 09:10 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I would expect that PG would have a config file that tells it where the files are (other DBS do). It probably just defaults to that location.
I really would not expect to have to re-install.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using yum to install packages in RHEL doesn't work ashutosh iparkar Linux - Newbie 5 03-24-2013 07:26 PM
How to install RHEL using image (dd file) from a remote location? amit_1 Linux - Software 4 04-13-2012 12:09 PM
RHEL 5 (Tikanga) Using Yum to install packages dg1988 Red Hat 4 04-13-2011 02:17 PM
How to set yum repository on RHEL 5.1 ?? bilal_mld Linux - Newbie 6 06-24-2010 01:39 PM
Find location of packages previously installed with yum on fedora core 5 Tails and Link Linux - Newbie 8 04-30-2006 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration