Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Installing Software Globally

Posted on 2001-09-15
5
Medium Priority
?
201 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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

618 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