LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-04-2008, 02:50 PM   #1
asininity
Member
 
Registered: Apr 2007
Posts: 52

Rep: Reputation: 16
Installing from source


I'm using Ubuntu 7.10 and have never installed anything from source as it always goes wrong, always! I've recently install clamav from source because its newer than the one in the synaptic package manager, I have some questions.

If I install for source will/should the program show up in Synaptic? As it doesn't at present.

How do you uninstall something you've installed from source? Or is it different for each package?

Any help is appreciated.
 
Old 02-04-2008, 03:02 PM   #2
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
Yes. it is different for each package. I was told to trace back what get copied during the "make install" and manaully delete them.

A better way is to create your own rpm from the src, and install it from rpm. This way you can uninstall it easily. Creating an rpm seems to be simple, but I still don't know how to create one.
 
Old 02-04-2008, 03:05 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,478

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
Quote:
Originally Posted by asininity View Post
If I install for source will/should the program show up in Synaptic? As it doesn't at present.
Nope; Synaptic is your "package software manager;" if you install from source, it will not know that you did.
Quote:
How do you uninstall something you've installed from source? Or is it different for each package?
Usually, not always though, you can make uninstall.
 
Old 02-04-2008, 03:11 PM   #4
asininity
Member
 
Registered: Apr 2007
Posts: 52

Original Poster
Rep: Reputation: 16
Thanks guys, just one more question.

Is it better to install from source? As in because its configured to the computer better than .deb's and installing from synaptic?
 
Old 02-04-2008, 03:13 PM   #5
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
I'll add that you can get source installs to show up in synaptic, though i don't know how useful it is, i.e. I don't know if synaptic will know that you've upgraded package X to version Y or if it will just see two things called package X. I believe the latter to be true.

IIRC, dpkg gets involved, though I don't remember the syntax. I bet google can help you out if you really want to do this, but again, I don't know why you would.

edit: As a matter of fact, now that I think of it, the kernel that shipped with Ubuntu 6.1 had a bug in nfs. For this reason, I had to install a new kernel from source & did so in such a way that it went into synaptic. Even then, the update manager continuously tried to "upgrade" my kernel to an older version (one that was newest in the repo, but not newer than the one I had installed). So, there's really no reason to install from source in such a way that it shows up in synaptic other than for searching.

Last edited by BrianK; 02-04-2008 at 03:19 PM.
 
Old 02-04-2008, 03:16 PM   #6
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by asininity View Post
Thanks guys, just one more question.

Is it better to install from source? As in because its configured to the computer better than .deb's and installing from synaptic?
In this day and age, it makes such little difference that the pain of not having the software being controlled by the package manager outweighs the tiny bit of performance gain you may or may not get by compiling for your specific machine.

The only other advantage I see to compiling from source is more control over the compilation itself - i.e. where it installs, what libs to use, etc.

Summary: ALWAYS use the package manger unless you have a *really* good reason not to.
 
Old 02-04-2008, 03:32 PM   #7
asininity
Member
 
Registered: Apr 2007
Posts: 52

Original Poster
Rep: Reputation: 16
Thanks again Brian, I'm really doing it for a learning experience and to loose some of the fear of the command line but this:

Quote:
The only other advantage I see to compiling from source is more control over the compilation itself - i.e. where it installs, what libs to use, etc.
went straight over my head so I fear I have a lot lot more to learn! I really just wanted to find out if it should have shown up in synaptic because it didn't and I wondered if this was something I'd done wrong. Just got to figure out why freshclam wont update now (I'm assuming a dependency somewhere).
 
  


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
Installing from source serg.kr Linux - Software 2 07-24-2007 08:09 PM
Installing php package after installing from source shubb Slackware 4 03-14-2006 11:19 AM
Installing from source, installing from CVS and the E-17 window manager... Buffbannana049 Ubuntu 10 02-15-2006 12:27 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 06:42 PM
installing the source...... obscure-shadow Linux - Software 6 11-19-2004 12:45 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration