下载后可任意编辑前言下面的命令大都需要在 控制台 / 终端 / shell 下输入。控制台, 终端, 和 shell 意味着同样一件事 - 一个命令行界面, 他可以用来控制系统。打开一个控制台:应用程序 --> 附件 --> 终端任何一个使用 'sudo' 作为前缀的命令都需要拥有管理员 (或 root) 访问权限。 所以你会被提示输入你自己的密码。安装升级查看软件 xxx 安装内容dpkg -L xxx 查找软件库中的软件apt-cache search 正则表达式或aptitude search 软件包显示系统安装包的统计信息apt-cache stats显示系统全部可用包的名称apt-cache pkgnames显示包的信息下载后可任意编辑apt-cache show k3b查找文件属于哪个包dpkg -S filenameapt-file search filename查看已经安装了哪些包dpkg -l也可用dpkg -l | less翻页查看查询软件 xxx 依赖哪些包apt-cache depends xxx查询软件 xxx 被哪些包依赖apt-cache rdepends xxx增加一个光盘源sudo apt-cdrom add系统更新下载后可任意编辑sudo apt-get update (这一步更新包列表)sudo apt-get dist-upgrade (这一步安装所有可用更新)或者sudo apt-get upgrade (这一步安装应用程序更新,不安装新内核等)清除所有已删除包的残馀配置文件dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 假如报如下错误,证明你的系统中没有残留配置文件了,无须担心。dpkg: --purge needs at least one package name argumentType dpkg --help for help about installing and deinstalling packages [*];Use `dselect' or `aptitude' for user-friendly package management;Type dpkg -Dhelp for a list of dpkg debug flag values;Type dpkg --force-help for a list of forcing options;Type dpkg-deb --help for help about manipulating *.deb files;Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].Options marked [*] produce a lot of output - pipe it through `less' or `more' !编译时缺少 h 文件的自动处理sudo auto-apt run ./configure下载后可任意编辑查看安装软件时下载包的临时存放目录ls /var/cache/apt/archives备份当前系统安装的所有包的列表dpkg --get-selections | grep -v deinstall > ~/somefile从上面备份...