-
Notifications
You must be signed in to change notification settings - Fork 43
linux cmd apt get
cheyiliu edited this page Sep 19, 2014
·
1 revision
- 先从源里/etc/apt/sources.list 去找服务器入口地址,再按匹配规则找一个所有包的信息描述文件,
Package: acl
Priority: optional
Section: utils
Installed-Size: 300
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Nathan Scott <nathans@debian.org>
Architecture: amd64
Version: 2.2.49-2
Depends: libacl1 (>= 2.2.11-1), libattr1 (>= 2.4.41-1), libc6 (>= 2.4)
Filename: pool/main/a/acl/acl_2.2.49-2_amd64.deb
Size: 56752
MD5sum: 903d9bdfcfe96f93babc93a127364ba4
SHA1: 4d3e192eddc4319dac42681c293b3b04fdf71845
SHA256: 2405406323efdd3dd474889db998e4aa5e8d7da610ed799e0acdd443ce634bfc
Description: Access control list utilities
This package contains the getfacl and setfacl utilities needed for
manipulating access control lists.
Homepage: http://savannah.nongnu.org/projects/acl/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
- 再去找包的地址(Filename)下载并安装,包括依赖处理等。
更新本地缓存,类似REST app清理缓存json。
- apt-cache search package 搜索包
- apt-cache show package 获取包的相关信息,如说明、大小、版本等
- sudo apt-get install package 安装包
- sudo apt-get install package - - reinstall 重新安装包
- sudo apt-get -f install 修复安装"-f = ——fix-missing"
- sudo apt-get remove package 删除包
- sudo apt-get remove package - - purge 删除包,包括删除配置文件等
- sudo apt-get update 更新源
- sudo apt-get upgrade 更新已安装的包
- sudo apt-get dist-upgrade 升级系统
- sudo apt-get dselect-upgrade 使用 dselect 升级
- apt-cache depends package 了解使用依赖
- apt-cache rdepends package 是查看该包被哪些包依赖
- sudo apt-get build-dep package 安装相关的编译环境
- apt-get source package 下载该包的源代码
- sudo apt-get clean && sudo apt-get autoclean 清理无用的包
- sudo apt-get check 检查是否有损坏的依赖
Just build something.