简体   繁体   English

在 ubuntu 12.04 上卸载 sublime text 3

[英]uninstall sublime text 3 on ubuntu 12.04

As the sublime text 3 beta has been released and opened to the public I decided to upgrade to it.由于 sublime text 3 beta 已经发布并向公众开放,我决定升级到它。 Turns out that most of the plugins I generally use are not ready to use yet and it has slowed me down.事实证明,我通常使用的大多数插件还没有准备好使用,这让我的速度变慢了。 I wanted to uninstall it and resume using sublime text, but haven't find any method of doing so apart from the revert, which would just reset the version 3.我想卸载它并继续使用 sublime text,但除了还原之外没有找到任何这样做的方法,这只会重置版本 3。

I am waiting on any suggestions.我正在等待任何建议。

EDIT I forgot to add that my sublime text 2 was not uninstalled so they both run concurrently only now whenever I try to open sublime text 2 it is shut down automatically after few seconds.编辑我忘了补充一点,我的 sublime text 2 没有被卸载,所以它们现在只在我尝试打开 sublime text 2 时同时运行,它会在几秒钟后自动关闭。

Option 1选项1

If you installed sublime-text-3 with apt-get, based on this article:如果你用 apt-get 安装了 sublime-text-3,根据这篇文章:

http://www.webupd8.org/2013/07/sublime-text-3-ubuntu-ppa-now-available.html http://www.webupd8.org/2013/07/sublime-text-3-ubuntu-ppa-now-available.html

With these lines:使用这些行:

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

You could remove your installation:您可以删除您的安装:

sudo apt-get remove sublime-text-installer

Option 2选项 2

If you installed Sublime Text 3 from a .deb package which was downloaded directly from Sublime Text page: http://www.sublimetext.com/3如果您从直接从 Sublime Text 页面下载的 .deb 包安装 Sublime Text 3:http: //www.sublimetext.com/3

And you have used this command for installation并且您已使用此命令进行安装

sudo dpkg -i sublime-text_build-3047_amd64.deb

Or you just double clicked on it and Ubuntu Software Center installed it...或者你只是双击它然后Ubuntu软件中心安装了它......

So, in this case:所以,在这种情况下:

sudo dpkg -r sublime-text

But you have to reinstall Sublime Text 2 in each case... Your configurations are in different folders, so your previous settings which belongs to Sublime Text 2, will be still there.但是您必须在每种情况下重新安装 Sublime Text 2...您的配置位于不同的文件夹中,因此您之前属于 Sublime Text 2 的设置将仍然存在。

To remove SUBLIME TEXT from your machine:要从您的机器中删除 SUBLIME TEXT:

Go To Terminal and type:转到终端并输入:

sudo apt remove sublime-text

this worked for me....这对我有用....

Base on answer by szine基于 szine 的回答

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

At some point you'd want to be able to call Sublime Text from the Terminal by just typing “sublime”.在某些时候,您希望能够通过键入“sublime”从终端调用 Sublime Text。 To do that, we'll just create a symbolic link in “/usr/bin” like thus:为此,我们只需在“/usr/bin”中创建一个符号链接,如下所示:

sudo ln -s /opt/sublime_text/sublime_text /usr/bin/sublime

Very simple sudo apt remove sublime-text or sudo snap remove sublime-text from command line might work.非常简单sudo apt remove sublime-textsudo snap remove sublime-text from command line 可能会起作用。 At least they worked for me.至少他们为我工作。

你可以使用这个命令,它帮助了我
sudo apt-get remove sublime-text && sudo apt-get autoremove

I was getting an error after error, so I navigated to $: /usr/local/bin , and I listed all.我一个接一个地出错,所以我导航到$: /usr/local/bin ,我列出了所有。 I figured out that I had already subl and sublime.我发现我已经 subl 和 sublime 了。 I deleted both using "rm file_to_delete".我使用“rm file_to_delete”删除了两者。 Then I used Homebrew to reinstall.然后我用 Homebrew 重新安装。

for Ubuntu just open Terminal and write对于 Ubuntu,只需打开终端并编写

sudo apt remove sublime-text sudo apt 删除崇高文本

sudo apt-get 删除 sublime-text-installer

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM