dash info

套件資訊

執行

$ apt-cache show dash

顯示

Package: dash
Essential: yes
Priority: required
Section: shells
Installed-Size: 228
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Gerrit Pape <pape@smarden.org>
Architecture: amd64
Version: 0.5.7-4ubuntu1
Depends: debianutils (>= 2.15), dpkg (>= 1.15.0)
Pre-Depends: libc6 (>= 2.14)
Filename: pool/main/d/dash/dash_0.5.7-4ubuntu1_amd64.deb
Size: 85072
MD5sum: bc4e7234842e533d98295faf559e86c2
SHA1: ce8e8a858783d4a02ba1ca98c2d5cea6525f73c1
SHA256: 5befdfa1b3adc0c41e43d4fa1b3c960efe54f170d434c85d94012611024c6069
Description-en: POSIX-compliant shell
 The Debian Almquist Shell (dash) is a POSIX-compliant shell derived
 from ash.
 .
 Since it executes scripts faster than bash, and has fewer library
 dependencies (making it more robust against software or hardware
 failures), it is used as the default system shell on Debian systems.
Description-md5: 8d4d9c32c6b2b70328f7f774a0cc1248
Homepage: http://gondor.apana.org.au/~herbert/dash/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: minimal

執行

$ apt-cache showpkg dash

顯示

Package: dash
Versions:
0.5.7-4ubuntu1 (/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: 8d4d9c32c6b2b70328f7f774a0cc1248
 Description Language: en
                 File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
                  MD5: 8d4d9c32c6b2b70328f7f774a0cc1248


Reverse Depends:
  bash,dash 0.5.5.1-2.2
  dash:i386,dash
  hibernate,dash
  dphys-config,dash
  ash,dash
  apt-move,dash
  bash,dash 0.5.5.1-2.2
Dependencies:
0.5.7-4ubuntu1 - debianutils (2 2.15) dpkg (2 1.15.0) libc6 (2 2.14) dash:i386 (0 (null))
Provides:
0.5.7-4ubuntu1 -
Reverse Provides:

執行

$ apt-cache showsrc dash

顯示

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 dash

顯示

Package: dash
Essential: yes
Status: install ok installed
Priority: required
Section: shells
Installed-Size: 228
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 0.5.7-4ubuntu1
Depends: debianutils (>= 2.15), dpkg (>= 1.15.0)
Pre-Depends: libc6 (>= 2.14)
Description: POSIX-compliant shell
 The Debian Almquist Shell (dash) is a POSIX-compliant shell derived
 from ash.
 .
 Since it executes scripts faster than bash, and has fewer library
 dependencies (making it more robust against software or hardware
 failures), it is used as the default system shell on Debian systems.
Homepage: http://gondor.apana.org.au/~herbert/dash/
Original-Maintainer: Gerrit Pape <pape@smarden.org>

執行

$ dpkg -l dash

顯示

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  dash                         0.5.7-4ubuntu1      amd64               POSIX-compliant shell

準備工作環境

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

探索「Package: dash

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

$ cd ~/Downloads/dash/download

下載「Package: dash」。

$ apt-get download dash

解開「package dash」

dpkg -x dash_0.5.7-4ubuntu1_amd64.deb dash
dpkg -e dash_0.5.7-4ubuntu1_amd64.deb
# ar xv dash_0.5.7-4ubuntu1_amd64.deb

檢視套件檔案

$ tree dash

顯示

dash
├── bin
│   ├── dash
│   └── sh -> dash
└── usr
    └── share
        ├── doc
        │   └── dash
        │       ├── changelog.Debian.gz
        │       ├── copyright
        │       ├── NEWS.Debian.gz
        │       ├── README.Debian.diet
        │       └── README.source
        ├── man
        │   └── man1
        │       ├── dash.1.gz
        │       └── sh.1.gz -> dash.1.gz
        └── menu
            └── dash

8 directories, 10 files

執行

$ tree DEBIAN

顯示

DEBIAN
├── config
├── control
├── md5sums
├── postinst
├── postrm
├── preinst
├── prerm
└── templates

0 directories, 8 files

探索「Source Package: dash

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

$ cd ~/Downloads/dash/source

下載「Source Package: dash」。

$ apt-get source dash

檢視原始碼套件檔案。

$ 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