ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
can anyone point me in the right direction for modifying linux (and probably some of the GNU tools) to change the /bin and /lib to /prog/sys/bin and /prog/sys/lib ? (reason being is i want to clean up my next linux install by having /prog keep all the programs/libs and whatever else (each in its own directory categorized by usage like /prog/sys for system needed stuff /prog/net /prog/text , etc), i don't i don't know where to begin .,,, anyone have a idea?
I really don't like this idea, but what about just altering your PATH environment variable (/etc/profile, ~/.profile, ...) and also your /etc/ld.so.conf to include those directories?
Couldn't you just replace /bin with /prog/sys/bin in your PATH variable, and /lib with /prog/sys/lib in the various environment variables that is in? (Not sure which ones offhand)
yes is can (actually the lib (glibc) needs a small edit to one of its config files)
but what I'm concerned with is init,.. the kernel needs to execute this at boot time, (i think that requires the use of the libs), but isn't it expecting to find what it needs at /bin and /lib (as the PATH variable is declared when bash starts up after a login, and not during boot
Sounds like you're essentially doing Linux From Scratch -- http://www.linuxfromscratch.org/
I would imagine that these modifications are going to trash any distro's packaging system.
I think the LFS directions are loose about your directory tree. They give suggestions but you can make some substitutions here and there.
I have a feeling that this is going to become a gigantic inconvenience, as opposed to the convenience it was supposed to be : )
Oh yeah, it should be mentioned that automake lets you do ./configure --prefix=/usr/whatever before you build source. that's how you'd be installing stuff in the LFS scenario
i tried LFS and wont do it again(it is helpful i won't deny that)... i prefer to just do things by my i think... but i think i will just have to pass the options to the kernel so it finds init, or something...
and it wont be a inconvenience... its ment to keep order around my laptop, and once i have installed everything i don't plan to be adding much more so it'll all work out (after all i spent a few months trying to get linux to work, learning linux... whats another month or 3?)
I can't see any use in doing what you propose. If you stick with packages .tgz,.rpm,.deb whatever they should install/remove fairly cleanly and you can configure where to put the files. And most other software you will install will allow you to configure where you want file to end up. Also you can create a seperate partition and mount it as something convenient and install new stuff there in whatever structure you like.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.