[Gllug] Recommended distro

Richard Jones rich at annexia.org
Tue Dec 14 14:43:09 UTC 2004


On Tue, Dec 14, 2004 at 10:28:46AM +0000, Huw Lynes wrote:
> But how do you work out what a packages dependencies are? In rpm you can do:
> rpm -qp --requires somelib-1.1-1.i386.rpm
> And you can do the reverse:
> rpm -q --whatrequires libfoo.so


apt-cache show <packagename> will show the dependencies, eg:

$ apt-cache show openoffice.org | grep -i depends
Depends: openoffice.org-debian-files (>> 1.1.2+1.1.3), openoffice.org-bin (>> 1.1.2+1.1.3), openoffice.org-l10n-en (>> 1.1.2+1.1.3) | openoffice.org-l10n-1.1.3, dictionaries-common (>= 0.10) | openoffice.org-updatedicts, ttf-opensymbol
Depends: openoffice.org-debian-files (>> 1.1.1+1.1.2rc3), openoffice.org-bin (>> 1.1.1+1.1.2rc3), openoffice.org-l10n-en (>> 1.1.1+1.1.2rc3) | openoffice.org-l10n-1.1.2, dictionaries-common (>= 0.10) | openoffice.org-updatedicts, ttf-opensymbol

Or you can use 'apt-cache depends' or 'apt-cache rdepends'.

The one thing which annoys me which you can't do with dpkg is verify a
package installation (ie. check that none of the files have been
modified).

There are a bunch of apt-related utility tools.  They're available as
separate packages and not normally installed by default.  For example,
apt-show-versions is extremely useful.  In fact, just looking through
the list, I see:

$ apt-cache show apt-rdepends
Package: apt-rdepends
Priority: optional
Section: utils
Installed-Size: 88
Maintainer: Simon Law <sfllaw at debian.org>
Architecture: all
Version: 1.2.0-2
Depends: perl, libapt-pkg-perl (>= 0.1.11)
Suggests: springgraph | graphviz
Filename: pool/main/a/apt-rdepends/apt-rdepends_1.2.0-2_all.deb
Size: 12818
MD5sum: df5c459a6dc6218694e594a510268d5b
Description: Recursively lists package dependencies
 This utility can recursively list package dependencies, either forwards
 or in reverse.  It also lists forward build-dependencies.  The output
 format closely resembles that of `apt-cache depends`.  As well, it can
 generate .dot graphs, much like apt-cache in dotty mode.

Rich.

-- 
Richard Jones.  http://www.annexia.org/  http://www.j-london.com/
>>>   http://www.team-notepad.com/ - collaboration tools for teams   <<<
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
http://winwinsales.co.uk/ - CRM consultancy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20041214/2daed9dc/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list