shtool info

套件資訊

執行

$ apt-cache show shtool

顯示

Package: shtool
Priority: optional
Section: devel
Installed-Size: 544
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: William Vera <billy@billy.com.mx>
Architecture: all
Version: 2.0.8-6
Depends: perl
Suggests: autoconf, automake, libtool
Filename: pool/main/s/shtool/shtool_2.0.8-6_all.deb
Size: 149346
MD5sum: ca8e02813cb7b7e55352aaffa6504cc7
SHA1: 56a77b66b48e2c597f73b09e92a1822842bab206
SHA256: b82ba243718b861f38031302e74bc3788ef793963c87753ded29e53ab13079be
Description-en: portable shell tool from the GNU project
 GNU shtool is a tool for developers of software programs. It is a compilation
 of small but very stable and portable shell scripts into a single shell tool.
 All ingredients were in successful use over many years in various free software
 projects. The compiled shtool program is intended to be used inside the source
 tree of other free software packages. There it can overtake various (usually
 non-portable) tasks related to the building and installation of such a package.
 It especially can replace the old mkdir.sh, install.sh and related scripts.
Description-md5: 487ad53b13df08e5afd83734afb48f0b
Homepage: http://www.gnu.org/software/shtool/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m

執行

$ apt-cache showpkg shtool

顯示

