What is the command to uninstall software in linux?

Release: 2020-05-12 17:07:49
Original
13834 people have browsed it

What is the command to uninstall software in linux?

linux卸载软件的方法:

1、删除软件

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

sudo apt-get remove --purge 软件名称  
sudo apt-get autoremove --purge 软件名称
Copy after login

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

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

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

2、清理残留数据

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

推荐学习: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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!