[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg



hi,

Cristi Banciu wrote on Thu, Aug 01, 2002 at 01:11:30PM +0300: 
cb> Is there any away to find out not using dselect or synaptic what
cb> packeges depands on a given package ?

1. Use apt-cache depends <package name>

2. Crude/stupid way... (but nice to learn about this file).

  Use /var/lib/dpkg/available itself... This shell
  script might help..
**
#! /bin/bash

if [ -n "$1" ]; then
	cat /var/lib/dpkg/available | grep -E "^Package: ${1}$" -A 12 | grep
	-E "Depends: "
else
	echo "Usage: `basename $0` <package>"
fi
**

for more fun cd into /var/lib/dpkg

  HTH,

    -Suraj

-- 
+----------------------------------------------<suraj@chennailug.org>--+
| When the sublime sink in virtues worth,                              |
| the burden of woes is hard on the earth                              |
| (worthiness (sublimity) - 10), Thirukkural                           |
+--<http://www.symonds.net/~suraj/>------------------------------------+



Reply to: