常用命令参考:
http://wiki.ubuntu.org.cn/Apt和dpkg快速参考
===apt-get&apt-cache===
apt-get update
apt-get upgrade
apt-get install
apt-get -f install (force install)
apt-get remove
apt-get remove [ ] --purge(remove including the config files)
apt-get dist-upgrade
apt-get dselect-upgrade(upgrade using deselect)
apt-cache depends
apt-cache rdepends
apt-get build-dep(install packages required for building)
apt-get source(get the source files for packages)
apt-get clean&apt-get autoclean
apt-get check
===apt-cdrom===
intro: apt-cdrom is a tool to add CDROM's to APT's source list. the cdrom mount point and device information is taken from apt.conf(提供cdrom的默认挂载点) and /etc/fstab
命令:
add
添加一个cdrom
ident
报告cdrom的识别参数
参数:
-d
cdrom挂载点
-f
快速模式,不检查包信息
===apt-config===
intro: apt-config is an internal program used by various portions of the APT suite to provide consistent configurability. it access the main configuration file /etc/apt/apt.conf in a manner that is easy to use by scripted applications.
===apt-key===
intro: manage apt's list of trusted keys
命令:
apt-key add
apt-key del
apt-key export
apt-key exporteall
apt-key update
apt-key net-update
apt-key list
apt-key finger
apt-key adv
===apt-mark===
Intro: mark/unmark a package as being automatically installed
一般应该为自动调用吧