LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-12-2006, 05:24 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
Recommended way to install from source code and yet manageable by package system?


Suppose I download the source.tar. What is the recommended way to install from the source code and yet manageable by the aptitude package system?

One method I read of is to install (.configure, make, checkinstall) with the help of checkinstall package and then manually install the deb package created with dpkg.

Is there a better method?

Thanks !
 
Old 03-12-2006, 05:49 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I think that what you really want is Gentoo. The entire distribution is source. Every file in the system is compiled on your computer. I just got Gentoo 2006.0 installed on a computer. It was a bit tricky. They have just started using a live/install cd. The installer didn't work so I had to use their old method of installing, as described for the 2005.x releases. I think that if you want a source distribution you may find Gentoo to be satisfying. Plus their package management utility, emerge, is a thousand times better than Debian's APT family of package management utiltities.

www.gentoo.org/doc/en/handbook/handbook-x86.xml
 
Old 03-12-2006, 05:58 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
The only way to get something like apt to see packages is for them to be packages to start with. Some source files contain a .spec file which can be used to build rpms from source. Another way is to use a generic .spec file to build the rpm from. If the rpm outhere has dependienc issues one can get the src.rpm if one exist and build your own rpm from that so it matches your current package version levels unless the src.rpm has minimum version levels in it.

Brian1
 
Old 03-12-2006, 06:17 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I think the method you described, using checkinstall is pretty close to state-of-the-art. aptitude has some awareness of packages installed locally even without the package manager. At least it can give you a list of them, but I'm sure it desn't keep track of all their libraries, etc.

Package managers are almost a necessity for a well administrated system, which, I'm sure, is the reason Gentoo or any distribution which wishes to be taken seriously, uses one.

Quote:
...emerge, is a thousand times better than Debian's APT family ...
Ha ha ha!
 
Old 03-12-2006, 06:28 PM   #5
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
What you want is the debian source.
apt-get source <pakage name>
Modify the source to your hearts content
run dpkg-buildpackage
Then install the resulting deb(s).
 
Old 03-12-2006, 06:54 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Some source packages have both RPM and DEB targets for making a package which you can install the normal way. One example is ndiswrapper.
 
Old 03-12-2006, 10:03 PM   #7
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Original Poster
Rep: Reputation: 30
However installing the resulting deb with 'dpkg -i' does not automatically resolve dependencies issue (ie. by downloading the required dependencies from the Internet). Also, any dependencies you installed manually would not be recognized by aptitude. ie. When you uninstall the package, aptitude would not automatically uninstalled its dependencies too.

A potential package that might solve the dependency issue with dpkg is gdebi. However, I'm not sure if gdebi will marked those downloaded dependencies as 'automatically installed'(so that they can also be automatically uninstalled when the parent package is uninstalled). If anyone can elaborate on this software, it would be great!


Quote:
Originally Posted by dracae
What you want is the debian source.
apt-get source <pakage name>
Modify the source to your hearts content
run dpkg-buildpackage
Then install the resulting deb(s).
 
  


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
Which source code control system do you prefere? BuckRogers01 Linux - Software 1 03-03-2006 06:00 PM
Install application from source code UltraSoul Linux - Software 2 07-29-2005 01:23 PM
how to install kernal-source code? jmg1894 Linux - Software 8 06-07-2004 06:06 PM
Source code for rh9 games package??? Quantum0726 Red Hat 0 12-29-2003 02:42 PM
Where do you install source code arkamir Linux - Software 3 12-01-2003 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:20 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
Open Source Consulting | Domain Registration