Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

debパッケージの依存関係を把握する。

aptでインストールできるツールは依存関係を自力で解決してくれますが、
以前紹介しteamviewerのようにdebパッケージ配布の場合は自力で解決しないといけません。
今回はその解決策について。

$ sudo dpkg -I teamviewer-host_armhf.deb
 new Debian package, version 2.0.
 size 11583004 bytes: control archive=1960 bytes.
      40 バイト、    1 行      conffiles
    1517 バイト、   25 行      control
    1125 バイト、   61 行   *  postinst             #!/bin/bash
     789 バイト、   51 行   *  postrm               #!/bin/bash
     682 バイト、   39 行   *  preinst              #!/bin/bash
     953 バイト、   51 行   *  prerm                #!/bin/bash
 Package: teamviewer-host
 Maintainer: TeamViewer Germany GmbH <service@teamviewer.com>
 Homepage: http://www.teamviewer.com
 Version: 15.9.5
 Architecture: armhf
 Section: non-free/net
 Priority: optional
 Depends: libc6 (>= 2.17), libdbus-1-3, libqt5gui5 (>= 5.5)       | qt56-teamviewer, libqt5widgets5 (>= 5.5)   | qt56-teamviewer, libqt5qml5 (>= 5.5)       | qt56-teamviewer, libqt5quick5 (>= 5.5)     | qt56-teamviewer, libqt5dbus5 (>= 5.5)      | qt56-teamviewer, libqt5webkit5 (>= 5.5)          | qt56-teamviewer, libqt5x11extras5 (>= 5.5) | qt56-teamviewer, qml-module-qtquick2 (>= 5.5)         | qt56-teamviewer, qml-module-qtquick-controls (>= 5.5) | qt56-teamviewer, qml-module-qtquick-dialogs (>= 5.5)  | qt56-teamviewer, qml-module-qtquick-window2 (>= 5.5)  | qt56-teamviewer, qml-module-qtquick-layouts (>= 5.5)  | qt56-teamviewer
 Recommends: ttf-liberation | fonts-liberation
 Replaces:
 Conflicts: teamviewer
 Installed-Size: 55832
 Description: Remote control solution.
  TeamViewer provides easy, fast and secure remote access and meeting solutions
  to Linux, Windows PCs, Apple PCs and various other platforms,
  including Android and iPhone.
  .
  TeamViewer is free for personal use.
  You can use TeamViewer completely free of charge to access your private
  computers or to help your friends with their computer problems.
  .
  To buy a license for commercial use, please visit http://www.teamviewer.com
  .
  This package contains Free Software components.
  For details, see /opt/teamviewer/doc/license_foss.txt