软件包.deb的安装及卸载------dpkg

文章链接:https://blog.csdn.net/qq_36764147/article/details/81332606

    删除带有rc的软件包:https://blog.csdn.net/chrisniu1984/article/details/6619755

如果想要完整删除所有 rc 状态的包一个一个删还是很麻烦的,所以可以使用以下命令进行清理:$ dpkg -l | grep ^rc | cut -d' ' -f3 | sudo xargs dpkg --purge

安装软件 apt-get install softname1 softname2 softname3……
卸载软件 apt-get remove softname1 softname2 softname3……
卸载并清除配置 apt-get remove –purge softname1
更新软件信息数据库 apt-get update
进行系统升级 apt-get upgrade
搜索软件包 apt-cache search softname1 softname2 softname3……
修正(依赖关系)安装:apt-get -f install

安装deb软件包 dpkg -i xxx.deb
删除软件包 dpkg -r xxx.deb
连同配置文件一起删除 dpkg -r –purge xxx.deb
查看软件包信息 dpkg -info xxx.deb
查看文件拷贝详情 dpkg -L xxx.deb
查看系统中已安装软件包信息 dpkg -l
重新配置软件包 dpkg-reconfigure xx

sudo dpkg -p package_name 卸载软件包及其配置文件,但无法解决依赖关系!

sudo aptitude purge pkgname 卸载软件包及其配置文件与依赖关系包!
清除所有已删除包的残馀配置文件
dpkg -l |grep ^rc|awk ‘{print $2}’ |sudo xargs dpkg -P
如果报如下错误,证明你的系统中没有残留配置文件了,无须担心。
---------------------
作者:16TLLUO
来源:CSDN
原文:https://blog.csdn.net/qq_36764147/article/details/81332606
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自www.cnblogs.com/thoughtful-actors/p/10477024.html