在08-2-16,zhengyuji@gmail.com <zhengyuji@gmail.com> 写道:
On Sat, Feb 16, 2008 at 05:12:48PM +0800, cathayan wrote:
> 2008/2/16 Wing Sun <chunyang.sun@sw-linux.com>:
> > 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
这样就可以了
dpkg -l `apt-cache depends xfce4-battery-plugin | grep Depend |awk '{print $2}'`