Package: shtool
Versions:
2.0.8-6 (/var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
                  MD5: 487ad53b13df08e5afd83734afb48f0b
 Description Language: en
                 File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
                  MD5: 487ad53b13df08e5afd83734afb48f0b


Reverse Depends:
  php5-dev,shtool
  wml,shtool 1.5.1-1
  php5-dev,shtool
Dependencies:
2.0.8-6 - perl (0 (null)) autoconf (0 (null)) automake (0 (null)) libtool (0 (null))
Provides:
2.0.8-6 -
Reverse Provides:

執行

$ apt-cache showsrc shtool

顯示

Package: shtool
Binary: shtool
Version: 2.0.8-6
Priority: optional
Section: devel
Maintainer: William Vera <billy@billy.com.mx>
Build-Depends: debhelper (>= 7.0.50~)
Architecture: all
Standards-Version: 3.9.0
Format: 3.0 (quilt)
Directory: pool/main/s/shtool
Files:
 327ce5b2b8af6a28c463737d4b62fe20 1032 shtool_2.0.8-6.dsc
 c5f7c6836882d48bc79049846a5f9c5b 97033 shtool_2.0.8.orig.tar.gz
 bb9c4ceac48244bca10ffab083bae45a 5573 shtool_2.0.8-6.debian.tar.gz
Dm-Upload-Allowed: yes
Homepage: http://www.gnu.org/software/shtool/
Checksums-Sha1:
 d14b2bc15d0131ce7392e34277d3f0dc9e9dcde8 1032 shtool_2.0.8-6.dsc
 4b974f92d3932ea121e311e3b22c328d3b3572d4 97033 shtool_2.0.8.orig.tar.gz
 5eaef6f28a88a00d470c38033d56161d68b311f8 5573 shtool_2.0.8-6.debian.tar.gz
Checksums-Sha256:
 a3a676475a01310b412623590c4a38f4c6d0cc9a8f98cdd665162e7bc84775c8 1032 shtool_2.0.8-6.dsc
 1298a549416d12af239e9f4e787e6e6509210afb49d5cf28eb6ec4015046ae19 97033 shtool_2.0.8.orig.tar.gz
 978bb8f706d0977890a406d90e442d1ffbd0f08bc964f35ef4eb1af228c3c3bf 5573 shtool_2.0.8-6.debian.tar.gz

執行

$ dpkg -s shtool

顯示

Package: shtool
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 544
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Version: 2.0.8-6
Depends: perl
Suggests: autoconf, automake, libtool
Description: portable shell tool from the GNU project
 GNU shtool is a tool for developers of software programs. It is a compilation
 of small but very stable and portable shell scripts into a single shell tool.
 All ingredients were in successful use over many years in various free software
 projects. The compiled shtool program is intended to be used inside the source
 tree of other free software packages. There it can overtake various (usually
 non-portable) tasks related to the building and installation of such a package.
 It especially can replace the old mkdir.sh, install.sh and related scripts.
Original-Maintainer: William Vera <billy@billy.com.mx>
Homepage: http://www.gnu.org/software/shtool/

執行

$ dpkg -l shtool

顯示

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                         Version             Architecture        Description
+++-============================-===================-===================-==============================================================
ii  shtool                       2.0.8-6             all                 portable shell tool from the GNU project

準備工作環境

mkdir  ~/Downloads/shtool -p
cd ~/Downloads/shtool
mkdir download source

探索「Package: shtool

切換到「~/Downloads/shtool/download」

$ cd ~/Downloads/shtool/download

下載「Package: shtool」。

$ apt-get download shtool

解開「package shtool」

dpkg -x shtool_2.0.8-6_all.deb shtool
dpkg -e shtool_2.0.8-6_all.deb
# ar xv shtool_2.0.8-6_all.deb

檢視套件檔案

$ tree shtool

顯示

shtool
└── usr
    ├── bin
    │   ├── shtool
    │   └── shtoolize
    └── share
        ├── aclocal
        │   └── shtool.m4
        ├── doc
        │   └── shtool
        │       ├── AUTHORS
        │       ├── changelog.Debian.gz
        │       ├── copyright
        │       ├── NEWS.gz
        │       ├── RATIONAL.gz
        │       ├── README
        │       └── THANKS
        ├── man
        │   └── man1
        │       ├── shtool.1.gz
        │       ├── shtool-arx.1.gz
        │       ├── shtool-echo.1.gz
        │       ├── shtool-fixperm.1.gz
        │       ├── shtool-install.1.gz
        │       ├── shtoolize.1.gz
        │       ├── shtool-mdate.1.gz
        │       ├── shtool-mkdir.1.gz
        │       ├── shtool-mkln.1.gz
        │       ├── shtool-mkshadow.1.gz
        │       ├── shtool-move.1.gz
        │       ├── shtool-path.1.gz
        │       ├── shtool-platform.1.gz
        │       ├── shtool-prop.1.gz
        │       ├── shtool-rotate.1.gz
        │       ├── shtool-scpp.1.gz
        │       ├── shtool-slo.1.gz
        │       ├── shtool-subst.1.gz
        │       ├── shtool-table.1.gz
        │       ├── shtool-tarball.1.gz
        │       └── shtool-version.1.gz
        └── shtool
            ├── sh.arx
            ├── sh.common
            ├── sh.echo
            ├── sh.fixperm
            ├── sh.install
            ├── sh.mdate
            ├── sh.mkdir
            ├── sh.mkln
            ├── sh.mkshadow
            ├── sh.move
            ├── sh.path
            ├── sh.platform
            ├── sh.prop
            ├── sh.rotate
            ├── sh.scpp
            ├── sh.slo
            ├── sh.subst
            ├── sh.table
            ├── sh.tarball
            └── sh.version

9 directories, 51 files
$ tree DEBIAN

顯示

DEBIAN
├── control
└── md5sums

0 directories, 2 files

探索「Source Package: shtool

切換到「~/Downloads/shtool/source」

$ cd ~/Downloads/shtool/source

下載「Source Package: shtool」。

$ apt-get source shtool

檢視原始碼套件檔案。

$ tree shtool-2.0.8

顯示

shtool-2.0.8
├── AUTHORS
├── ChangeLog
├── configure
├── configure.ac
├── COPYING
├── debian
│   ├── changelog
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── patches
│   │   ├── fix-manpages.diff
│   │   ├── fix-mkdir-p.patch
│   │   ├── fix-poderros.diff
│   │   ├── fix-spelling.diff
│   │   └── series
│   ├── rules
│   ├── shtool.docs
│   ├── source
│   │   └── format
│   └── watch
├── INSTALL
├── Makefile.in
├── NEWS
├── RATIONAL
├── README
├── sh.arx
├── sh.common
├── sh.echo
├── sh.fixperm
├── sh.install
├── sh.mdate
├── sh.mkdir
├── sh.mkln
├── sh.mkshadow
├── sh.move
├── sh.path
├── sh.platform
├── sh.prop
├── sh.rotate
├── sh.scpp
├── sh.slo
├── sh.subst
├── sh.table
├── sh.tarball
├── shtoolize.in
├── shtoolize.pod
├── shtool.m4
├── shtool.pod
├── shtool.spec
├── sh.version
├── test.db
├── test.sh
├── THANKS
└── VERSION

3 directories, 52 files