wget 套件探索
下載套件
下載「wget」這個套件。
$ apt download wget
解開套件
解開「wget_1.17.1-1ubuntu1_amd64.deb」
$ dpkg -x wget_1.17.1-1ubuntu1_amd64.deb wget
觀看資料夾結構
執行
$ tree wget
顯示
wget
├── etc
│ └── wgetrc
└── usr
├── bin
│ └── wget
└── share
├── doc
│ └── wget
│ ├── AUTHORS
│ ├── changelog.Debian.gz
│ ├── copyright
│ ├── MAILING-LIST
│ ├── NEWS.gz
│ └── README
├── info
│ └── wget.info.gz
└── man
└── man1
└── wget.1.gz
9 directories, 10 files
若有安裝這個套件的話,可執行
$ dpkg -L wget
顯示
/.
/etc
/etc/wgetrc
/usr
/usr/share
/usr/share/doc
/usr/share/doc/wget
/usr/share/doc/wget/AUTHORS
/usr/share/doc/wget/NEWS.gz
/usr/share/doc/wget/copyright
/usr/share/doc/wget/README
/usr/share/doc/wget/changelog.Debian.gz
/usr/share/doc/wget/MAILING-LIST
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/wget.1.gz
/usr/share/info
/usr/share/info/wget.info.gz
/usr/bin
/usr/bin/wget
manpage
執行
$ dpkg -L wget | grep '/man/man.*/'
顯示
/usr/share/man/man1/wget.1.gz
- $ man 1 wget
info
執行
$ info wget
下載 Source Package
執行
$ apt source wget
會下載「wget」這個「Source Package」
套件資訊
網址: http://packages.ubuntu.com/xenial/wget
執行
$ apt show wget
顯示
Package: wget
Version: 1.17.1-1ubuntu1
Priority: standard
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Noël Köthe <noel@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 897 kB
Depends: libc6 (>= 2.17), libidn11 (>= 1.13), libpcre3, libssl1.0.0 (>= 1.0.1), libuuid1 (>= 2.16), zlib1g (>= 1:1.1.4)
Recommends: ca-certificates
Conflicts: wget-ssl
Homepage: https://www.gnu.org/software/wget/
Task: standard, mythbuntu-backend-slave, mythbuntu-backend-master, ubuntu-touch-core, ubuntu-touch, ubuntu-sdk
Supported: 5y
Download-Size: 297 kB
APT-Manual-Installed: yes
APT-Sources: http://tw.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Description: retrieves files from the web
Wget is a network utility to retrieve files from the web
using HTTP(S) and FTP, the two most widely used internet
protocols. It works non-interactively, so it will work in
the background, after having logged off. The program supports
recursive retrieval of web-authoring pages as well as FTP
sites -- you can use Wget to make mirrors of archives and
home pages or to travel the web like a WWW robot.
.
Wget works particularly well with slow or unstable connections
by continuing to retrieve a document until the document is fully
downloaded. Re-getting files from where it left off works on
servers (both HTTP and FTP) that support it. Both HTTP and FTP
retrievals can be time stamped, so Wget can see if the remote
file has changed since the last retrieval and automatically
retrieve the new version if it has.
.
Wget supports proxy servers; this can lighten the network load,
speed up retrieval, and provide access behind firewalls.
源碼套件資訊
網址: http://packages.ubuntu.com/source/xenial/wget
執行
$ apt showsrc wget
顯示
Package: wget
Binary: wget, wget-udeb
Version: 1.17.1-1ubuntu1
Priority: standard
Section: web
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Noël Köthe <noel@debian.org>
Build-Depends: debhelper (>> 9.0.0), gettext, texinfo, autotools-dev, libidn11-dev, uuid-dev, libpcre3-dev, libssl-dev, automake
Architecture: any
Standards-Version: 3.9.6
Format: 3.0 (quilt)
Directory: pool/main/w/wget
Files:
9eb0a5b54a97e18e70590721dc712162 1929 wget_1.17.1-1ubuntu1.dsc
a6a908c9ae0e6a4194c628974cc3f05a 3801442 wget_1.17.1.orig.tar.gz
d4c2b9e10ec44366d3fd7495edc3ee3d 21844 wget_1.17.1-1ubuntu1.debian.tar.xz
Homepage: https://www.gnu.org/software/wget/
Package-List:
wget deb web important arch=any
wget-udeb udeb debian-installer extra arch=any
Checksums-Sha1:
1630d218a8d3f366c83f1f6fcfadb56c297a45ec 1929 wget_1.17.1-1ubuntu1.dsc
a4b9ca464e0cfb8d57b0d890e3d7df99b486b01a 3801442 wget_1.17.1.orig.tar.gz
53cba0c0dd13034383e42f3e57d35e74460de688 21844 wget_1.17.1-1ubuntu1.debian.tar.xz
Checksums-Sha256:
3b383aac4b7e62ee3f17a61e2bdbd741219d4ddca7624df6fb6c463c40d08cea 1929 wget_1.17.1-1ubuntu1.dsc
029fbb93bdc1c0c5a7507b6076a6ec2f8d34204a85aa87e5b2f61a9405b290f5 3801442 wget_1.17.1.orig.tar.gz
8cfc3934105c3a557af28a72283efec5a4694c724d866ded2af7319082bd4711 21844 wget_1.17.1-1ubuntu1.debian.tar.xz