ifupdown info

套件資訊

執行

$ apt-cache show ifupdown

顯示

Package: ifupdown
Priority: required
Section: admin
Installed-Size: 234
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Andrew Shadura <andrewsh@debian.org>
Architecture: amd64
Version: 0.7.47.2ubuntu4.1
Replaces: netbase (<< 5.0)
Depends: iproute2, libc6 (>= 2.14), sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16), lsb-base (>= 4.1+Debian3), initscripts (>= 2.88dsf-25), adduser
Recommends: isc-dhcp-client | dhcp-client
Suggests: ppp, rdnssd, net-tools
Breaks: dhcp3-client (<< 4.0), netbase (<< 5.0)
Filename: pool/main/i/ifupdown/ifupdown_0.7.47.2ubuntu4.1_amd64.deb
Size: 52126
MD5sum: 63d22335753562ccbe0561aae6f6901e
SHA1: 9133bc20e6f339fb78c913ac72f3e208b3c801bb
SHA256: b950853aa221fa8924b4201e73484db4ec98fa0f0051dca9ea63183d74715645
Description-en: high level tools to configure network interfaces
 This package provides the tools ifup and ifdown which may be used to
 configure (or, respectively, deconfigure) network interfaces based on
 interface definitions in the file /etc/network/interfaces.
Description-md5: 442edbd184a6e1febc9b203604eb38f4
Multi-Arch: foreign
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: minimal

Package: ifupdown
Priority: required
Section: admin
Installed-Size: 233
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Andrew Shadura <andrewsh@debian.org>
Architecture: amd64
Version: 0.7.47.2ubuntu4
Replaces: netbase (<< 5.0)
Depends: iproute2, libc6 (>= 2.14), sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16), lsb-base (>= 4.1+Debian3), initscripts (>= 2.88dsf-25), adduser
Recommends: isc-dhcp-client | dhcp-client
Suggests: ppp, rdnssd, net-tools
Breaks: dhcp3-client (<< 4.0), netbase (<< 5.0)
Filename: pool/main/i/ifupdown/ifupdown_0.7.47.2ubuntu4_amd64.deb
Size: 51894
MD5sum: 2740f5c1db153a07c51bf8a36509ab52
SHA1: 49d9c74153b41156d00882ccef677bf89506db5b
SHA256: 61272a16ea205d4f3a90b17d933d51d8e27cf0fe1a10b31ac1d0029f14ed735a
Description-en: high level tools to configure network interfaces
 This package provides the tools ifup and ifdown which may be used to
 configure (or, respectively, deconfigure) network interfaces based on
 interface definitions in the file /etc/network/interfaces.
Description-md5: 442edbd184a6e1febc9b203604eb38f4
Multi-Arch: foreign
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: minimal

執行

$ apt-cache showpkg ifupdown

顯示

Package: ifupdown
Versions:
0.7.47.2ubuntu4.1 (/var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty-updates_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: 442edbd184a6e1febc9b203604eb38f4
 Description Language: en
                 File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
                  MD5: 442edbd184a6e1febc9b203604eb38f4

0.7.47.2ubuntu4 (/var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages)
 Description Language:
                 File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
                  MD5: 442edbd184a6e1febc9b203604eb38f4
 Description Language: en
                 File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
                  MD5: 442edbd184a6e1febc9b203604eb38f4


Reverse Depends:
  ifupdown:i386,ifupdown
  upstart,ifupdown 0.6.10ubuntu5
  resolvconf,ifupdown
  cloud-init,ifupdown 0.6.10ubuntu5
  dhcpcd:i386,ifupdown 0.6.4-4
  isc-dhcp-client:i386,ifupdown 0.6.8+nmu3
  initscripts:i386,ifupdown 0.6.8ubuntu27
  ifupdown:i386,ifupdown
  bridge-utils:i386,ifupdown 0.6.0
  ucarp,ifupdown 0.7.1
  netscript-2.4-upstart,ifupdown
  netscript-2.4-upstart,ifupdown
  netscript-2.4,ifupdown
  netscript-2.4,ifupdown
  ifupdown-scripts-zg2,ifupdown 0.6.7
  ifupdown-multi,ifupdown
  ifscheme,ifupdown 0.6.5
  ifplugd,ifupdown 0.6.4-4.2
  guessnet,ifupdown
  dhcpcd,ifupdown 0.6.4-4
  controlaula,ifupdown
  upstart,ifupdown 0.6.10ubuntu5
  ubuntu-minimal,ifupdown
  resolvconf,ifupdown
  netbase,ifupdown 0.7
  netbase,ifupdown
  isc-dhcp-client,ifupdown 0.6.8+nmu3
  initscripts,ifupdown 0.6.8ubuntu27
  ifenslave,ifupdown
  cloud-init,ifupdown 0.6.10ubuntu5
  bridge-utils,ifupdown 0.6.0
  bridge-utils,ifupdown
Dependencies:
0.7.47.2ubuntu4.1 - iproute2 (0 (null)) libc6 (2 2.14) sysv-rc (18 2.88dsf-24) file-rc (2 0.8.16) lsb-base (2 4.1+Debian3) initscripts (2 2.88dsf-25) adduser (0 (null)) ppp (0 (null)) rdnssd (0 (null)) net-tools (0 (null)) isc-dhcp-client (16 (null)) dhcp-client (0 (null)) dhcp3-client (3 4.0) dhcp3-client:i386 (3 4.0) netbase (3 5.0) netbase:i386 (3 5.0) netbase (3 5.0) netbase:i386 (3 5.0) ifupdown:i386 (0 (null))
0.7.47.2ubuntu4 - iproute2 (0 (null)) libc6 (2 2.14) sysv-rc (18 2.88dsf-24) file-rc (2 0.8.16) lsb-base (2 4.1+Debian3) initscripts (2 2.88dsf-25) adduser (0 (null)) ppp (0 (null)) rdnssd (0 (null)) net-tools (0 (null)) isc-dhcp-client (16 (null)) dhcp-client (0 (null)) dhcp3-client (3 4.0) dhcp3-client:i386 (3 4.0) netbase (3 5.0) netbase:i386 (3 5.0) netbase (3 5.0) netbase:i386 (3 5.0) ifupdown:i386 (0 (null))
Provides:
0.7.47.2ubuntu4.1 - ifupdown:i386
0.7.47.2ubuntu4 - ifupdown:i386
Reverse Provides:
ifupdown:i386 0.7.47.2ubuntu4.1
ifupdown:i386 0.7.47.2ubuntu4
netscript-2.4-upstart 5.3.0ubuntu1
netscript-2.4 5.3.0ubuntu1

執行

$ apt-cache showsrc ifupdown

顯示

Package: ifupdown
Binary: ifupdown
Version: 0.7.47.2ubuntu4
Priority: required
Section: admin
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Andrew Shadura <andrewsh@debian.org>
Build-Depends: debhelper (>= 9.20120410~)
Architecture: any
Standards-Version: 3.9.4
Format: 3.0 (native)
Directory: pool/main/i/ifupdown
Files:
 264c907383e76133df6bd986a632ff32 1635 ifupdown_0.7.47.2ubuntu4.dsc
 1cff6f94c2600e44bab49b62add1965b 117573 ifupdown_0.7.47.2ubuntu4.tar.gz
Vcs-Browser: http://anonscm.debian.org/hg/collab-maint/ifupdown/
Vcs-Hg: http://anonscm.debian.org/hg/collab-maint/ifupdown/
Package-List:
 ifupdown deb admin important
Checksums-Sha1:
 d7385a9843b03c655a35806e72c6405e31c13df7 1635 ifupdown_0.7.47.2ubuntu4.dsc
 30daadbbcbfcbe07b53e041dcc12ee74a972dbd2 117573 ifupdown_0.7.47.2ubuntu4.tar.gz
Checksums-Sha256:
 bfc660044769f35e73ca49fb949039ad906c14114272484fc24ad7122ae5f77c 1635 ifupdown_0.7.47.2ubuntu4.dsc
 73e53ad9b303ec9491382ddb5617b676ce77c703e2458188a80a9bfabf50a10c 117573 ifupdown_0.7.47.2ubuntu4.tar.gz

Package: ifupdown
Binary: ifupdown
Version: 0.7.47.2ubuntu4.1
Priority: required
Section: admin
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Andrew Shadura <andrewsh@debian.org>
Build-Depends: debhelper (>= 9.20120410~)
Architecture: any
Standards-Version: 3.9.4
Format: 3.0 (native)
Directory: pool/main/i/ifupdown
Files:
 d5a151b43401e0cf1af9d6e7bdd17e1c 1643 ifupdown_0.7.47.2ubuntu4.1.dsc
 285c5e6f72bf62e9178397e913cb1b59 117882 ifupdown_0.7.47.2ubuntu4.1.tar.gz
Vcs-Browser: http://anonscm.debian.org/hg/collab-maint/ifupdown/
Vcs-Hg: http://anonscm.debian.org/hg/collab-maint/ifupdown/
Package-List:
 ifupdown deb admin important
Checksums-Sha1:
 be673d3eb08a037ba3c580eea4cb528adea19573 1643 ifupdown_0.7.47.2ubuntu4.1.dsc
 16e13baa4b1b96d4573e56f2a969103c9458dbde 117882 ifupdown_0.7.47.2ubuntu4.1.tar.gz
Checksums-Sha256:
 e50001744adedfcf655130b91744df2818fcef1f1a019809c72e01d613faa89d 1643 ifupdown_0.7.47.2ubuntu4.1.dsc
 bda480827b59a8cff06cd26ecc217277cf971eba7b89dad2a0281b9d55f0a4cb 117882 ifupdown_0.7.47.2ubuntu4.1.tar.gz

執行

$ dpkg -s ifupdown

顯示

Package: ifupdown
Status: install ok installed
Priority: important
Section: admin
Installed-Size: 234
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Version: 0.7.47.2ubuntu4.1
Replaces: netbase (<< 5.0)
Depends: iproute2, libc6 (>= 2.14), sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16), lsb-base (>= 4.1+Debian3), initscripts (>= 2.88dsf-25), adduser
Recommends: isc-dhcp-client | dhcp-client
Suggests: ppp, rdnssd, net-tools
Breaks: dhcp3-client (<< 4.0), netbase (<< 5.0)
Conffiles:
 /etc/network/if-up.d/upstart dfbcde4fd4a3a2553930605e03e160ab
 /etc/network/if-down.d/upstart 1a0205ddbc1446782a8d4d818e97d8a5
 /etc/init/network-interface-container.conf 4daa570594afc50940f140a7731d20d1
 /etc/init/network-interface-security.conf feb6b4b52fe24c44ff1bc68addf245d6
 /etc/init/networking.conf c50811e19bcd596d99b0467b40cfbb8b
 /etc/init/network-interface.conf 2aac2eb5370da4fba37125a44bac6441
 /etc/init.d/networking 2c8c3be8b90f99de7edf0f883ebe39f3
