LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-06-2007, 10:00 AM   #1
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Is there an easy way to automatically install development packages?


Hello all,
For example, when installing package libA, can I tell my system to automatically install the corresponding dev package (usually libA-dev, if any).

Thanks.
 
Old 01-06-2007, 11:12 AM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
You could create a wrapper script that takes package names as arguments and then does something like:

for i in $@; do
apt-get install $i ${i}-devel
done
 
Old 01-06-2007, 11:25 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,901
Blog Entries: 29

Rep: Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537
Why bother? APT will pull them in if they are needed. You could always set aptitude to install recommended and suggested packages, but then you get a lot of crap you really don't need.
 
Old 01-06-2007, 02:08 PM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by penguiniator
You could create a wrapper script that takes package names as arguments and then does something like:

for i in $@; do
apt-get install $i ${i}-devel
done
I thought about something like that but there some issues, some packages don't conform. eg libtheora0 & libtheora-dev. Quite a few packages do not have seperate -dev packages and apt-get halts at non-existant packages. I was hoping there was a nice easy way builtin somewhere but it is now obvious there isn't: after looking around I noticed that most packages do not mention their corresponding -dev packages in the package relations, so any form of apt-related automatic method is off the table, so I guess it's back to manual search and install for now.

Quote:
Originally Posted by craigevil
Why bother?
Mainly because I like to compile things alot and need all the headers installed for this. Like the other day I needed to compile a kde app. I had to grab dev packages for X, kdelibs, qt and quite a few others... I figured it would be nice just to have them installed already , just like I do on my LFS box.

Anyway thanks for replying.
 
Old 01-07-2007, 12:15 PM   #5
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
what about build-dep?

#apt-get build-dep package

as I understand it, that should download all the packages required to build package. I guess this only works if the software you're compiling is already in the APT repos with listed build-dependencies.
 
  


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
Easy way to install packages? flycast Linux - Software 4 12-06-2006 06:51 PM
Aptitude: How do install suggested packages automatically? Akhran Debian 7 09-06-2006 03:57 PM
Advisable to install suggested packages automatically? Akhran Debian 2 08-23-2006 01:42 AM
Development packages satimis Fedora 2 06-06-2005 02:02 AM
X Development Packages AmdMhz Linux - Software 2 09-29-2004 02:02 PM

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

All times are GMT -5. The time now is 11:34 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