?
Solved

Installing Software Globally

Posted on 2001-09-15
5
Medium Priority
?
195 Views
Last Modified: 2013-12-15
Hi;

I'm just starting out with linux.  I am running Suse 7.2 personal edition.

How can I install new software such that it is accessible by all users from any directory?

For instance anyone can type "perl foo" from any directory and run perl.

I would also like to do some development on my linux box.  I would like to set up a "classpath" variable such that linux will first check for classes, compiled files in whatever directory the user is currently in and then go to a central directory that would server as a "code dump".

Is there a config file somewhere where I can create and set such a variable once and have it be global to everyone, everywhere?

How?

Thanks in advance

Steve
0
Comment
Question by:Steve34
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 400 total points
ID: 6485620
software is installed in /opt (complex applications) and/or /usr/local/bin (single programs), usually

To add a special path to all user's PATH environment variable, use the shell start up file, like
    /etc/profile for shell (sh, ksh, bash, etc.)
    /etc/csh.cshrc for csh and tcsh

and modify the PATH variable to your requirements
0
 

Expert Comment

by:modulo
ID: 7498073
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question