Relocat /usr/lib and /usr/lib64 to a different path
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Relocat /usr/lib and /usr/lib64 to a different path
I have a FC4 installation.
I wish to relocate the shared objects found under /usr/lib and /usr/lib64 to different lcation say /usr/lib_org and /usr/lib64_org respectively.
I need to do it such that the new paths are registered in the system and all the application search for their shared objects under the new folders instead of expecting them under /usr/lib or /usr/lib64
Is there a reason you want to move them? You'll probably have to recompile most of the software on your computer with new library locations, update your ldconfig, etc.
I skipped rebuilding all the apps.
but added a conf file under /etc/ld.so.conf.d in which I specified my folders.
Rebooted the system.
Checked the dump from ldconfig -p .
All the so's now resolved to the folders I wanted them to be redirected to.
Also tried to run few apps which were previously complaining about not finding the shared objects. They executed without any error.
Thanks for the clue.
Nice. Glad it worked for you. For some reason I woulda figured most (many) apps would need to be rebuilt. But I was wrong. I guess dynamic libraries at compile time are just used for symbol resolution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.