On Sat, Feb 16, 2008 at 05:12:48PM +0800, cathayan wrote: > 2008/2/16 Wing Sun <[EMAIL PROTECTED]>: > > apt-cache depends packagename > 这个命令的结果有点简单,bugs.debian上面一般是这样的: > Kernel: Linux 2.6.23-1-686 (SMP w/1 CPU core) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/bash > Versions of packages xfce4-battery-plugin depends on: > ii libatk1.0-0 1.20.0-1 The ATK accessibility toolkit > ii libc6 2.7-5 GNU C Library: Shared libraries > ii libcairo2 1.4.12-1 The Cairo 2D vector graphics > libra > ii libglib2.0-0 2.14.4-2 The GLib library of C routines > ii libgtk2.0-0 2.12.3-2 The GTK+ graphical user interface > ii libpango1.0-0 1.18.3-1 Layout and rendering of > internatio > ii libxfce4util4 4.4.2-1 Utility functions library for > Xfce > ii libxfcegui4-4 4.4.2-1 Basic GUI C functions for Xfce4 > ii xfce4-panel 4.4.2-1 The Xfce4 desktop environment > pane > > xfce4-battery-plugin recommends no packages. >
dpkg -l `apt-cache depends xfce4-battery-plugin | grep Dep` > output 结果中出现的 “No packages found matching Depends” 全部忽略好了。 apt-cahce depends xfce4-battery-plugin | grep Reco >> output 最后,看 output 文件就行了。你要的东西全在里面。 觉得有意思的话,就把上面 2 句写成脚本好了。 Regards, G -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

