« »

Debian包管理

查看软件XXX安装内容
dpkg -L xxx

查找软件
apt-cache search 正则表达式

查找文件属于哪个包

dpkg -S filename
apt-file search filename

查询软件xxx依赖哪些包

apt-cache depends xxx

查询软件xxx被哪个包依赖

apt-cache rdepends xxx

增加一个光盘源

sudo apt-cdrom add

系统升级

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

清除所有已删除包的残余配置文件

dpkg -l |grep ^rc|awk '{print $2}' |tr ["\n"] [" "] sudo xargs dpkg -P -

编译时缺少h 文件的自动处理

sudo auto-apt run ./configure

查看安装软件时下载包的临时存放目录

ls /var/cache/apt/archives

备份当前系统安装的所有包的列表

dpkg --set-selections >~/somefile
sudo dselect

清理旧版本的软件缓存

sudo apt-get clean

删除系统不再使用的孤立软件

sudo apt-get autoremove

查看包在服务器上的地址

sudo apt-get -qq --print-uris install ssh |cut -d\' -f2

您还可能感兴趣的内容

日志信息 »

该日志于2008-08-18 05:19由 x72 发表在Debian分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

没有评论

发表评论 »


返回顶部