SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-08-22 05:16:48

coffeeandmeat
Member
Registered: 2011-08-21
Posts: 21

Where does crunchbang like to install things?

I have gotten very used to adding the paths of my executables to my .bashrc  (and then linked by .profile). But does #! like to install things to /lib or /lib64 or /usr/bin or something so I don't have to do this? I remember writing a script to automatically add the path for where ever I installed a file, but was wondering if this can be bypassed by installing my programs to the "right" directory. I am not what I would call novice to linux, but definitely can improve. Always smile

Thanks.
Coffee and Meat

Offline

Help fund CrunchBang, donate to the project!

#2 2011-08-22 05:19:40

coffeeandmeat
Member
Registered: 2011-08-21
Posts: 21

Re: Where does crunchbang like to install things?

I realize maybe this is in the wrong section. I apologize and if a moderator wishes to move this to the right topic please do so!

Thanks and sorry I will get used to the forums!
Coffee and Meat

Offline

#3 2011-08-22 05:41:54

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: Where does crunchbang like to install things?

Most programs will install to a folder in your $PATH, an environment variable equal to all of the folders you can run programs from without typing out the full path name. To see all of the folders in your $PATH, type

echo $PATH

to find out where a specific executable resides, like terminator for example, enter

whereis terminator

most programs install to /usr/bin or somewhere else in your /usr folder.

Offline

#4 2011-08-22 05:50:41

coffeeandmeat
Member
Registered: 2011-08-21
Posts: 21

Re: Where does crunchbang like to install things?

Ok right. So I already added /usr/bin to my PATH but doesn't whereis only work within that PATH variable? Otherwise I would just use find command. I am just asking, where should I make install my programs? What is commonly used directory for this? /usr/bin? This is something I have never really known.

Last edited by coffeeandmeat (2011-08-22 05:53:46)

Offline

#5 2011-08-22 07:21:53

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Where does crunchbang like to install things?

^ you might find this useful: http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/

there is no consensus about where you should install stuff. there is just a hierarchy with some dedicated folders, but in the end it is up to you to decide where you want to leave your software.

Offline

#6 2011-08-22 10:52:57

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Where does crunchbang like to install things?

Crunchbang is debian. Debian uses it's own package management system, you don't really "make install" packages, I'd rather "make checkinstall" to create a minimal .deb which can be added by dpkg.

If you really insist on installing packages manually, read the link rhowaldt provided and install your "local" stuff in /usr/local/*.


I'm so meta, even this acronym

Offline

#7 2011-08-22 13:33:50

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Where does crunchbang like to install things?

^ read it anyway, it is good information, and your system makes use of it so no wasted time there!

Offline

#8 2011-08-23 12:21:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,262
Website

Re: Where does crunchbang like to install things?

coffeeandmeat wrote:

I already added /usr/bin to my PATH

/usr/bin should already be in your PATH, by default.

but doesn't whereis only work within that PATH variable?

No. whereis tells you where various files connected with a certain package are located. (man whereis) A possibly more useful command in this case is 'which', which checks your PATH and tells you what file would be executed if you called that particular command. (man which)

(...feeling a bit rtfm today... ? smile )


John     Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Online

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo