On 9/21/19 12:03 AM, Mykola Krachkovsky wrote:
пʼятниця, 20 вересня 2019 р. 10:58:27 EEST Simon Lees написано:
I install all such software into /opt ie /opt/git then have /opt/git/bin ahead of /usr/bin in my path.
I think if source stuff is primary, better to place it into /usr/local prefix, it's already in $PATH before /usr/bin, and can be used without any additional changes.
Because if i''m working on project "foo" and project "baa" and they both depend on different versions of the same library or tool "cats" then you can end up with two versions of cats in /usr/local that may conflict or do nasty things to each other where as if I put "foo" in /opt/foo and "baa" in /opt/baa I can then have multiple versions of "cats" in each, and if I choose to no longer care about baa then I can just rm -f /opt/baa rather then running make uninstall on a bunch of things in /usr/local which might uninstall parts of something I care about for another project. So generally I find the trade off of greater flexibility worth while for needing to add something extra to my path or create an extra symlink into /opt/bin. Having said that in my current job I pretty much don't need anything in /opt although in the past I have had a reasonable amount there. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org