Where should I install programs that come as .tar.gz files?

asked 2015-11-21 13:15:56 -0500

TMiguelT gravatar image

Recently I've come across a number of programs that can't be installed through the package manager, but rather come as .tar.gz files which contain a folder structure a lot like that found in /usr. For example NodeJS has an archive like this, and WebStorm, a JavaScript IDE, has an archive like this.

Because of this directory structure, I have been extracting these folders to the /usr folder because all the subfolders seemed the same (e.g. the node binary in <archive>/bin/node went into /usr/bin/node). Is this the right place to put them? Will the permissions be all correct or will I need to change the owner of any of these files?

edit retag flag offensive close merge delete

Comments

3

Not sure if this is a writen rule, but for what I have seem:

All programs that you compile your self, from source will go under /usr/local/

All programs that are binary files are set under /opt/

To have the work you may need to add their path on the PATH environment variables on some cases in your .bash_profile or bashrc

Hope this help

aeperezt gravatar imageaeperezt ( 2015-11-21 16:08:10 -0500 )edit

Shouldn't I extract everything to /usr/local then because the bin folder is already in the PATH and I don't need to edit it then?

TMiguelT gravatar imageTMiguelT ( 2015-11-22 08:24:11 -0500 )edit