博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
apt-get/dpkg常用指令备查
阅读量:4942 次
发布时间:2019-06-11

本文共 1854 字,大约阅读时间需要 6 分钟。

apt-get install <package> Downloads <package> and all of its dependencies, and installs or upgrades them.

apt-get remove [--purge] <package> Removes <package> and any packages that depend on it. --
purge specifies that packages should be purged.
apt-get update Updates packages listings from the repo, should be run at least once a week.
apt-get upgrade Upgrades all currently installed packages with those updates available from the repo. should be run once a week.
apt-get dist-upgrade [-u] Similar to apt-get upgrade, except that dist-upgrade will install or remove packages to satisfy dependencies.
apt-cache search <pattern> Searches packages and descriptions for <pattern>.
apt-cache show <package> Shows the full description of <package>.
apt-cache showpkg <package> Shows a lot more detail about <package>, and its relationships to other packages.
dpkg -i <package.deb> Installs a package file; one that you downloaded manually, for exam-
ple.
dpkg -c <package.deb> Lists the contents of <package.deb> a .deb file.
dpkg -I <package.deb> Extracts package information from <package.deb> a .deb file.
dpkg -r <package> Removes an installed package named <package>
dpkg -P <package> Purges an installed package named <package>. The difference between re-move and purge is that while remove only deletes data and executables, purge also deletes
all configuration files in addition.
dpkg -L <package> Gives a listing of all the files installed by <package>. See also dpkg -c
for checking the contents of a .deb file.
dpkg -s <package> Shows information on the installed package <package>. See also apt-cache show for viewing package information in the Debian archive and dpkg -I for viewing package
information extracted from a .deb file.
dpkg-reconfigure <package> Reconfigures an installed package

转载于:https://www.cnblogs.com/vigarbuaa/p/3490506.html

你可能感兴趣的文章
percent的用法
查看>>
中文词频统计
查看>>
Hibernate三种状态详解
查看>>
判断一个数是否是2^N次方
查看>>
js中几种实用的跨域方法原理详解
查看>>
打印图形
查看>>
《第一行代码》学习笔记7-活动Activity(5)
查看>>
ngx_http_core_module 模块
查看>>
两个常见的oracle索引
查看>>
一位有着工匠精神的博主写的关于IEnumerable接口的详细解析
查看>>
MySQL中特有的函数If函数
查看>>
安装Python3.6.2报错:zipimport.ZipImportError: can't decompress data; zlib not available
查看>>
【蓝桥杯】入门训练 Fibonacci数列
查看>>
实验十 指针2
查看>>
常见HTTP状态码
查看>>
vim 空格和换行的删除和替换
查看>>
ionic 入门学习
查看>>
[python]pickle和cPickle
查看>>
末日了,天是灰色的。
查看>>
Vuejs vm对象详解
查看>>