Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know from research that the debate over source vs binary is close, with maybe source edging out binary a tiny bit. I would like to know what situations would source code definitely be the way to go. I know this is a very generic question but I guess I'm just looking for some generic answers! Thanks in advance!
The only time I know of that source beats binary is when a security patch is supplied (or the source has been patched) in source before the binaries from a distribution are ready; AND there is an ongoing threat.
It was this reason I used to automatically rebuild sendmail, bind, ssh, ntp, and a few other tools, from source. At the time I was supporting IRIX, Solaris, and Linux systems. These projects tended to have security fixes provided faster than the official corporate repositories would have them.
The downside is that you have to accept the responsibility for final/production testing.
It allowed me to pass a number of security audits where others would fail. We called it "proactive support". Where source wasn't available (Some Solaris/Irix systems and tools, and no mitigation known) we would still fail.
The only OTHER situation is where the tool/utility didn't work properly, but where the latest source would (SAMBA fit this a couple of years ago, the performance of the available binary sucked, but the latest updates fixed that, so we replaced the binary with a locally compiled source).
The downside is that you have to accept the responsibility for production testing.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
There are things that, yes, you can build it yourself from source but, no, you probably don't need to do that.
For example: Oracle Java, Oracle VirtualBox, Apache OpenOffice, The Document Foundation LibreOffice are all open source but are also all available as "installable" packages.
Similarly, Mozilla Firefox, Thunderbird and SeaMonkey (all of which can be built from source).
Thing is, if you're a purist you will take the time and trouble to download the source, read the build instructions and have at it. If the build is successful, installs and works, there you go.
You will spend hours doing so and, essentially, you're just watching compilation fly by on the screen.
On the other hand, there are any number (probably in the millions) of packages, utilities, tools, whatever that are only available as source and almost always come with a configure-make-make install method for building -- there is nothing whatsoever wrong with building from source in those cases and you'll have a piece of software that you would not otherwise have access to. You may, in some cases, need to install required packages before you can build the one you really want (and they'll most likely be configure-make-make install too). You can build an entire Linux system from source if you want to (might take a while, that).
You may want or need to enable an option in a ready-built package and, having the source, you can do that.
It's really a balance between availability and time (yours). I build from source, I download and install already-built package software.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.