如何更新 Sublime Text 编辑器

How to update Sublime Text Editor

我一般使用sublime text进行python编程,有一些疑问:

(A)。如何检查我使用的是哪个版本的 Sublime Text 编辑器。 (我认为它是 sublime text 3,因为当我单击 Help>Documentation 然后它会打开 sublime text 3 文档,但我不确定)

(乙)。每当我打开文本编辑器时,它都会显示 window 以及下载最新版本的消息。当我下载 sublime_text_3_build_3103_x64.tar.bz2 时,我在包中得到了很多 py 文件,所以我想知道如何更新这个文本编辑器。

目前我正在使用 Ubuntu 15.04.

谢谢。

要查看版本,请转至 Help --> About Sublime Text

Sublime 3:要下载最新版本,请转到他们的 official site. You can donwload .deb files from there which is very easy to install. Check this。在您的情况下,它将是(假设您下载了 .deb 文件):

sudo dpkg -i sublime-text_build-3103_i386.deb

Sublime 2:从here下载最新版本。

有关如何安装的说明,请检查 this link on askubuntu

我个人不喜欢任何自动更新的东西,所以要升级到最新版本,我总是访问官方网站并获取最新的 installer/package。同样对于 sublime,在 sublime 提示下载最新版本时,我单击取消并转到官方网站并自行下载。

P.S.:您的问题在本网站上似乎偏离主题。您应该在 askubuntu 上提问。

编辑: 您可以从 https://www.sublimetext.com/3dev

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

如果您想更新版本,只需将这些命令复制并粘贴到您的终端即可。

这应该有效

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

按照以下给定的步骤,我的工作正常。来源 here

Check the path of your executable if you have one:

cat $(which subl)

This assumes you have the executable from command line (e.g. subl), otherwise find a way to locate your installation (e.g. locate sublime_text), mine was /opt/sublime_text.

From the official website, the latest version as of editing is build 3176 (16 May 2018).

The 64-bit tarball can be downloaded there as well as the 32-bit one.

Download and untar the file (one command):

curl https://download.sublimetext.com/sublime_text_3_build_3176_x64.tar.bz2 | tar vxj

Overwrite your old installation e.g. sudo cp -rf sublime_text_3/. /opt/sublime_text

Remove the download rm -rf sublime_text_3

And you're done!

使用命令 which sublwhereis -b sublime-text 检查 Sublime 的安装位置。它可能位于名为 /snap/bin/ 的根文件夹中。 (Alternative ways 查找应用程序位置)

如果它在那里,你已经(不知不觉地)通过 Snappy (the "Ubuntu Software" application on Ubuntu 18 does that). Then you can use snap 安装了 Sublime 以使用终端更新 Sublime。像这样:

$ snap find sublime

Name                  Version  Publisher     Notes    Summary
subliminal-subtitles  2.0.5    nubing        -        Subtitles, faster than your thoughts
sublime-text          3207     snapcrafters  classic  A sophisticated text editor for code, markup and prose.

$ snap info sublime-text

name:      sublime-text
summary:   A sophisticated text editor for code, markup and prose.
publisher: Snapcrafters
contact:   https://github.com/snapcrafters/sublime-text/issues
license:   unset
description: |
  A sophisticated text editor for code, markup and prose.


  This snap is maintained by the Snapcrafters community, and is not
  necessarily endorsed or officially maintained by the upstream
  developers.
commands:
  - sublime-text.subl
snap-id:      2kOIsSRmQ7zjpIxzZDpoXaZOVejqaGOT
tracking:     stable
refresh-date: 25 days ago, at 19:58 CET
channels:
  stable:    3207 2019-04-06 (58) 70MB classic
  candidate: ↑                         
  beta:      ↑                         
  edge:      3207 2019-04-06 (58) 70MB classic
installed:   3200            (51) 70MB classic

$ snap refresh sublime-text