dbus 套件探索

下載套件

下載「dbus」這個套件。

$ apt download dbus

解開套件

解開「dbus_1.10.6-1ubuntu3_amd64.deb」

$ dpkg -x dbus_1.10.6-1ubuntu3_amd64.deb dbus

觀看資料夾結構

執行

$ tree dbus

顯示

dbus
├── etc
│   ├── dbus-1
│   │   ├── session.d
│   │   └── system.d
│   ├── default
│   │   └── dbus
│   ├── init
│   │   └── dbus.conf
│   └── init.d
│       └── dbus
├── lib
│   └── systemd
│       └── system
│           ├── dbus.service
│           ├── dbus.socket
│           ├── multi-user.target.wants
│           │   └── dbus.service -> ../dbus.service
│           └── sockets.target.wants
│               └── dbus.socket -> ../dbus.socket
├── usr
│   ├── bin
│   │   ├── dbus-cleanup-sockets
│   │   ├── dbus-daemon
│   │   ├── dbus-monitor
│   │   ├── dbus-run-session
│   │   ├── dbus-send
│   │   ├── dbus-update-activation-environment
│   │   └── dbus-uuidgen
│   ├── lib
│   │   ├── dbus-1.0
│   │   │   └── dbus-daemon-launch-helper
│   │   └── tmpfiles.d
│   │       └── dbus.conf
│   └── share
│       ├── bug
│       │   └── dbus
│       │       └── control
│       ├── dbus-1
│       │   ├── services
│       │   ├── session.conf
│       │   ├── system.conf
│       │   └── system-services
│       ├── doc
│       │   └── dbus
│       │       ├── AUTHORS.gz -> ../libdbus-1-3/AUTHORS.gz
│       │       ├── changelog.Debian.gz -> ../libdbus-1-3/changelog.Debian.gz
│       │       ├── copyright
│       │       ├── NEWS.gz -> ../libdbus-1-3/NEWS.gz
│       │       ├── README.Debian
│       │       └── README.gz -> ../libdbus-1-3/README.gz
│       ├── lintian
│       │   └── overrides
│       │       └── dbus
│       ├── man
│       │   └── man1
│       │       ├── dbus-cleanup-sockets.1.gz
│       │       ├── dbus-daemon.1.gz
│       │       ├── dbus-monitor.1.gz
│       │       ├── dbus-run-session.1.gz
│       │       ├── dbus-send.1.gz
│       │       ├── dbus-update-activation-environment.1.gz
│       │       └── dbus-uuidgen.1.gz
│       └── upstart
│           └── sessions
│               └── dbus.conf
└── var
    └── lib
        └── dbus

34 directories, 34 files

若有安裝這個套件的話,可執行

$ dpkg -L dbus

顯示

/.
/etc
/etc/init.d
/etc/init.d/dbus
/etc/dbus-1
/etc/dbus-1/system.d
/etc/dbus-1/session.d
/etc/init
/etc/init/dbus.conf
/etc/default
/etc/default/dbus
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/dbus.socket
/lib/systemd/system/dbus.service
/lib/systemd/system/sockets.target.wants
/lib/systemd/system/multi-user.target.wants
/var
/var/lib
/var/lib/dbus
/usr
/usr/bin
/usr/bin/dbus-run-session
/usr/bin/dbus-update-activation-environment
/usr/bin/dbus-monitor
/usr/bin/dbus-cleanup-sockets
/usr/bin/dbus-uuidgen
/usr/bin/dbus-daemon
/usr/bin/dbus-send
/usr/lib
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/dbus.conf
/usr/lib/dbus-1.0
/usr/lib/dbus-1.0/dbus-daemon-launch-helper
/usr/share
/usr/share/bug
/usr/share/bug/dbus
/usr/share/bug/dbus/control
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/dbus
/usr/share/dbus-1
/usr/share/dbus-1/session.conf
/usr/share/dbus-1/services
/usr/share/dbus-1/system.conf
/usr/share/dbus-1/system-services
/usr/share/doc
/usr/share/doc/dbus
/usr/share/doc/dbus/copyright
/usr/share/doc/dbus/README.Debian
/usr/share/upstart
/usr/share/upstart/sessions
/usr/share/upstart/sessions/dbus.conf
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/dbus-monitor.1.gz
/usr/share/man/man1/dbus-send.1.gz
/usr/share/man/man1/dbus-uuidgen.1.gz
/usr/share/man/man1/dbus-daemon.1.gz
/usr/share/man/man1/dbus-update-activation-environment.1.gz
/usr/share/man/man1/dbus-cleanup-sockets.1.gz
/usr/share/man/man1/dbus-run-session.1.gz
/lib/systemd/system/sockets.target.wants/dbus.socket
/lib/systemd/system/multi-user.target.wants/dbus.service
/usr/share/doc/dbus/NEWS.gz
/usr/share/doc/dbus/README.gz
/usr/share/doc/dbus/changelog.Debian.gz
/usr/share/doc/dbus/AUTHORS.gz

manpage

執行

$ dpkg -L dbus | grep '/man/man.*/'

顯示

/usr/share/man/man1/dbus-monitor.1.gz
/usr/share/man/man1/dbus-send.1.gz
/usr/share/man/man1/dbus-uuidgen.1.gz
/usr/share/man/man1/dbus-daemon.1.gz
/usr/share/man/man1/dbus-update-activation-environment.1.gz
/usr/share/man/man1/dbus-cleanup-sockets.1.gz
/usr/share/man/man1/dbus-run-session.1.gz

