LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Poll: /usr or /usr/local
Poll Options
/usr or /usr/local

You must log in and have one post to vote in this poll. If you don't have an account, you can register here.
Results will be available after the polls close.

The nominees are:

/usr
/usr/local

Reply
 
Search this Thread
Old 11-01-2007, 10:38 PM   #1
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Rep: Reputation: 15
Install to /usr or /usr/local ?


Hey, I was just wondering what people install to and why. As Slackware users, i figure there are alot of people who are compiling from source instead of using a package manager so you really have to keep up with dependencies when you do it like that. I used to install all my stuff to /usr/local to differentiate my programs from the distribution, but I'm considerng installing to /usr to help me keep track of all my dependencies and not worry about stuff looking in the wrong place for things. I don't know if I'd do anything with /usr/local then but it just seems like it might be easier. So what's everybody else do?

EDIT: And to clarify, i was just referring to anything you install on your system that doesn't come with your distro, so if you have a different area for make installs vs. packages, just specify in your posts, Thanks ... Im sorry for not making that more clear previously

Last edited by nLEyETn; 11-02-2007 at 02:14 PM. Reason: To clarify question
 
Old 11-01-2007, 11:52 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,944

Rep: Reputation: Disabled
If you start putting non-packaged sofware in /usr, you *will* regret it sooner or later.
 
Old 11-02-2007, 12:27 AM   #3
drumz
Member
 
Registered: Apr 2005
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 188

Rep: Reputation: 33
The vast majority of extra stuff I install I use a SlackBuild from SlackBuilds.org. In that case most of it goes in /usr, but I am using Slackware's built-in package manager. In the case of manual installs, it either goes in /usr/local or /opt, but I don't have much of those. Mainly because about everything I have can be found on SlackBuilds.org. I also have a few Autopackage programs. I voted /usr/local, because I assumed you were talking about stuff that you don't use installpkg/pkgtool for.
 
Old 11-02-2007, 01:53 AM   #4
truthfatal
Member
 
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
Blog Entries: 9

Rep: Reputation: 32
I generally install to --prefix=/usr
but if I'm not using a SlackBuild, I'm using makepkg. so everything outside of $HOME is part of a tgz package and can easily be removed.
 
Old 11-02-2007, 02:31 AM   #5
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 536

Rep: Reputation: 36
I'm with rworkman. Most packages that you compile yourself seem to default to /usr/local. I've kept them like that to stop any interference with Slack packages.

Also, where the package is installed has zero to do with dependency checking.

Cheers.
 
Old 11-02-2007, 04:10 AM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Quote:
Originally Posted by MQMan View Post
I'm with rworkman. Most packages that you compile yourself seem to default to /usr/local. I've kept them like that to stop any interference with Slack packages.

Also, where the package is installed has zero to do with dependency checking.

Cheers.
It has to to with where pkg-config searches for pc files and LD_LIBRARY_PATH.

Last edited by Alien_Hominid; 11-02-2007 at 04:12 AM.
 
Old 11-02-2007, 04:28 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Only and always use /usr/local for unpackaged programs which you install you using 'make install'. /usr should only be used for packaged software.
 
Old 11-02-2007, 06:01 AM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Quote:
Originally Posted by gnashley View Post
Only and always use /usr/local for unpackaged programs which you install you using 'make install'. /usr should only be used for packaged software.
I always try to make packages. But why should unpackaged software go to /usr/local?
 
Old 11-02-2007, 06:37 AM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I install to wherever I feel like it. Usually I install anything that includes shared libraries into /usr, and everything else to /usr/local. I could just install everything to /usr, and I may decide to do it like that. I use paco for source package management, so I can remove anything that I install.

If you do install to /usr, you should make sure you're not trying to install something that is already installed, which I've done a number of times.
 
Old 11-02-2007, 11:16 AM   #10
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
Quote:
why should unpackaged software go to /usr/local?
Because it's a lot easier to wade through /usr/local than it is to try to deal with the deluge in /usr if you have to manually uninstall a program.
 
Old 11-02-2007, 01:47 PM   #11
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MQMan View Post
I'm with rworkman. Most packages that you compile yourself seem to default to /usr/local. I've kept them like that to stop any interference with Slack packages.

Also, where the package is installed has zero to do with dependency checking.

Cheers.
The problem I came up with dependencies was programs that have it hardcoded into configure scripts to look in places like /usr and not use pkg-config to find out where stuff is. Then theres Python programs which have to go into Python's prefix so i have to install them in /usr. I do like using /usr/local to keep my programs seperate from the distro's though and after reading the support for /usr/local, i'll probably continue with it when it's possible. I'm reformatting now so i just wanted to decide before i started reinstalling all my programs
 
Old 11-02-2007, 01:52 PM   #12
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by drumz View Post
The vast majority of extra stuff I install I use a SlackBuild from SlackBuilds.org. In that case most of it goes in /usr, but I am using Slackware's built-in package manager. In the case of manual installs, it either goes in /usr/local or /opt, but I don't have much of those. Mainly because about everything I have can be found on SlackBuilds.org. I also have a few Autopackage programs. I voted /usr/local, because I assumed you were talking about stuff that you don't use installpkg/pkgtool for.
What about packages you make with makepkg, do you use /usr for that?

And to clarify, i was just referring to anything you install on your system that doesn't come with your distro, so if you have a different area for make installs vs. packages, just specify in your posts, Thanks ... I also added this note at the top of the thread to make sure people see it when they vote.

Last edited by nLEyETn; 11-02-2007 at 02:10 PM.
 
Old 11-02-2007, 09:32 PM   #13
drumz
Member
 
Registered: Apr 2005
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 188

Rep: Reputation: 33
Don't use makepkg that often, but when I do it'll either go in /usr or /usr/local. Doesn't really matter to me, since I can use removepkg to get rid of it.
 
Old 11-03-2007, 11:07 AM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If I install things from source, I just use the default prefix. I've never had problems doing this and it's not like I uninstall things anyway..
 
Old 11-03-2007, 12:44 PM   #15
veerain
Member
 
Registered: Mar 2005
Posts: 364

Rep: Reputation: 38
I would better use /opt

Last edited by XavierP; 11-03-2007 at 04:27 PM. Reason: advertising removed
 
  


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
making files available in /usr/local/bin and /usr/sbin reakinator Linux - Newbie 1 10-14-2006 06:09 PM
./configure --prefix=/usr [default: /usr/local] why??? stevesk Slackware 14 07-03-2006 07:28 AM
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 06:07 PM
/usr vs /usr/local on linuxpackages.net merchtemeagle Slackware 4 10-18-2005 04:09 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 10:21 AM


All times are GMT -5. The time now is 07:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration