Debianのパッケージ管理


【パッケージの名称】


XXX-1.5.0-2-i386.deb

①   ② ③④  ⑤


①パッケージの名称

②バージョン番号

③リリース番号

④アーキテクシャ

⑤拡張子


【指定したパッケージがどのパッケージからインストールされたか調べる】

例:ここでは、opensshについて調べています。

$ dpkg -S 'openssh' | more

openssh-server: /usr/share/apport/package-hooks/openssh-server.py
openssh-server: /usr/lib/openssh/sftp-server
openssh-server: /etc/ufw/applications.d/openssh-server
openssh-client: /usr/share/apport/package-hooks/openssh-client.py
openssh-server: /usr/share/doc/openssh-client/examples/sshd_config
openssh-server: /usr/share/doc/openssh-server
openssh-server, openssh-client, ssh-askpass-gnome: /usr/lib/openssh
openssh-client: /usr/share/doc/openssh-client/faq.html
openssh-server, openssh-client: /usr/share/doc/openssh-client
openssh-client: /usr/share/doc/openssh-client/README.compromised-keys.gz
ssh-askpass-gnome: /usr/lib/openssh/gnome-ssh-askpass
openssh-client: /usr/share/doc/openssh-client/changelog.gz
openssh-client: /usr/share/doc/openssh-client/README
openssh-client: /usr/share/doc/openssh-client/OVERVIEW.gz
openssh-client: /usr/share/doc/openssh-client/copyright
openssh-client: /usr/lib/openssh/ssh-keysign

省略


【インストール済のパッケージ一覧の作成】

dpkg -l | more

|/ 名前 バージョン 説明
+++-====================================-===============================================-============================================
ii acpi-support 0.136.1 scripts for handling many ACPI events
ii acpid 1.0.10-5ubuntu2.1 Advanced Configuration and Power Interface e
ii adduser 3.112ubuntu1 add and remove users and groups
ii adium-theme-ubuntu 0.1-0ubuntu1 Adium message style for Ubuntu
ii aisleriot 1:2.30.0-0ubuntu6 Solitaire card games
ii alacarte 0.13.1-0ubuntu1 easy GNOME menu editing tool
ii alsa-base 1.0.22.1+dfsg-0ubuntu3 ALSA driver configuration files
ii alsa-utils 1.0.22-0ubuntu5 ALSA utilities
ii anacron 2.3-13.1ubuntu11 cron-like program that doesn't go by time
ii anthy 9100h-0ubuntu3~ja3 A Japanese input method (backend, dictionary
ii apache2 2.2.14-5ubuntu8.4 Apache HTTP Server metapackage
ii apache2-mpm-worker 2.2.14-5ubuntu8.4 Apache HTTP Server - high speed threaded mod
ii apache2-utils 2.2.14-5ubuntu8.4 utility programs for webservers
ii apache2.2-bin 2.2.14-5ubuntu8.4 Apache HTTP Server common binary files


【パッケージに含まれるファイル一覧を表示する】

$ dpkg -L bash | more

/.
/bin
/bin/bash
/etc
/etc/skel
/etc/skel/.bashrc
/etc/skel/.profile
/etc/skel/.bash_logout
/etc/bash.bashrc
/usr
/usr/share
/usr/share/doc
/usr/share/doc/bash
/usr/share/doc/bash/CHANGES.gz
/usr/share/doc/bash/NEWS.gz
/usr/share/doc/bash/INTRO.gz


【パッケージの情報を表示する】

$ dpkg -s bash | more

Package: bash
Essential: yes
Status: install ok installed
Priority: required
Section: shells
Installed-Size: 3492
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com >
Architecture: i386
Version: 4.1-2ubuntu3
Replaces: bash-completion (<< 20060301-0), bash-doc (<= 2.05-1)
Depends: base-files (>= 2.1.12), debianutils (>= 2.15)
Pre-Depends: dash, libc6 (>= 2.11), libncurses5 (>= 5.6+20071006-3)
Recommends: bash-completion (>= 20060301-0)
Suggests: bash-doc
Conflicts: bash-completion (<< 20060301-0)