LinuxQuestions.org
Visit Jeremy's Blog.
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 03-01-2012, 05:31 AM   #1
equick
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Rep: Reputation: 0
symlink tool to pull together rpm components in one place


Hi, is there a tool, a bit like the opposite of stow, which can link together all components of an rpm under one prefix? So for example, I would like to use fedora's version of apache but want to prefix this under /usr/local/myapache, so httpd would be in /usr/local/myapache/sbin/httpd (as a symlink to /usr/sbin/httpd).

Thanks for any help.

Ed.
 
Old 03-01-2012, 05:37 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
There is the root option to rpm that install a package under the given root directory. Maybe this can help. AFter install you only would need to make a symlink. I guess you also have to install the rpm that apache depends on inside the new root but not sure about that.
 
Old 03-01-2012, 10:47 AM   #3
equick
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
There is the root option to rpm that install a package under the given root directory. Maybe this can help. AFter install you only would need to make a symlink. I guess you also have to install the rpm that apache depends on inside the new root but not sure about that.
Thanks for your reply. I'll give that a go, but from other posts I've read that requires a chroot'd install.
 
Old 03-01-2012, 11:27 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by equick View Post
Hi, is there a tool, (..) which can link together all components of an rpm under one prefix?
Why would you want to do that? Why go against package management and the FSSTND, LFS and other such standards? If you want everything in one place you could install using "--relocate". 'man rpm' for more.
 
Old 03-02-2012, 08:49 AM   #5
equick
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
Why would you want to do that? Why go against package management and the FSSTND, LFS and other such standards? If you want everything in one place you could install using "--relocate". 'man rpm' for more.
Why? Because I don't wish to change the existing apache config files for all my sites. I have a directory set up like

Code:
/opt/apache/server
/opt/apache/server/bin/httpd
/opt/apache/server/modules
/opt/sites/site1/bin/apachectl
/opt/sites/site1/conf/httpd.conf
So ideally I would like to install the httpd rpm into /opt/apache/server

I tried --relocate as a test but got the following error:
Code:
rpm --force --install --relocate /usr=/home/ed/httpd httpd-2.2.17-1.fc14.i686.rpm
path /usr in package httpd-2.2.17-1.fc14.i686 is not relocateable
Can you see what I'm doing wrong?

Thanks.
 
Old 03-02-2012, 10:28 AM   #6
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
This link sheds some light: http://www.cyberciti.biz/faq/rpm-relocatable-packages/

If you don't have to use php or similar stuff you could compile apache your self. Just for the case that relocation or prefixing does not work.
 
Old 03-03-2012, 04:52 AM   #7
equick
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
This link sheds some light: http://www.cyberciti.biz/faq/rpm-relocatable-packages/

If you don't have to use php or similar stuff you could compile apache your self. Just for the case that relocation or prefixing does not work.

Thanks for the link. It was useful. The upshot is you can't use rpm to install fedora httpd into a prefixed location as it's not a relocatable rpm.

I'm really looking for a tool which is like the opposite to stow (stow symlinks prefixed software into the standard places). One way might be to write a bash script to list the contents of an rpm and symlink the contents to a prefixed location. My question is just asking if there is already something that does this?
 
Old 03-05-2012, 04:02 AM   #8
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I dunno of any tool like that.
 
  


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
Question How to get stat() of symlink and not of target of symlink ? ronbarak Programming 3 11-08-2010 01:14 PM
Meaning of Symlink test with rpm --verify blackhole54 Linux - General 2 01-04-2009 12:41 AM
Is there a tool which plots network components in in graphical mode raees Linux - Software 1 04-21-2005 05:51 PM
rpm -e .. death of rpm tool eel Fedora 2 11-10-2003 06:10 AM
RPM Tool oopicmaster Linux - Software 2 10-27-2003 03:55 PM

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

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