0

New to Linux (kinda) I'm wanting to set up my system for building from source. I have read that packages built from source should go into /usr/local/src. However, I have also seen on other forums some people prefer to store such packages in their home folder, saying they prefer them to be completely isolated. I was hoping for some more input on this issue. Where to store binaries, source packages, libararies etc.. Thank you.

2
  • Suggestion: don't do that, unless you lack admin rights. Software management is much easier if you make a package in the way that your distribution normally does and install that
    – Fox
    Jul 1, 2017 at 16:00
  • Possible duplicate of Where should I put software I compile myself?
    – Kusalananda
    Jul 1, 2017 at 17:58

1 Answer 1

1

I would recommend using your distribution's package manager if possible, simply because once you start installing a lot of stuff from source keeping up updates, dependencies, etc. becomes kind of a pain... and yes, I did a LFS system...

That said, when I ran Slackware I always installed "everything" from the discs and then anything extra I wanted I would configure to be put in /opt/softwarename-version (ie, ./configure --prefix=/opt/foo-1.3.2)

It really doesn't matter where you install things, AS LONG AS you can easily add the libraries, binaries, etc locations to the relevant environment variables like $PATH and in /etc/ld.so.conf

1
  • Yes, I don't plan to install many things from source, only really if I need too. And to just tinker around a bit so I could learn. It's on a RPi and I do backups, so it's not so much a bother of something goes wrong. Thanks for the info
    – m147
    Jul 2, 2017 at 3:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.