Description: high level tools to configure network interfaces
 This package provides the tools ifup and ifdown which may be used to
 configure (or, respectively, deconfigure) network interfaces based on
 interface definitions in the file /etc/network/interfaces.
Original-Maintainer: Andrew Shadura <andrewsh@debian.org>

執行

$ dpkg -l ifupdown

顯示

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  ifupdown                     0.7.47.2ubuntu4.1   amd64               high level tools to configure network interfaces

準備工作環境

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

探索「Package: ifupdown

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

$ cd ~/Downloads/ifupdown/download

下載「Package: ifupdown」。

$ apt-get download ifupdown

解開「package ifupdown」

dpkg -x ifupdown_0.7.47.2ubuntu4.1_amd64.deb ifupdown
dpkg -e ifupdown_0.7.47.2ubuntu4.1_amd64.deb
# ar xv ifupdown_0.7.47.2ubuntu4.1_amd64.deb

檢視套件檔案

$

顯示

ifupdown
├── etc
│   ├── init
│   │   ├── networking.conf
│   │   ├── network-interface.conf
│   │   ├── network-interface-container.conf
│   │   └── network-interface-security.conf
│   ├── init.d
│   │   └── networking
│   └── network
│       ├── if-down.d
│       │   └── upstart
│       ├── if-post-down.d
│       ├── if-pre-up.d
│       ├── if-up.d
│       │   └── upstart
│       └── interfaces.d
├── lib
│   └── ifupdown
│       └── settle-dad.sh
├── sbin
│   ├── ifdown -> ifup
│   ├── ifquery -> ifup
│   └── ifup
└── usr
    └── share
        ├── doc
        │   └── ifupdown
        │       ├── changelog.gz
        │       ├── contrib
        │       │   ├── ensureifup
        │       │   ├── ifstate
        │       │   └── ifstate-check
        │       ├── copyright
        │       ├── examples
        │       │   ├── bridge
        │       │   ├── check-mac-address.sh
        │       │   ├── generate-interfaces.pl.gz
        │       │   ├── get-mac-address.sh
        │       │   ├── network-interfaces.gz
        │       │   ├── pcmcia-compat.sh
        │       │   └── ping-places.sh
        │       ├── NEWS.Debian.gz
        │       ├── README
        │       └── TODO
        ├── lintian
        │   └── overrides
        │       └── ifupdown
        └── man
            ├── man5
            │   └── interfaces.5.gz
            └── man8
                ├── ifdown.8.gz -> ifup.8.gz
                ├── ifquery.8.gz -> ifup.8.gz
                └── ifup.8.gz

