LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-21-2004, 02:59 AM   #1
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Linux program directory


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?
 
Old 05-21-2004, 08:08 AM   #2
rkef
Member
 
Registered: Mar 2004
Location: bursa
Posts: 110

Rep: Reputation: 15
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?
 
Old 05-21-2004, 08:11 AM   #3
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
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)
 
Old 05-21-2004, 05:43 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Original Poster
Rep: Reputation: 51
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
 
Old 05-21-2004, 05:58 PM   #5
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
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 : )
 
Old 05-21-2004, 06:00 PM   #6
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
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
 
Old 05-21-2004, 07:46 PM   #7
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Original Poster
Rep: Reputation: 51
thx,

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?)

Last edited by SciYro; 05-21-2004 at 07:48 PM.
 
Old 05-21-2004, 09:29 PM   #8
kooch
Member
 
Registered: Mar 2004
Location: Upstate NY
Distribution: Slackware/YDL
Posts: 77

Rep: Reputation: 15
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.
 
  


Reply



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
Program directory help... JustinCoyan Slackware 3 04-19-2005 10:27 AM
Which directory should I install a program in? LinuxPadawan Linux - General 6 04-11-2005 05:20 PM
Does Linux have a Program Files directory? aznluvsmc Linux - Newbie 4 08-24-2004 08:26 PM
Program Directory nodnarb Linux - Software 2 07-18-2004 09:18 PM
Directory travesal program serotonincy Programming 3 02-22-2004 12:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:12 AM.

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
Open Source Consulting | Domain Registration