APT something

本文详细介绍了Ubuntu系统中APT工具的使用方法,包括各种命令及其参数说明,如更新软件源列表、安装和卸载软件包等,对于Ubuntu系统管理员及用户来说是一份实用的参考指南。
常用命令参考: 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
一般应该为自动调用吧

转载于:https://my.oschina.net/maxyang2008/blog/6790

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值