1. 程式人生 > >ubuntu 查詢軟體依賴

ubuntu 查詢軟體依賴

本文轉自:https://blog.csdn.net/zuopaide/article/details/39344915

提示說lvm2沒有裝,但是我的本地源上有這個deb包啊,

懷疑是它的依賴沒有在本地源中,需要查詢依賴

 

如何檢視lvm2的依賴呢?

正向依賴

[email protected]:/etc/apt# apt-cache depends lvm2
lvm2
  Depends: libc6
  Depends: libdevmapper-event1.02.1
  Depends: libdevmapper1.02.1
  Depends: libreadline5
  Depends: libudev1
  Depends: lsb-base
  Depends: dmsetup
    dmsetup:i386
  Depends: initscripts
    initscripts:i386
  Depends: watershed
  Suggests: thin-provisioning-tools
  Breaks: initramfs-tools
  Breaks: <initramfs-tools:i386>
  Conflicts: lvm2:i386

反向依賴
 

[email protected]:/etc/apt# apt-cache rdepends lvm2
lvm2
Reverse Depends:
  cinder-volume
    lvm2:i386
  ubiquity
    lvm2:i386
  lxc
    lvm2:i386
  libvirt0
    lvm2:i386
  cinder-volume
    lvm2:i386
  lvm2:i386
  libdevmapper1.02.1:i386
  vbackup
    lvm2:i386
  system-storage-manager
    lvm2:i386
  system-config-lvm
    lvm2:i386
  opennebula-common
    lvm2:i386
  mylvmbackup
    lvm2:i386
  mini-buildd
    lvm2:i386
  lxctl
    lvm2:i386
  liblinux-lvm-perl
    lvm2:i386
  libguestfs0
    lvm2:i386
  ganeti
    lvm2:i386
  fai-setup-storage
    lvm2:i386
  dtc-xen
    lvm2:i386
  dracut
    lvm2:i386
  bilibop-rules
    lvm2:i386
  bilibop-common
    lvm2:i386
  autopkgtest-xenlvm
    lvm2:i386
  ubiquity
    lvm2:i386
  schroot
    lvm2:i386
  lxc
    lvm2:i386
  libvirt0
    lvm2:i386
  libdevmapper1.02.1
  clvm
    lvm2:i386
  cinder-volume
    lvm2:i386