Solved

Installing Software Globally

Posted on 2001-09-15
5
190 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 100 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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