LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-17-2012, 03:03 AM   #1
vzxen
Member
 
Registered: Jul 2010
Posts: 126

Rep: Reputation: 4
RPM install to another location


Hi,

Is it possible to use a RPM or SOURCE RPM and specify different locations i.e. PREFIX for the software to install.
e.g. the default PHP RPM installs php at /usr/bin/php

Is it not possible to specify a PRFIX for the same ?

Now I want to do this because of several reasons !
If I compile my own PHP which is simple enough updates will be an issue. The RPM maintained by Redhat and CentOS already take care of these patches and its easy to use them. But I want to install my LAMP at another location and not the same location as in the RPM.
 
Old 05-17-2012, 03:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
try this - http://www.cyberciti.biz/faq/rpm-relocatable-packages/
 
Old 05-17-2012, 06:17 AM   #3
vzxen
Member
 
Registered: Jul 2010
Posts: 126

Original Poster
Rep: Reputation: 4
Hi,

Thanks for the suggestion. But I guess php, mysql and apache are not relocatable.
I tried the php-cli package. I also tried the source rpm but no luck
 
Old 05-17-2012, 06:23 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Yes, not many are really. unusual to get the choice.
 
Old 05-18-2012, 12:14 AM   #5
vzxen
Member
 
Registered: Jul 2010
Posts: 126

Original Poster
Rep: Reputation: 4
Hi,

Is it not possible to use the SOURCE RPM and then have them relocated ?
I was checking the spec file and the do use some sort of variables. I am not an expert with RPM building so any guidance is appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installed location of RPM vibhor_agarwalin Linux - General 9 04-12-2009 11:55 PM
RPM package during install can or cannot define the install location? hocheetiong Linux - Software 1 09-10-2007 01:33 PM
Location of rpm repositories Hockeyfan SUSE / openSUSE 3 11-23-2005 10:26 AM
Location of install directorys (using rpm). brynjarh Linux - Newbie 2 06-16-2004 06:19 AM
rpm install location ...how to tell ? dynamo|x Linux - Software 6 06-01-2003 05:13 PM

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

All times are GMT -5. The time now is 04:39 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