root@ubuntu-desktop:~# clear
root@ubuntu-desktop:~# apt-cache search qq
texlive-latex-extra - TeX Live: LaTeX supplementary packages
eva - QQ IM protocol compatible client in KDE
pngnq - tool for optimizing PNG (Portable Network Graphics) images
stardict-plugin - International dictionary - common plugins
linuxqq - QQ - The most popular free instant messaging program in China.
root@ubuntu-desktop:~# apt-cache show linuxqq
Package: linuxqq
Status: install ok installed
Priority: extra
Section: Internet
Installed-Size: 6264
Maintainer: Tencent Inc.
Architecture: i386
Version: v1.0.2-beta1
Depends: gtk2.0-binver-2.10.0, libc6, libcairo2, libglib2.0-0, libgtk2.0-0, libpango1.0-0
Description: QQ - The most popular free instant messaging program in China.
* Chat with more than 590,000,000 people all over the world.
* Free to download or distribute absolutely.
root@ubuntu-desktop:~#
root@ubuntu-desktop:~# apt-cache policy linuxqq
linuxqq:
已安裝:v1.0.2-beta1
候選的軟件包:v1.0.2-beta1
版本列表:
*** v1.0.2-beta1 0
100 /var/lib/dpkg/status
root@ubuntu-desktop:~#
root@ubuntu-desktop:~# apt-cache depends linuxqq
linuxqq
依賴: <gtk2.0-binver-2.10.0>
libgtk2.0-0
依賴: libc6
依賴: libcairo2
依賴: libglib2.0-0
依賴: libgtk2.0-0
依賴: libpango1.0-0
root@ubuntu-desktop:~#
root@ubuntu-desktop:~# apt-cache redepends linuxqq
E: 無效的操作 redepends
root@ubuntu-desktop:~# apt-cache rdepends linuxqq
//查看反依賴關係
linuxqq
Reverse Depends:
root@ubuntu-desktop:~#
===========================================
apt-cache serch qq && apt-cache show linuxqq && apt-cache policy linuxqq
搜索軟件包並查看軟件包信息,查看軟件的安裝狀態
apt-cache depends linuxqq 查看linuxqq軟件的依賴關係