Question: where to keep scripts for new software
gravatar for  DataFanatic
18 months ago by
DataFanatic150 wrote:

When downloading software in a unix system to a bin directory $HOME/bin a new directory containing the scripts is created $HOME/bin/packagedir adding this to the path everytime you download a new package makes the $PATH long and complicated. Would you advice to transfer all the scripts from the original package dir to the $HOME/bin this way all scripts are visible if bin is in the path? Thanks

unix install $path • 341 views
ADD COMMENTlink written 18 months ago by DataFanatic150

Not really a bioinformatics question, but I'd suggest creating a symlink to $HOME/bin/ This also allows you to keep your downloaded software in another location, or multiple locations, to keep everything tidy.

ADD REPLYlink written 18 months ago by WouterDeCoster43k

Yes,I apologize if this is not within the bioinformatics subject, but it is certainly a fundamental (basic but fundamental) concept also used in bioinformatics.

How can one create a symlink from $HOME/path/to/package to $HOME/bin
Thank you!!

ADD REPLYlink written 18 months ago by DataFanatic150

Google “symlinking” or “softlinking”.

ADD REPLYlink written 18 months ago by Joe16k

I’d add that I think it’s perfectly normal for a PATH to become long and complicated, particularly if you rely on local installs instead of system wide.

A good approach is to have each element of the PATH as a separate export command in one of your dotfiles (commonly .bashrc or .profile). It’s then pretty trivial to excise/rearrange the elements by reordering the exports.

ADD REPLYlink modified 18 months ago • written 18 months ago by Joe16k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1263 users visited in the last hour