ash info

套件資訊

執行

$ apt-cache show ash

顯示

Package: ash
Priority: optional
Section: universe/shells
Installed-Size: 68
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Gerrit Pape <pape@smarden.org>
Architecture: all
Source: dash
Version: 0.5.7-4ubuntu1
Pre-Depends: dash
Filename: pool/universe/d/dash/ash_0.5.7-4ubuntu1_all.deb
Size: 5578
MD5sum: fdd27dc1b5d6e8cc88844f7eb04ecae4
SHA1: b2630dc95e0828c29e743debebd144e972654108
SHA256: aecd5a4027c804a7b2719ed70fea4034c625391784e9dc51fc792ad6a2fb0cdc
Description-en: compatibility package for dash
 This package allows upgrading ash to its replacement,
 dash. It includes the /bin/ash symlink.
 It can be removed as soon as /bin/ash is no longer used.
Description-md5: dfaa90778ec9574851d009730b4a705a
Homepage: http://gondor.apana.org.au/~herbert/dash/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

執行

$ apt-cache showpkg ash

顯示

Package: ash
Versions:
0.5.7-4ubuntu1 (/var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-amd64_Packages
                  MD5: dfaa90778ec9574851d009730b4a705a
 Description Language: en
                 File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_universe_i18n_Translation-en
                  MD5: dfaa90778ec9574851d009730b4a705a


Reverse Depends:
  drbl,ash
Dependencies:
0.5.7-4ubuntu1 - dash (0 (null))
Provides:
0.5.7-4ubuntu1 -
Reverse Provides:

執行

$ apt-cache showsrc ash

顯示

Package: dash
Binary: dash, ash
Version: 0.5.7-4ubuntu1
Priority: required
Section: shells
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Gerrit Pape <pape@smarden.org>
Build-Depends: po-debconf, dpkg-dev (>= 1.16.1)
Architecture: any all
Standards-Version: 3.9.3.0
Format: 1.0
Directory: pool/main/d/dash
Files:
 8d7f2abbca64b079d9d8d5cad1c567ef 1835 dash_0.5.7-4ubuntu1.dsc
 f6cedb10ae7258adb5ab17a10ae80d51 223794 dash_0.5.7.orig.tar.gz
 6f1a1e503d510d11b8af7ab8816c8dbf 57631 dash_0.5.7-4ubuntu1.diff.gz
Homepage: http://gondor.apana.org.au/~herbert/dash/
Vcs-Git: http://smarden.org/git/dash.git/
Package-List:
 ash deb shells optional
 dash deb shells required
Checksums-Sha1:
 2b92b3c3f4b5affe692efd58ce317b672e226782 1835 dash_0.5.7-4ubuntu1.dsc
 a3ebc16f2e2c7ae8adf64e5e62ae3dcb631717c6 223794 dash_0.5.7.orig.tar.gz
 25f91a524caf304c82b58936704c81a75730df00 57631 dash_0.5.7-4ubuntu1.diff.gz
Checksums-Sha256:
 7143c21541e6a833a99c48ad2bdd47bb5e770c83b1173459aaf85ee8f1dd70d2 1835 dash_0.5.7-4ubuntu1.dsc
 ae89fa9f1145b7748cf0740e1df04cd52fdf8a285da4911dd0f04983efba4e39 223794 dash_0.5.7.orig.tar.gz
 e55bbd7eb0336be61e9c396e54b58f94df09ef4b98cef8bed5d394f394163a0f 57631 dash_0.5.7-4ubuntu1.diff.gz

執行

$ dpkg -s ash

顯示

Package: ash
Status: install ok installed
Priority: optional
Section: shells
Installed-Size: 68
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Source: dash
Version: 0.5.7-4ubuntu1
Pre-Depends: dash
Description: compatibility package for dash
 This package allows upgrading ash to its replacement,
 dash. It includes the /bin/ash symlink.
 It can be removed as soon as /bin/ash is no longer used.
Homepage: http://gondor.apana.org.au/~herbert/dash/
Original-Maintainer: Gerrit Pape <pape@smarden.org>

執行

$ dpkg -l ash

顯示

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  ash                          0.5.7-4ubuntu1      all                 compatibility package for dash

準備工作環境

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

探索「Package: ash

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

$ cd ~/Downloads/ash/download

下載「Package: ash」。

$ apt-get download ash

解開「package ash」

dpkg -x ash_0.5.7-4ubuntu1_all.deb ash
dpkg -e ash_0.5.7-4ubuntu1_all.deb
# ar xv ash_0.5.7-4ubuntu1_all.deb

檢視套件檔案

$ tree ash

顯示

ash
├── bin
│   └── ash -> dash
└── usr
    └── share
        ├── doc
        │   └── ash
        │       ├── changelog.Debian.gz
        │       └── copyright
        └── man
            └── man1
                └── ash.1.gz -> dash.1.gz

7 directories, 4 files

執行

$ tree DEBIAN

顯示

DEBIAN
├── control
├── md5sums
├── postinst
└── postrm

0 directories, 4 files

探索「Source Package: ash

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

$ cd ~/Downloads/ash/source

下載「Source Package: ash」。

$ apt-get source ash

檢視原始碼套件檔案。

$ tree dash-0.5.7

顯示

dash-0.5.7
├── aclocal.m4
├── ChangeLog
├── config.h.in
├── configure
├── configure.ac
├── COPYING
├── debian
│   ├── ash.postinst
│   ├── ash.postrm
│   ├── changelog
│   ├── control
│   ├── copyright
│   ├── dash.config
│   ├── dash.docs
│   ├── dash.menu
│   ├── dash.NEWS.Debian
│   ├── dash.postinst
│   ├── dash.postrm
│   ├── dash.preinst
│   ├── dash.prerm
│   ├── dash.README.source
│   ├── dash.templates.in
│   ├── diff
│   │   ├── 0001-SHELL-print-n-upon-EOF-CTRL-D-when-run-interactively.diff
│   │   ├── 0002-PARSER-Remove-backslash-before-in-double-quotes-in-va.diff
│   │   ├── 0003-VAR-Disable-LINENO-support.diff
│   │   ├── 0004-BUILTIN-Fix-test-x-as-root-on-platforms-with-old-fash.diff
│   │   ├── 0005-SHELL-Disable-sh-c-command-sh-c-exec-command-optimiza.diff
│   │   ├── 0006-JOBS-address-format-security-build-error.diff
│   │   └── 0007-Report-I-O-error-on-stdout.diff
│   ├── implicit
│   ├── po
│   │   ├── bg.po
│   │   ├── cs.po
│   │   ├── da.po
│   │   ├── de.po
│   │   ├── es.po
│   │   ├── eu.po
│   │   ├── fi.po
│   │   ├── fr.po
│   │   ├── gl.po
│   │   ├── id.po
│   │   ├── it.po
│   │   ├── ja.po
│   │   ├── ko.po
│   │   ├── nl.po
│   │   ├── pl.po
│   │   ├── POTFILES.in
│   │   ├── pt_BR.po
│   │   ├── pt.po
│   │   ├── ro.po
│   │   ├── ru.po
│   │   ├── sk.po
│   │   ├── sv.po
│   │   ├── templates.pot
│   │   ├── tr.po
│   │   └── vi.po
│   ├── README.Debian.diet
│   ├── rules
│   └── watch
├── depcomp
├── INSTALL
├── install-sh
├── Makefile.am
├── Makefile.in
├── missing
├── src
│   ├── alias.c
│   ├── alias.h
│   ├── arith_yacc.c
│   ├── arith_yacc.h
│   ├── arith_yylex.c
│   ├── bltin
│   │   ├── bltin.h
│   │   ├── printf.c
│   │   ├── test.c
│   │   └── times.c
│   ├── builtins.def.in
│   ├── cd.c
│   ├── cd.h
│   ├── dash.1
│   ├── error.c
│   ├── error.h
│   ├── eval.c
│   ├── eval.h
│   ├── exec.c
│   ├── exec.h
│   ├── expand.c
│   ├── expand.h
│   ├── hetio.h
│   ├── histedit.c
│   ├── init.h
│   ├── input.c
│   ├── input.h
│   ├── jobs.c
│   ├── jobs.h
│   ├── machdep.h
│   ├── mail.c
│   ├── mail.h
│   ├── main.c
│   ├── main.h
│   ├── Makefile.am
│   ├── Makefile.in
│   ├── memalloc.c
│   ├── memalloc.h
│   ├── miscbltin.c
│   ├── miscbltin.h
│   ├── mkbuiltins
│   ├── mkinit.c
│   ├── mknodes.c
│   ├── mksignames.c
│   ├── mksyntax.c
│   ├── mktokens
│   ├── myhistedit.h
│   ├── mystring.c
│   ├── mystring.h
│   ├── nodes.c.pat
│   ├── nodetypes
│   ├── options.c
│   ├── options.h
│   ├── output.c
│   ├── output.h
│   ├── parser.c
│   ├── parser.h
│   ├── redir.c
│   ├── redir.h
│   ├── shell.h
│   ├── show.c
│   ├── show.h
│   ├── system.c
│   ├── system.h
│   ├── trap.c
│   ├── trap.h
│   ├── var.c
│   └── var.h
└── tests.tar.gz.uue

5 directories, 131 files