LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-17-2010, 04:24 AM   #1
mahaifang86
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Smile Where can I find the dependent information like that in the control file of .deb file


Hi all,

As I know, .deb package usually includes a control file. Take libfreetype6_2.3.9-5ubuntu0.4_i386.deb for example, its control file includes the following content:


------------------------------------------------------------------------

Package: libfreetype6

Source: freetype

Version: 2.3.9-5ubuntu0.4

Architecture: i386

Maintainer: Ubuntu Core Developers

Installed-Size: 704

Depends: libc6 (>= 2.4), zlib1g (>= 1:1.1.4)

Conflicts: freetype, xpdf-reader (<< 1.00-4)

Section: libs

...


------------------------------------------------------------------------

Question 1:

I want to know how to find the information like " Depends: libc6 (>= 2.4), zlib1g (>= 1:1.1.4) " myself. From the configure file, Makefile, README or something else?

Question 2:

Does there exist the tool generating the control file automatically?

I'm so grateful for your answer.
 
Old 11-17-2010, 04:46 AM   #2
swampthing001
LQ Newbie
 
Registered: May 2005
Distribution: UNR, Slackware
Posts: 15

Rep: Reputation: 1
Greetings,

Here is a site that will give you tons of information on debian packages (.deb files) http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html

Also, if your using apt you can see what dependencies a package needs with apt-rdepends.

To install apt-rdepends
Code:
sudo apt-get install apt-rdepends
Using apt-rdepends to list dependancies for a particular package
Code:
apt-rdepends [options] [pkgs ...]
For more info on apt-rdepends check out this site:
http://www.debianadmin.com/recursive...-rdepends.html

To generate control files for Debian packages use dpkg-gencontrol
This site goes in-depth on control files http://www.debian.org/doc/debian-pol...rolfields.html

--Nick
 
Old 11-17-2010, 09:17 AM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
Actually, to list the entire control file type:

Code:
dpkg -p <package>
This will work even when the package isn't installed.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I run this .deb file: install_flash_player_10_linux.deb abefroman Linux - Desktop 1 11-04-2009 10:02 AM
LM Sensors Help, Can't access procfs/sysfs file Unable to find i2c bus information; Whiskers Linux - Software 16 11-03-2008 04:58 PM
How to find out indone information and datablocks information in a file system chaitanya1982 Linux - Newbie 1 09-24-2008 01:58 AM
Where can find the file containg the information of the printer driver Naveen Sriram Linux - Software 1 09-24-2004 05:05 AM
How to convert .deb file to .tar file on redhat? zhu_liheng Linux - Newbie 1 01-15-2004 08:11 PM


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