歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

【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

Copyright © Linux教程網 All Rights Reserved