apt用法
apt-get
apt list [package] | list packages based on package names | |
apt search [keyword] | search keyword in package descriptions | |
apt show [package] | show package details | |
apt install [package] | apt-get [options] install pkg1 [pkg2 ...] | Install new packages |
apt remove [package] | apt-get [options] remove pkg1 [pkg2 ...] | Remove packages |
apt-get autoremove [package] | Remove automatically all unused packages | |
apt purge [package] | apt-get purge [package] | Remove packages and config files |
apt update | apt-get update | Retrieve new lists of packages |
apt upgrade | apt-get upgrade | Perform an upgrade |
apt full-upgrade | upgrade the system by removing/installing/upgrading packages | |
apt dist-upgrade | apt-get dist-upgrade | upgrade the system by removing/installing/upgrading packages |
apt-get dselect-upgrade | Follow dselect selections | |
apt edit-source | edit the source information file | |
apt-get [options] source pkg1 [pkg2 ...] | Download source archives | |
apt-get clean | Erase downloaded archive files | |
apt-get autoclean | Erase old downloaded archive files | |
apt-get check | Verify that there are no broken dependencies | |
apt-get download | Download the binary package into the current directory | |
apt-get markauto | ||
apt-get unmarkauto | ||
apt-get build-dep | Configure build-dependencies for source packages | |
apt-get changelog | Download and display the changelog for the given package |
apt-cache
apt-cache [options] command
apt-cache [options] gencaches | Build both the package and source cache |
apt-cache [options] showpkg pkg1 [pkg2 ...] | apt-cache [options] showpkg pkg1 [pkg2 ...] |
apt-cache [options] showsrc pkg1 [pkg2 ...] | Show source records |
stats | Show some basic statistics |
dump | Show the entire file in a terse form |
dumpavail | Print an available file to stdout |
unmet | Show unmet dependencies |
search | Search the package list for a regex pattern |
show | Show a readable record for the package |
depends | Show raw dependency information for a package |
rdepends | Show reverse dependency information for a package |
pkgnames | List the names of all packages in the system |
dotty | Generate package graphs for GraphViz |
xvcg | Generate package graphs for xvcg |
policy | Show policy settings |