【Linux】How to Uninstall a Program in Linux(如何卸载Linux系统的应用程序)

How to Uninstall a Program in Linux
如何卸载Linux系统的应用程序
译/ 疯子
Linux has many ways to install programs. The graphical package manager, RPMs, the Debian package manager, the apt and yum utilities, and compiling directly from source code are the most popular methods. Uninstalling a program depends on the way you installed the application in the first place. In order to complete the process, you must know the way the program was installed and the exact name of the program. The following steps explain the uninstall process and commands for each of the most popular installation methods.
Linux系统有多种方法安装程序,其中最流行的安装方法是通过图形包管理器、RPM包、 Debian包管理器、apt和yum程序文件,还有通过源代码编译链接安装的。不同的安装方法有不同的卸载方式。为了能达到完全卸载的结果,你必须知道这个程序的安装方法,以及程序准确的名字,以下是对这几种流行的安装程序方法的卸载步骤的解释:
Instructions(说明)

1、 Click on the program and choose uninstall in the graphical package manager if the program was installed via the package manager.
如果是通过包管理器安装的程序,可以直接通过图形包管理器直接点击卸载。
2、 Issue the command "rpm -e program_name" if the program was installed via an .rpm file.
如果是通过 .rpm程序包安装的程序,需要在命令窗口运行  rpm -eprogram_name命令。
3、Type the command "sudo dpkg -r program_name" if the program was installed via the Debian package manager(.deb).
如果是通过 .deb 程序包安装的程序 ,需要在命令窗口运行  sudo dpkg -rprogram_name 命令。
4、 Enter the command "sudo apt-get remove program_name" if the program was installed from the command line via the apt utility. This command only removes the program while leaving the configuration files behind. If you want to totally remove the program and all of its files, use the command "apt-get --purge remove program_name".
如果是通过apt这种方式,需要运行 sudo apt-get remove program_name命令。但这种方式会留下程序的认证、设置文件,如果你想彻底的删除,就用 apt-get  --purge  remove  program_name命令。
5、 Issue the command "yum remove program_name" if the program was installed from the command line via the yum utility.
如果是通过 yum这种方式安装,运行 yum removeprogram_name 命令。
6、 Enter the directory that holds the make files and type "make uninstall" if the program was installed from source code.
如果程序是通过编译链接安装的,需要在命令窗口切换到这个程序的 make files的目录,再运行 make uninstall命令。

原文链接:http://www.ehow.com/how_5079497_uninstall-program-linux.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值