Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-17-2002, 10:13 AM
|
#1
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Rep:
|
Seperate program directories in Linux
Is there a way I could get the RPM package manager
to install programs in preset directories?
In windows you can specify where you want the
program to be installed, but in linux all the programs
seem to be under /usr/bin in a rather big jumble,
and various other non-binary's are hidden under /usr/share
again in a not too orginized fashion.
I guess what i'm getting at is that I'd like a way to have
a modular system where every program would be in i'ts own
directory nicely set up in a orginized heirarchy like:
/usr/apps/TextApps/OpenOffice/
I thought of Linux from scratch but than reilized I'd have to use rpm's to reinstall everything, (or download about 200M)
so any advice on how to customize where things go?
|
|
|
09-17-2002, 10:27 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you really should let go of your windows ways of thinking!
ok, so you have a seperate directory for every single app you install... so now to run any app from a console you have to have a path structure including every single one of these directories???? that's daft. but then i guess this also means you hate using consoles anyway, in which case things will probably just as awkward, as as soon as one app tries to call another (e.g. a wrapper application to another) it can't find it and you fall on your arse again.
linux uses directories for seperating and subdividing libraries, binaries, data files and various other things. go with the flow eh? it works an awful lot better that messing around. there's a reason things are the way they are
but if you insist, it's all in the RPM manpage. read it.
|
|
|
09-17-2002, 01:19 PM
|
#3
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Original Poster
Rep:
|
Still, I see an advantage to knowing what's where, so you can
remove / copy programs easily, instead of trying to find all the
related files.
About the problems you mentioned
i.e. a. having to type in the whole path
b. calling another app
you can always have links to all the binaries in /usr/bin,
and have the actual binaries in thier respective dir's.
thanX again, I'll definatly read the manpages.
|
|
|
09-17-2002, 01:22 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you think manually creating an adsitional link to every app is a good thing????? whatever..
|
|
|
09-17-2002, 02:57 PM
|
#5
|
Member
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141
Rep:
|
One reason that MS Windows can do this is because of the registry. But this is also the one big drawback to MS Windows, the maintenance of the registry. If the registry is screwed up, then so is your system. UNIX/Linux doesn't use anything close to a registry because it simply doesn't need it, and you don't have to support that overhead.
As you would use rpm to install a package, you can use it to uninstall that same package. And what need would you have in copying a program?
The fs layout for UNIX/Linux is very well thought out. /bin, /lib and /sbin has the applications and libraries needed for boot. /usr/bin has the user level commands. /usr/sbin has superuser commands. /usr/lib has the libraries required to either run or build an application. /usr/local is the location for user installed packages. /opt is usually used for 3rd party vendor applications. /var has logs and such. And swap is a non-viewable, raw partition. /usr/man is generally for the online documentation. A place for everything and everything in its place.
As acid_kewpie stated, "go with the flow eh?" If you prefer the layout of MS Windows over Linux, stay with it. One of the things that makes UNIX/Linux as reliable as it is, is that very same fs layout that you would like to change. -mk
|
|
|
09-17-2002, 04:47 PM
|
#6
|
Member
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154
Original Poster
Rep:
|
It appears I'm doomed...
from the FHS:
"No other directories, except those listed below may be
in /usr/local after first installing a FHS-compliant system"
to mikekl47: good point about the registry , windows crashed
on me more than once because of registry related problems.
I guess I'll go with the flow as said, all in all,
Linux definatly Kicks Arse.
|
|
|
09-17-2002, 05:42 PM
|
#7
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Yeah, but if you were so inclined to go through a sort of LFS install, making each program in it's own directory, and then follow with a symlink from each program, to a /usr/bin style directory, along with libs et all, you could accomplish such a task. And then it would be setup as you'd like. From then on, when you installed programs you'd have to follow the same scheme, and use only sources (which is a good thing though) and supply directories and such.
But it could be done, the work involved would not be worth it, but it could be done.
Cool
|
|
|
09-17-2002, 07:08 PM
|
#8
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
Basically in *nix you have a home folder that has a seperate file or files for each app that you run.
Each user has their own config files and such, and share the binaries and libs.
This is what makes it great, if a user screws up some app they can just remove it's files in their home folder and when they run it again it is like reinstalling it.
This is vastly prefered over reinstalling the entire system because it got hosed.
|
|
|
All times are GMT -5. The time now is 08:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|