第 3 章 Package Management

目錄

3.1. apt-cache
3.1.1. search
3.1.2. depends
3.1.3. policy
3.2. Apt-Get
3.2.1. Search
3.2.2. Installation
3.2.3. Update
3.2.4. Remove
3.3. aptitude
3.4. Automatic Updates
3.5. dpkg
3.5.1. -i|--install 安裝.deb包
3.5.2. -r|--remove 卸載.deb包
3.5.3. -L|--listfiles <package> ... List files `owned' by package(s). 列出包中的檔案
3.5.4. -l|--list [<pattern> ...] List packages concisely. 列出.deb包
3.5.5. Status
3.5.6. dpkg-deb - Debian package archive (.deb) manipulation tool
3.5.6.1. -X, --vextract archive directory Extract and display the filenames contained by a package
3.5.6.2. -e, --control archive [directory] Extracts the control information files from a package archive into the specified directory.
3.5.6.3. -b, --build directory [archive|directory]
3.5.7. dpkg-reconfigure
3.6. Upgrading
3.6.1. GUI
3.6.2. CLI
3.6.3. CDROM
3.7. 製作.deb安裝包
3.7.1. checkinstall — Track installation of local software, and produce a binary manageable with your package management software.
3.7.2. dh_make - prepare Debian packaging for an original source archive
3.7.3. control

包管理工具

3.1. apt-cache

3.1.1. search

# apt-cache search tcpdump
			

3.1.2. depends

# apt-cache depends tcpdump
			

3.1.3. policy

$ apt-cache policy tcpdump
tcpdump:
  Installed: 4.0.0-6ubuntu3
  Candidate: 4.0.0-6ubuntu3
  Version table:
 *** 4.0.0-6ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status