LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 02: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, 05:11 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
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 01:23 PM. Reason: //Have keybd, can't type.
 
Old 07-17-2006, 08: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, 01:25 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Just realized that i'm misreading it... sorry for the inconvenience
NP
 
Old 07-21-2006, 01: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, 01:34 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
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, 02:32 AM   #7
edenCC
Member
 
Registered: May 2006
Location: Gz,China
Distribution: RH,FB
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


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

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

All times are GMT -5. The time now is 11:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration