LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-03-2004, 10:02 PM   #1
curmudgeon42
Member
 
Registered: May 2004
Posts: 86

Rep: Reputation: 15
software management - best practices?


i have newly switched to Linux (using Mandrake 10). i dove right in to compiling programs from source, using RPM packages, installing wine and running Windows programs, etc. for the most part, I have had a lot of success. i am able to do most things in Linux that I used to do in Windows, and I feel that in a couple of months it will all be second nature to me like it was in Windows.

my question has to do with managing all of the installation and configuration that goes into getting the OS to have the right software, etc. i have been compiling some things from inside my home directory, and then these things (wine, for instance) install to who-knows-where. i have been putting some pre-compiled packages into /opt/ or /usr/share/ in pretty much a random fashion. i have been using RPMs sometimes as well.

i feel like i have, for the large part, lost control of my filesystem, my config, what i have installed, etc. i think that once i get the hang of linux, figure out what programs i need to run, and what configuration options i want to use, i am going to reinstall Mandrake 10 from scratch and do everything again in a more controlled fashion. are there any articles out there or general feelings on the best practices for managing all of this stuff?

thanks for the help

~ Justin
 
Old 06-03-2004, 10:12 PM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
most programs compiled from source will install into the /usr/local area

at first, it seems things installs into random locations, but eventually you will see there is a pretty cool method that goes with it

/bin usually contains programs that are just basic necessities for running linux
/sbin is the superuser equivalent

/lib usually contains libraries that are bare necessities

/usr/bin usually contains programs that are precompiled and/or come with your distro
/usr/sbin is the superuser equiv

/usr/lib contains other libraries important to run what your distro installs

/usr/local/bin usually contains programs you generically compile with ./configure
/usr/local/sbin is the superuser equiv

/usr/local/lib.... you get the idea


just realize that for pretty much any program/library you install will install to their respective necessary paths in /usr or /usr/local.... you can do "which command" to see where it is located, and if it has any other files, it will most likely be located in $PREFIX/lib or $PREFIX/include, etc

for example, wine will install its binaries into /usr/local/bin, (so $PREFIX is /usr/local); the libraries get installed into /usr/local/lib, etc.


*edit: if by control you mean package management, you can build from source and then use tools like checkinstall to build packages that will tell you exactly where everything installs, and is a handy reference for uninstallation

also, many sources come with the ability to do make uninstall, so if you want to delete wine after deleting the source, just redownload the same version's source, run configure with the same options, and issue make uninstall

Last edited by TheOneAndOnlySM; 06-03-2004 at 10:14 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
looking for server management software loonix Linux - Software 3 04-10-2006 03:22 AM
Best Practices When Installing Software Hangetsu Linux - Security 7 12-01-2005 10:35 AM
What content management or file management software is best for the job? Niceman2005 Linux - Software 2 05-10-2005 11:02 PM
Contact Management Software sohn_des_kronos Linux - Software 1 01-06-2005 06:43 AM
Management SOftware isak Linux - Software 0 06-24-2003 03:31 AM


All times are GMT -5. The time now is 04:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration