LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Where can I find the dependent information like that in the control file of .deb file (https://www.linuxquestions.org/questions/ubuntu-63/where-can-i-find-the-dependent-information-like-that-in-the-control-file-of-deb-file-844780/)

mahaifang86 11-17-2010 04:24 AM

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.

swampthing001 11-17-2010 04:46 AM

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

Kenny_Strawn 11-17-2010 09:17 AM

Actually, to list the entire control file type:

Code:

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


All times are GMT -5. The time now is 06:00 PM.