LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 07-06-2006, 11:54 PM   #1
doowttam
LQ Newbie
 
Registered: Mar 2006
Distribution: Ubuntu 6.06
Posts: 20

Rep: Reputation: 0
Package manager/compile from source


Is there any real advantage to compiling from source versus using a package manager like apt-get? I know that sometimes packages aren't available so compiling from source is the only way, but is there any other reason?
 
Old 07-07-2006, 12:18 AM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
compiling something from source usually makes it more specific to your software (and hardware), making it run the best it possibly could, on that machine. search around, there should be more threads like this to see more info
 
Old 07-07-2006, 01:18 AM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
One great thing about compiling from source is that you can specify what directory you want your files to go to. Say ./configure --prefix=/usr/local/ProgramName and so on. I know with apache you can even specify where you want the config files.

The great thing about a package manager is that most of them will resolve package dependencies. When I used Ubuntu it was nice using apt-get to install a package for that simple reason.

They each have their drawbacks and their uses.
 
Old 07-07-2006, 01:44 AM   #4
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
In addition to these great reasons to compile; when you configure a package (before you compile it) you can choose what features you do or don't want. with a binary whoever compiled it for you made that choice and there is no way to add features without recompiling it. for example I don't like KDE/Qt based stuff I use XFCE it works very well with gtk stuff; there are lots of programs that can be compiled to use gtk instead of qt (and vice versa if your into the bloatware thing) this makes them run faster and look nicer on my system. Another example; I have an iPod video, I like ffmpeg for my video encoding needs. most methods for making a video for an ipod with linux involve two passes one for video and another for audio. ffmpeg supports aac audio if enabled at compile time. So while ffmpeg won't be able to do the audio for an iPod video when installed as a binary on most distros, mine can so I can encode movies for my iPod in 1 step. I save time and it is a much simpler method then demuxing, encoding audio with one app, encoding video with another then multiplexing them back again.

Portage; gentoo's package management system automatically takes care of dependencies, configures acording to my 'use flags' and then compiles them.

Last edited by johnson_steve; 07-07-2006 at 01:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
latex2e package unavailable in package manager or apt-get cesine Debian 2 07-11-2006 02:31 PM
Poll: Yast Package Manager vs. Smart Package Manager in 10.1 agentchange Suse/Novell 6 06-02-2006 08:29 AM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM
Get package from linuxpackages.net or compile from source? need advice kingsz1 Slackware 14 01-05-2006 02:09 AM
Package Manager stuck on source lhoff Linux - Newbie 0 12-30-2001 06:51 PM


All times are GMT -5. The time now is 07:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration