debianutils 套件探索

下載套件

下載「debianutils」這個套件。

$ apt download debianutils

解開套件

解開「debianutils_4.7_amd64.deb」

$ dpkg -x debianutils_4.7_amd64.deb debianutils

觀看資料夾結構

執行

$ tree debianutils

顯示

debianutils
├── bin
│   ├── run-parts
│   ├── tempfile
│   └── which
├── sbin
│   └── installkernel
└── usr
    ├── bin
    │   ├── ischroot
    │   └── savelog
    ├── sbin
    │   ├── add-shell
    │   └── remove-shell
    └── share
        ├── debianutils
        │   └── shells
        ├── doc
        │   └── debianutils
        │       ├── changelog.gz
        │       ├── copyright
        │       └── README.shells.gz
        └── man
            ├── de
            │   ├── man1
            │   │   ├── tempfile.1.gz
            │   │   └── which.1.gz
            │   └── man8
            │       ├── add-shell.8.gz
            │       ├── installkernel.8.gz
            │       ├── remove-shell.8.gz
            │       ├── run-parts.8.gz
            │       └── savelog.8.gz
            ├── es
            │   ├── man1
            │   │   ├── tempfile.1.gz
            │   │   └── which.1.gz
            │   └── man8
            │       ├── add-shell.8.gz
            │       ├── installkernel.8.gz
            │       ├── remove-shell.8.gz
            │       ├── run-parts.8.gz
            │       └── savelog.8.gz
            ├── fr
            │   ├── man1
            │   │   ├── tempfile.1.gz
            │   │   └── which.1.gz
            │   └── man8
            │       ├── add-shell.8.gz
            │       ├── installkernel.8.gz
            │       ├── remove-shell.8.gz
            │       ├── run-parts.8.gz
            │       └── savelog.8.gz
            ├── it
            │   ├── man1
            │   │   ├── tempfile.1.gz
            │   │   └── which.1.gz
            │   └── man8
            │       ├── add-shell.8.gz
            │       ├── installkernel.8.gz
            │       ├── remove-shell.8.gz
            │       ├── run-parts.8.gz
            │       └── savelog.8.gz
            ├── ja
            │   ├── man1
            │   │   ├── tempfile.1.gz
            │   │   └── which.1.gz
            │   └── man8
            │       ├── add-shell.8.gz
            │       ├── installkernel.8.gz
            │       ├── remove-shell.8.gz
            │       ├── run-parts.8.gz
            │       └── savelog.8.gz
            ├── man1
            │   ├── ischroot.1.gz
            │   ├── tempfile.1.gz
            │   └── which.1.gz
            ├── man8
            │   ├── add-shell.8.gz
            │   ├── installkernel.8.gz
            │   ├── remove-shell.8.gz
            │   ├── run-parts.8.gz
            │   └── savelog.8.gz
            ├── pl
            │   ├── man1
            │   │   ├── tempfile.1.gz
            │   │   └── which.1.gz
            │   └── man8
            │       ├── add-shell.8.gz
            │       ├── installkernel.8.gz
            │       ├── remove-shell.8.gz
            │       ├── run-parts.8.gz
            │       └── savelog.8.gz
            └── sl
                ├── man1
                │   ├── tempfile.1.gz
                │   └── which.1.gz
                └── man8
                    ├── add-shell.8.gz
                    ├── installkernel.8.gz
                    ├── remove-shell.8.gz
                    ├── run-parts.8.gz
                    └── savelog.8.gz

33 directories, 69 files

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

$ dpkg -L debianutils

顯示

/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/debianutils
/usr/share/doc/debianutils/copyright
/usr/share/doc/debianutils/README.shells.gz
/usr/share/doc/debianutils/changelog.gz
/usr/share/debianutils
/usr/share/debianutils/shells
/usr/share/man
/usr/share/man/sl
/usr/share/man/sl/man1
/usr/share/man/sl/man1/tempfile.1.gz
/usr/share/man/sl/man1/which.1.gz
/usr/share/man/sl/man8
/usr/share/man/sl/man8/add-shell.8.gz
/usr/share/man/sl/man8/savelog.8.gz
/usr/share/man/sl/man8/installkernel.8.gz
/usr/share/man/sl/man8/remove-shell.8.gz
/usr/share/man/sl/man8/run-parts.8.gz
/usr/share/man/pl
/usr/share/man/pl/man1
/usr/share/man/pl/man1/tempfile.1.gz
/usr/share/man/pl/man1/which.1.gz
/usr/share/man/pl/man8
/usr/share/man/pl/man8/add-shell.8.gz
/usr/share/man/pl/man8/savelog.8.gz
/usr/share/man/pl/man8/installkernel.8.gz
/usr/share/man/pl/man8/remove-shell.8.gz
/usr/share/man/pl/man8/run-parts.8.gz
/usr/share/man/man1
/usr/share/man/man1/tempfile.1.gz
/usr/share/man/man1/which.1.gz
/usr/share/man/man1/ischroot.1.gz
/usr/share/man/ja
/usr/share/man/ja/man1
/usr/share/man/ja/man1/tempfile.1.gz
/usr/share/man/ja/man1/which.1.gz
/usr/share/man/ja/man8
/usr/share/man/ja/man8/add-shell.8.gz
/usr/share/man/ja/man8/savelog.8.gz
/usr/share/man/ja/man8/installkernel.8.gz
/usr/share/man/ja/man8/remove-shell.8.gz
/usr/share/man/ja/man8/run-parts.8.gz
/usr/share/man/de
/usr/share/man/de/man1
/usr/share/man/de/man1/tempfile.1.gz
/usr/share/man/de/man1/which.1.gz
/usr/share/man/de/man8
/usr/share/man/de/man8/add-shell.8.gz
/usr/share/man/de/man8/savelog.8.gz
/usr/share/man/de/man8/installkernel.8.gz
/usr/share/man/de/man8/remove-shell.8.gz
/usr/share/man/de/man8/run-parts.8.gz
/usr/share/man/fr
/usr/share/man/fr/man1
/usr/share/man/fr/man1/tempfile.1.gz
/usr/share/man/fr/man1/which.1.gz
/usr/share/man/fr/man8
/usr/share/man/fr/man8/add-shell.8.gz
/usr/share/man/fr/man8/savelog.8.gz
/usr/share/man/fr/man8/installkernel.8.gz
/usr/share/man/fr/man8/remove-shell.8.gz
/usr/share/man/fr/man8/run-parts.8.gz
/usr/share/man/it
/usr/share/man/it/man1
/usr/share/man/it/man1/tempfile.1.gz
/usr/share/man/it/man1/which.1.gz
/usr/share/man/it/man8
/usr/share/man/it/man8/add-shell.8.gz
/usr/share/man/it/man8/savelog.8.gz
/usr/share/man/it/man8/installkernel.8.gz
/usr/share/man/it/man8/remove-shell.8.gz
/usr/share/man/it/man8/run-parts.8.gz
/usr/share/man/man8
/usr/share/man/man8/add-shell.8.gz
/usr/share/man/man8/savelog.8.gz
/usr/share/man/man8/installkernel.8.gz
/usr/share/man/man8/remove-shell.8.gz
/usr/share/man/man8/run-parts.8.gz
/usr/share/man/es
/usr/share/man/es/man1
/usr/share/man/es/man1/tempfile.1.gz
/usr/share/man/es/man1/which.1.gz
/usr/share/man/es/man8
/usr/share/man/es/man8/add-shell.8.gz
/usr/share/man/es/man8/savelog.8.gz
/usr/share/man/es/man8/installkernel.8.gz
/usr/share/man/es/man8/remove-shell.8.gz
/usr/share/man/es/man8/run-parts.8.gz
/usr/bin
/usr/bin/savelog
/usr/bin/ischroot
/usr/sbin
/usr/sbin/remove-shell
/usr/sbin/add-shell
/bin
/bin/run-parts
/bin/which
/bin/tempfile
/sbin
/sbin/installkernel

manpage

執行

$ dpkg -L debianutils | grep '/man/man.*/' | sort

顯示

/usr/share/man/man1/ischroot.1.gz
/usr/share/man/man1/tempfile.1.gz
/usr/share/man/man1/which.1.gz
/usr/share/man/man8/add-shell.8.gz
/usr/share/man/man8/installkernel.8.gz
/usr/share/man/man8/remove-shell.8.gz
/usr/share/man/man8/run-parts.8.gz
/usr/share/man/man8/savelog.8.gz

下載 Source Package

執行

$ apt source debianutils

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

套件資訊

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

執行

$ apt show debianutils

顯示

Package: debianutils
Version: 4.7
Priority: required
Essential: yes
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Clint Adams <clint@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 218 kB
Pre-Depends: libc6 (>= 2.15)
Depends: sensible-utils
Replaces: manpages-pl (<< 1:0.5)
Task: minimal
Supported: 5y
Download-Size: 85.4 kB
APT-Manual-Installed: yes
APT-Sources: http://tw.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Description: Miscellaneous utilities specific to Debian
 This package provides a number of small utilities which are used
 primarily by the installation scripts of Debian packages, although
 you may use them directly.
 .
 The specific utilities included are:
 add-shell installkernel ischroot remove-shell run-parts savelog
 tempfile which

原始碼套件資訊

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

執行

$ apt showsrc debianutils

顯示

Package: debianutils
Binary: debianutils
Version: 4.7
Priority: required
Section: utils
Maintainer: Clint Adams <clint@debian.org>
Architecture: any
Standards-Version: 3.9.6
Format: 3.0 (native)
Directory: pool/main/d/debianutils
Files:
 673c7cbb83f42ea021e870a6451035fc 1703 debianutils_4.7.dsc
 00186f527b35e2cecd4db593c6d512d0 156276 debianutils_4.7.tar.xz
Uploaders: Manoj Srivastava <srivasta@debian.org>
Vcs-Browser: https://anonscm.debian.org/cgit/users/clint/debianutils.git
Vcs-Git: git://anonscm.debian.org/users/clint/debianutils.git
Package-List:
 debianutils deb utils required arch=any essential=yes
Checksums-Sha1:
 1d802b242250693bad4a6aef6d995cb40aae5c02 1703 debianutils_4.7.dsc
 1d62ff7cf902c69a6f1ef071cead61a76ce01f86 156276 debianutils_4.7.tar.xz
Checksums-Sha256:
 8dd1d66186f56bfe11bce5151b50c6909787d690bf90cc90212ea6deec186460 1703 debianutils_4.7.dsc
 a269cacd40f52f2fa5d5636357714a49e8538459c16d77772efaa23711fe53d9 156276 debianutils_4.7.tar.xz