功能說明:
apt-get 是 debian 使用者的居家必備良藥,它其實就是 debian 軟體安裝程式 dpkg 的前端程式,因為 dpkg 的指令參數實在太繁複了,對於新手(甚至老手)都會望之卻步,正因為如此 apt-get 這套 dpkg 前端程式於焉誕生。
apt-get 提供一套非常簡潔的參數供使用者對軟體 package 作安裝、移除、升級、系統升級等功能,更詳細的操作步驟請見範例。
參數列表:
- 代碼: 選擇全部
[color=green]
apt 0.5.4 for linux i386 compiled on Aug 19 2001 01:02:26
Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 ...]
apt-get [options] source pkg1 [pkg2 ...]
apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.
Commands:
update - Retrieve new lists of packages
upgrade - Perform an upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
remove - Remove packages
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8)
dselect-upgrade - Follow dselect selections
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies
Options:
-h This help text.
-q Loggable output - no progress indicator
-qq No output except for errors
-d Download only - do NOT install or unpack archives
-s No-act. Perform ordering simulation
-y Assume Yes to all queries and do not prompt
-f Attempt to continue if the integrity check fails
-m Attempt to continue if archives are unlocatable
-u Show a list of upgraded packages as well
-b Build the source package after fetching it
-c=? Read this configuration file
-o=? Set an arbitary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
This APT has Super Cow Powers.
[/color]
使用範例:
- 更新系統軟體資料庫與遠方 Server 同步
- 代碼: 選擇全部
apt-get update
- 安裝軟體
- 代碼: 選擇全部
apt-get install pkg_name
- 移除軟體
- 代碼: 選擇全部
apt-get remove pkg_name
- 移除軟體 ( 包含移除設定檔 )
- 代碼: 選擇全部
apt-get --purge remove pkg_name
- 已安裝於系統之軟體升級
- 代碼: 選擇全部
apt-get upgrade
- 系統升級
- 代碼: 選擇全部
apt-get dist-upgrade