", "apt-get autoremove " or use "dpkg --get-selections | grep "."/> ", "apt-get autoremove " or use "dpkg --get-selections | grep ".">

Home  >  Article  >  Operation and Maintenance  >  What is the command to uninstall software in linux?

What is the command to uninstall software in linux?

尚
Original
2020-04-27 10:59:4413633browse

What is the command to uninstall software in linux?

linux卸载软件的方法:

1、删除软件

方法一、如果你知道要删除软件的具体名称,可以使用

sudo apt-get remove --purge 软件名称  
sudo apt-get autoremove --purge 软件名称

方法二、如果不知道要删除软件的具体名称,可以使用

dpkg --get-selections | grep ‘软件相关名称’

sudo apt-get purge 一个带core的package,如果没有带core的package,则是情况而定。

2、清理残留数据

dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P

推荐学习:Linux视频教程

The above is the detailed content of What is the command to uninstall software in linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn