Merge pull request #57 from woodboow/master

Removing Applications Using Terminal in Ubuntu翻译完毕
This commit is contained in:
Xingyu.Wang 2013-09-28 01:51:21 -07:00
commit 9ddacdc87e
2 changed files with 73 additions and 74 deletions

View File

@ -1,74 +0,0 @@
Removing Applications Using Terminal in Ubuntu
在Ubuntu中使用终端删除应用程序
================================================================================
You are a Linux user (Ubuntu). You always install applications from the terminal using **apt-get** install.
Even though you can add and remove applications using GUI (Synaptic Package Manager), it is always said that the command line is power. After installing a whole lot of applications both small and large in size. You now need disk space for other applications or you no longer want to see such applications on your system.
Most Ubuntu users, beginners specifically can install from the terminal after searching for how to install it. It becomes very difficult removing it. I also went through this.
This is a simple tutorial to guide you through how to remove packages installed.
1. Open Terminal (ctrl + alt + t)
2. Type
$ dpkg --list
(this displays all installed packages at a go)
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/list_.png)
OR
$ dpkg --list | less
(to easily navigate using the user keys)
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/dpkg_list.png)
OR
If you know the package name, you can pipe it with **grep** command to locate it using the syntax below:
$ dpkg --list|grep -i 'packagename'
Example for **VLC** player.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/vlc_grep.png)
3. Locate the name of the package to be removed. Here am going to use **sox**.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/remove_SoX.png)
4. To remove only a package use:
$ sudo apt-get remove <packagename>
For example to remove package called **sox** , enter:
$ sudo apt-get remove sox
Type y for Yes to uninstall.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/sox2.png)
5. To remove a package with its configuration files, enter:
$ sudo apt-get --purge remove <packagename>
For example removing a package called sox and all configuration files:
$ sudo apt-get --purge remove sox
via: http://www.unixmen.com/removing-applications-using-terminal-ubuntu/
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
译者:[译者ID][] 校对:[校对者ID][]
[LCTT]:https://github.com/LCTT/TranslateProject
[Linux中国]:http://linux.cn/portal.php
[译者ID]:http://linux.cn/space/译者ID
[校对者ID]:http://linux.cn/space/校对者ID

View File

@ -0,0 +1,73 @@
在Ubuntu中使用终端删除应用程序
================================================================================
作为一个LinuxUbuntu)用户,你每次要从终端安装应用程序的时候都会用到**apt-get**这条命令。
虽然你可以使用图形化界面来安装删除应用程序,但是命令行依然被认为是功能强大的方式。在安装了许多大大小小的应用程序以后,你会需要更多的磁盘空间来安装其他的应用程序,或者有些程序对你不再有用了。
大多数人,尤其是初学者,通过在查阅资料后,能够从终端安装一个程序,但是却很难删除它。我也曾经有过这样的经历。
这是一个简单的教程,指导你如何删除已经安装的软件包。
1. 打开终端ctrl + alt + t
2. 输入
$ dpkg --list
(这条命令会显示所有已安装的包)
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/list_.png)
或者
$ dpkg --list | less
(这样可以轻松的使用用户的按键来导航)
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/dpkg_list.png)
或者
如果你知道软件包的名字,你可以使用管道命令**grep**来查找,使用下面的语句:
$ dpkg --list|grep -i 'packagename'
以**VLC**播放器为例。
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/vlc_grep.png)
3. 查找要删除的包名字,这里我要使用**sox**。
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/remove_SoX.png)
4. 要只删除一个软件包,使用下面的命令:
$ sudo apt-get remove <packagename>
比如,删除一个叫**sox**的软件包,输入:
$ sudo apt-get remove sox
输入y来确认卸载。
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/09/sox2.png)
5. 要删除一个包以及它的配置文件,输入:
$ sudo apt-get --purge remove <packagename>
比如删除一个叫sox的包以及其所有的配置文件
$ sudo apt-get --purge remove sox
via: http://www.unixmen.com/removing-applications-using-terminal-ubuntu/
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
译者:[译者ID][markvv] 校对:[校对者ID][]
[LCTT]:https://github.com/LCTT/TranslateProject
[Linux中国]:http://linux.cn/portal.php
[译者ID]:http://linux.cn/space/译者ID
[校对者ID]:http://linux.cn/space/校对者ID