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.
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.