Wednesday, June 3, 2015

linux - Where to put binaries so they are always in path and can be found easily

I am making quite some binaries, scripts, etc. that I want to install easily (using my own RPM packages). Since I want them accessible for everyone, my intuition would be to put them in /usr/bin;




  • no need to change PATH



However, my executables now disappear in a pool of all the others; how can I find back all the executables I put there in an easy way?




I was thinking of:




  • A subdirectory in /usr/bin (I know I cannot do this; just to illustrate my thinking).

  • Another directory (/opt/myself/bin) and linking each executable to /usr/bin (lots of work).

  • Another directory (/opt/myself/bin) and linking the directory to /usr/bin (is this possible?).



What would be the "best, most Linux-compliant way" to do this?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...