[ltp] Installing rpms in alternate directories

James McKenzie linux-thinkpad@linux-thinkpad.org
Sat, 16 Oct 2004 21:24:17 -0700


Satish:

That sounds like a .plan.  However, I would have to create /usr as a 
primary partition as I would have to convert the hidden Windows98 SE 
restore partition.  I don't want to do this until after FC3 is 
released.  I plan on a clean install, removing items that are on this 
system that are several years old.  At the present moment, I'm moving 
and symlinking individual subdirectories under /usr/lib to /opt/lib.  I 
might look into updating/upgrading individual packages to move them over 
to the /opt/lib directory.

James McKenzie


Satish Balay wrote:

>On Sat, 16 Oct 2004, James McKenzie wrote:
>
>  
>
>>Ok, I really need to read the man pages.  I still have a question though.  I
>>want to install /usr/lib in /opt/lib under FC2.  Has anyone done this,
>>successfully.  I know about symlinks, but some programs will fail with
>>"mysterious" errors.  I don't plan on moving /usr/lib/X11R6 or any of the
>>subdirectories under it. 
>>The reason I want to do this is I'm running out of space in the root (/)
>>directory and I don't want to rebuild the system, again.  I just spend a week
>>recovering from my last attempt.  I really would like to do a clean install,
>>but FC3 is supposed to be released in about a week, and test 3 is out there
>>now.
>>    
>>
>
>looks like you are looking for:
>
>rpm --relocate /usr=/opt foo.rpm
>
>But how about mounting the new partition as /usr and transfer current
>files over to the new partition by booting off rescue/knoppix-cd - and
>using 'rsync -a' to copying over?
>
>Satish
>  
>