LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-17-2006, 01:15 AM   #1
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Rep: Reputation: 15
Installing a RPM to a particular Directory


Hello folks,

will be great if u can advise me on the following :

1. How do i go about installing a package onto a particular directory?? for example, if i want to install Anaconda on my FC5 machine to the /mnt/newbie directory????

thanks heaps

newbie
 
Old 07-17-2006, 04:11 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
How do i go about installing a package onto a particular directory?
With RPM-based distro's it's called "relocation". Using the flag as "rpm -i some.rpm --relocate /usr/local=/usr" will try to relocate files that should be installed in /usr/local(/bin,/lib,/etc,/etc) to /usr(/bin,/lib,/etc,/etc). Not all packages are built with relocation in mind. Relocating files may make files inaccessable unless you know how to combat that.


for example, if i want to install Anaconda on my FC5 machine to the /mnt/newbie directory?
I wouldn't do that because you're messing up your file hierarchy (FSSTND or FHS or what its called) making your box less managable. For instance if the package contains libraries they won't be found unless you add them to /etc/ld.conf and run ldconfig. Binaries won't be found unless you call them directly or add the directory to your $PATH. Maybe you should tell us the reasons *why* you think you must exile that package to virtual Siberia?

Last edited by unSpawn; 07-17-2006 at 12:23 PM. Reason: //Have keybd, can't type.
 
Old 07-17-2006, 07:11 AM   #3
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Original Poster
Rep: Reputation: 15
hello

i'm sorry.... was just trying to follow tips on the page : http://bipolar.longbros.com/?p=10
to remaster my Fedora Cd.. Just realized that i'm misreading it... sorry for the inconvenience
 
Old 07-17-2006, 12:25 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Just realized that i'm misreading it... sorry for the inconvenience
NP
 
Old 07-21-2006, 12:03 PM   #5
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
I don't exactly have Fedora, but in Suse the command is identical. I have just one question, and I thought it was pointless to open a new thread, as it is related to the same problem.
Is there any problem if I, for example, install games on another partition? Maybe even a windows one?
For example "rpm -i game.rpm --relocate /windows/D/games" ? Will it work? Will it have any problems?
 
Old 07-21-2006, 12:34 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe even a windows one?
Nah, wouldn't do that.


Will it work?
Maybe.


Will it have any problems?
If it doesn't handle relocation it could have. Rpm's have to be built specifically for relocation. Querying with "rpm -qi package.rpm" should show.


I thought it was pointless to open a new thread
We at LQ don't. Your problem = your thread.
 
Old 09-15-2009, 01:32 AM   #7
edenCC
Member
 
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Blog Entries: 1

Rep: Reputation: 32
I happened face this issue this forenoon, it depends on the package itself, sometimes you cannot relate a package.
I created a blog entry for this issue:
http://planet.admon.org/2009/09/rpm-...sage-examples/
 
  


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
Changing rpm Build directory veenanaidu Fedora 3 10-05-2006 02:18 PM
specifying installation directory in RPM ? Linuxuser_81 Linux - Newbie 1 10-21-2005 08:55 PM
RPM install directory? blizunt7 Linux - Newbie 2 04-02-2004 02:55 PM
path for directory while doing rpm -ivh newbielinux Linux - Newbie 0 02-27-2004 08:47 AM
Install RPM directory yenonn Linux - Software 1 06-30-2003 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:16 PM.

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