下載 Source Package

執行

$ apt source dbus

會下載「dbus」這個「Source Package」

套件資訊

網址: http://packages.ubuntu.com/xenial/dbus

執行

$ apt show dbus

顯示

Package: dbus
Version: 1.10.6-1ubuntu3
Priority: standard
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 549 kB
Depends: libapparmor1 (>= 2.8.95), libaudit1 (>= 1:2.2.1), libc6 (>= 2.14), libcap-ng0, libdbus-1-3 (= 1.10.6-1ubuntu3), libexpat1 (>= 2.0.1), libselinux1 (>= 2.0.65), libsystemd0, lsb-base (>= 4.1+Debian11ubuntu7), adduser
Suggests: dbus-user-session | dbus-x11
Homepage: http://dbus.freedesktop.org/
Task: standard, mythbuntu-frontend, mythbuntu-backend-slave, mythbuntu-backend-master, ubuntu-sdk-libs, ubuntu-touch
Supported: 5y
Download-Size: 141 kB
APT-Manual-Installed: yes
APT-Sources: http://tw.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Description: simple interprocess messaging system (daemon and utilities)
 D-Bus is a message bus, used for sending messages between applications.
 Conceptually, it fits somewhere in between raw sockets and CORBA in
 terms of complexity.
 .
 D-Bus supports broadcast messages, asynchronous messages (thus
 decreasing latency), authentication, and more. It is designed to be
 low-overhead; messages are sent using a binary protocol, not using
 XML. D-Bus also supports a method call mapping for its messages, but
 it is not required; this makes using the system quite simple.
 .
 It comes with several bindings, including GLib, Python, Qt and Java.
 .
 This package contains the D-Bus daemon and related utilities.
 .
 The client-side library can be found in the libdbus-1-3 package, as it is no
 longer contained in this package.

原始碼套件資訊

網址: http://packages.ubuntu.com/source/xenial/dbus

執行

$ apt showsrc dbus

顯示

Package: dbus
Binary: dbus, dbus-udeb, dbus-x11, libdbus-1-3, libdbus-1-3-udeb, dbus-1-doc, libdbus-1-dev, dbus-1-dbg, dbus-tests, dbus-user-session
Version: 1.10.6-1ubuntu3
Priority: standard
Section: devel
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>
Build-Depends: automake (>= 1:1.10), autotools-dev, debhelper (>= 9), dh-autoreconf, dh-exec (>= 0.13), doxygen, dpkg-dev (>= 1.16.1), libapparmor-dev (>= 2.8.95) [linux-any], libaudit-dev [linux-any], libcap-ng-dev [linux-any], libexpat-dev, libglib2.0-dev, libselinux1-dev [linux-any], libsystemd-dev (>= 209) [linux-any], libx11-dev, python (>= 2.6), python-dbus, python-gobject, valgrind [amd64 armhf i386 mips mipsel powerpc ppc64 s390x], xmlto, xsltproc
Architecture: any all
Standards-Version: 3.9.6
Format: 3.0 (quilt)
Directory: pool/main/d/dbus
Files:
 fe3d33d4e2ab3331014907a383919005 3050 dbus_1.10.6-1ubuntu3.dsc
 26d0cf3a1c9782cb0e342101f0450440 1952608 dbus_1.10.6.orig.tar.gz
 ed111a39f3eaac25398a3504f0717f50 55672 dbus_1.10.6-1ubuntu3.debian.tar.xz
Uploaders: Sjoerd Simons <sjoerd@debian.org>, Sebastian Dröge <slomo@debian.org>, Michael Biebl <biebl@debian.org>, Loic Minier <lool@dooz.org>, Simon McVittie <smcv@debian.org>
Homepage: http://dbus.freedesktop.org/
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-utopia/dbus.git
Vcs-Git: git://anonscm.debian.org/pkg-utopia/dbus.git
Testsuite: autopkgtest
Package-List:
 dbus deb admin standard arch=any
 dbus-1-dbg deb debug extra arch=any
 dbus-1-doc deb doc optional arch=all
 dbus-tests deb misc extra arch=any
 dbus-udeb udeb debian-installer extra arch=any
 dbus-user-session deb admin optional arch=all
 dbus-x11 deb x11 optional arch=any
 libdbus-1-3 deb libs optional arch=any
 libdbus-1-3-udeb udeb debian-installer extra arch=any
 libdbus-1-dev deb libdevel optional arch=any
Checksums-Sha1:
 97ed03c340be66bc9096d17309b7f3d8816e956f 3050 dbus_1.10.6-1ubuntu3.dsc
 4247d7f86a0164d7dd3eb18a74670eb863ac342c 1952608 dbus_1.10.6.orig.tar.gz
 291f47e44da7f5af2f82d78a861fd902061dfc8a 55672 dbus_1.10.6-1ubuntu3.debian.tar.xz
Checksums-Sha256:
 eb253c5543e4403e809d2d4627f2007cf9c91879f4999482213010ca63793b59 3050 dbus_1.10.6-1ubuntu3.dsc
 b5fefa08a77edd76cd64d872db949eebc02cf6f3f8be82e4bbc641742af5d35f 1952608 dbus_1.10.6.orig.tar.gz
 03c0c378d51ead8b49b5f60c127aa1e49c224d384c0c1173e02d633b3aea8247 55672 dbus_1.10.6-1ubuntu3.debian.tar.xz