[英]How to update Sublime Text Editor
I generally use sublime text for python programming and I have some questions:我一般使用sublime text进行python编程,有一些疑问:
(A). (一种)。 How to check which version of Sublime Text editor I am using.
如何检查我使用的是哪个版本的 Sublime Text 编辑器。 (I think it is sublime text 3 because when I click Help>Documentation then it opens sublime text 3 documentation but I am not sure)
(我认为它是 sublime text 3,因为当我单击“帮助”>“文档”时,它会打开 sublime text 3 文档,但我不确定)
(B). (二). Whenever I open text editor it shows a window with a message to download the latest version.
每当我打开文本编辑器时,它都会显示 window,并显示一条消息,要求下载最新版本。 When I download sublime_text_3_build_3103_x64.tar.bz2 I get lots of py files inside the package so I want to know how to update this text editor.
当我下载sublime_text_3_build_3103_x64.tar.bz2时,我在 package 中得到了很多 py 文件,所以我想知道如何更新这个文本编辑器。
Currently I am using Ubuntu 15.04.目前我正在使用 Ubuntu 15.04。
Thanks.谢谢。
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
If you want to update version, just copy and paste these commands in your terminal. 如果要更新版本,只需将这些命令复制并粘贴到终端中即可。
To check version, go to Help --> About Sublime Text
. 要检查版本,请转到
Help --> About Sublime Text
。
Sublime 3 : To download latest version, go to their official site . Sublime 3 :要下载最新版本,请访问其官方网站 。 You can donwload
.deb
files from there which is very easy to install. 您可以从那里下载
.deb
文件,这很容易安装。 Check this . 检查一下 。 In your case it will be (assuming you downloaded the
.deb
file): 在您的情况下(假设您下载了
.deb
文件):
sudo dpkg -i sublime-text_build-3103_i386.deb
Sublime 2 : Download the latest version from here . Sublime 2 :从此处下载最新版本。
For instructions on how to install check this link on askubuntu . 有关如何安装的说明,请在askubuntu上查看此链接 。
I personally don't prefer anything updating automatically, so to upgrade to latest version, I always visit the official site and grab the latest installer/package. 我个人不希望自动进行任何更新,因此要升级到最新版本,我总是访问官方网站并获取最新的安装程序/软件包。 Likewise for sublime, on prompt by sublime to download latest version I click cancel and go to official site and download for myself.
同样对于Sublime,在Sublime提示下载最新版本时,我单击“取消”并转到官方网站并自行下载。
PS : your question seems off-topic on this site. PS :您的问题在本网站上似乎不合时宜。 You should have asked on askubuntu instead.
您应该在askubuntu上问过 。
Edit: You can download .deb from https://www.sublimetext.com/3dev 编辑:您可以从https://www.sublimetext.com/3dev下载.deb
This should work 这应该工作
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Mine worked fine by following the below given steps. 按照下面给出的步骤,我的工作正常。 Source here
来源在这里
Check the path of your executable if you have one:
检查可执行文件的路径(如果有):
cat $(which subl)
This assumes you have the executable from command line (eg
subl
), otherwise find a way to locate your installation (eglocate sublime_text
), mine was/opt/sublime_text
.假设您具有命令行中的可执行文件(例如
subl
),否则找到一种找到安装位置的方法(例如locate sublime_text
),我的是/opt/sublime_text
。From the official website , the latest version as of editing is build
3176
(16 May 2018) .在官方网站上 ,最新版本为build
3176
(2018年5月16日) 。The 64-bit tarball can be downloaded there as well as the 32-bit one.
可以在此处下载64位tarball以及32 位tarball 。
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 eg
sudo cp -rf sublime_text_3/. /opt/sublime_text
覆盖旧的安装,例如
sudo cp -rf sublime_text_3/. /opt/sublime_text
sudo cp -rf sublime_text_3/. /opt/sublime_text
Remove the download
rm -rf sublime_text_3
删除下载
rm -rf sublime_text_3
And you're done!
大功告成!
Check where Sublime has been installed with the command which subl
or whereis -b sublime-text
. 使用命令
which subl
或whereis -b sublime-text
检查Sublime的安装位置。 It might be in a root folder called /snap/bin/
. 它可能位于名为
/snap/bin/
的根文件夹中。 ( Alternative ways to find application locations) (找到应用程序位置的替代方法 )
If it is there, you have (unknowingly) installed Sublime via Snappy (the "Ubuntu Software" application on Ubuntu 18 does that). 如果存在,您已经(不知不觉地)通过Snappy安装了Sublime(Ubuntu 18上的“ Ubuntu Software”应用程序会执行此操作)。 Then you can use
snap
to update Sublime with the terminal. 然后,您可以使用
snap
更新终端的Sublime。 Like this: 像这样:
$ 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
Nowadays they provide the way to install/update Sublime on their website .现在他们提供了在他们的网站上安装/更新 Sublime 的方法。
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.