23 directories, 31 files
$ tree DEBIAN

顯示

DEBIAN
├── conffiles
├── control
├── md5sums
├── postinst
├── postrm
├── preinst
└── prerm

0 directories, 7 files

探索「Source Package: ifupdown

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

$ cd ~/Downloads/ifupdown/source

下載「Source Package: ifupdown」。

$ apt-get source ifupdown

檢視原始碼套件檔案。

$ tree ifupdown-0.7.47.2ubuntu4.1

顯示

ifupdown-0.7.47.2ubuntu4.1
├── addrfam.c
├── archhurd.c
├── archhurd.h
├── archkfreebsd.c
├── archkfreebsd.h
├── archlinux.c
├── archlinux.h
├── biblio.bib
├── BUGS
├── can.defn
├── ChangeLog
├── config.c
├── contrib
│   ├── ensureifup
│   ├── ifstate
│   └── ifstate-check
├── COPYING
├── debian
│   ├── changelog
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── dirs
│   ├── docs
│   ├── examples
│   ├── ifdown.8
│   ├── ifquery.8
│   ├── ifupdown.lintian-overrides
│   ├── ifupdown.maintscript
│   ├── ifupdown.networking.upstart
│   ├── ifupdown.network-interface-container.upstart
│   ├── ifupdown.network-interface-security.upstart
│   ├── ifupdown.network-interface.upstart
│   ├── ifupdown.upstart.if-down
│   ├── ifupdown.upstart.if-up
│   ├── install
│   ├── manpages
│   ├── networking.defaults
│   ├── networking.init
│   ├── NEWS
│   ├── postinst
│   ├── postrm
│   ├── preinst
│   ├── README
│   ├── remaketests.sh
│   ├── rules
│   ├── source
│   │   └── format
│   ├── testbuild
│   ├── testbuild-hurd
│   ├── testbuild-kfreebsd
│   ├── testbuild-linux
│   └── TODO
├── defn2c.pl
├── defn2man.pl
├── dictionary.c
├── dictionary.h
├── examples
│   ├── bridge
│   ├── check-mac-address.sh
│   ├── generate-interfaces.pl
│   ├── get-mac-address.sh
│   ├── network-interfaces
│   ├── pcmcia-compat.sh
│   └── ping-places.sh
├── execute.c
├── execution.dia
├── header.h
├── ifup.8
├── inet6.defn
├── inet.defn
├── iniparser.c
├── iniparser.h
├── interfaces.5.pre
├── ipx.defn
├── link.defn
├── main.c
├── makecdep.sh
├── Makefile
├── makenwdep.sh
├── meta.defn
├── modules.dia
├── README
├── settle-dad.sh
└── TODO.scripts

4 directories, 81 files