LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2005, 03:14 AM   #1
p41elvis
Member
 
Registered: Apr 2004
Location: Rotterdam
Distribution: Mandriva 2006 Community Edition
Posts: 62

Rep: Reputation: 15
where to install programs?


Hello everybody,

I'm new to Linux and I'm just wondering where I could best install my programs. At first I thought of /usr/local/bin/ but then I realised you'll have to be root to install programs in there. So then I would have to switch to my root account every time I would like to install a program. Furthermore I'm not sure if that is the right location. When trying to install NetBeans it comes up with this directory: /home/<username>/. Is this the right one to install all of my Apllications? Basically I'm looking for the Linux equivalent of the Windows "Program Files" folder. I hope somebody can help me out.

Regards,
Jethro
 
Old 04-26-2005, 03:27 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
You might be interested in my article:
http://yves.gablin.club.fr/pc/linux....ftware/install
This is for the "equivalent of Program Files" question.

Indeed, installing software on the system normally requires you to have root permissions.
You can also install software in your home directory without being root, but then it will be only for yourself. If this is what you want, take a look at "RootLess" on this page:
http://gobolinux.org/
This is an easy and organised way of managing software in the home-directory.

I hope this helps.

Yves.
 
Old 04-26-2005, 03:34 AM   #3
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
/usr/local/bin is the right directory where you can install your programs and for that you have to be root. But if you want to install in your home directory you can do that but then that program can only be used by you. For others to use it you have to provide a symblink to that. Try getting the rpm/deb installer for that package. That will place the programs inside appropiate folders.
You can also try the sudo command if you do not want to switch user.

-Prasanta
 
Old 04-26-2005, 05:57 AM   #4
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
You may want to look at an explanation of the Linux file system.
 
Old 04-26-2005, 10:36 AM   #5
p41elvis
Member
 
Registered: Apr 2004
Location: Rotterdam
Distribution: Mandriva 2006 Community Edition
Posts: 62

Original Poster
Rep: Reputation: 15
Thanx for you replies, this is what I finally choose to do:
- open a shell
- changed to root (su)
- run the install binary (./jdk-1_5_0_02-nb-4_0-ml-linux.bin)

This started a GUI which automatically entered /opt/ to install the JDK1.5 (now I can use generics ) and Netbeans 4.0. I installed the 2 programs in the /opt/, I figured the default would be fine by me. When I didn't change to root, the default was /usr/<username>, but if I would install all the program I want in there it would become quit a mess.

This link is quite nice for everybody who is trying out Linux for the first time: http://www.micronux.com/catalog/arti...articles_id=6, thanks OSourceDiplomat!
 
  


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
can't install g++ so I can't compile and install any programs musicmaniac414 Linux - Software 12 02-06-2008 09:31 PM
can't install some programs khh80 Linux - Software 2 08-02-2005 09:43 PM
How do you install programs? Sir Loin Linux - Software 16 03-15-2005 12:31 PM
where to install programs to CrotchCricket Linux - Newbie 2 10-26-2004 06:42 AM
Cannot install programs garbo73 Mandriva 16 09-24-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 PM.

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