Find the answer to your Linux question:
Results 1 to 2 of 2
I was installing Java, and they wanted to install it in the /opt directory. However, that's not on the default path, so my options are: 1. Add another directory to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    21

    Where to Install Programs?


    I was installing Java, and they wanted to install it in the /opt directory. However, that's not on the default path, so my options are:
    1. Add another directory to the path
    2. Create a symbolic or hard link from /usr/local to the Java install directory
    3. Reinstall Java in /usr/local
    It sounds like to me that (3) is the best option, what do you guys think? If I add another directory to the path I could clutter up my path...

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    I'd just add the directory to your path. It's perfectly acceptable to do that.

    just add the line:
    Code:
    PATH=$PATH:/opt/java/bin
    to your ~/.bashrc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •