简体   繁体   中英

How to update Sublime Text Editor

I generally use sublime text for python programming and I have some questions:

(A). How to check which version of Sublime Text editor I am using. (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)

(B). Whenever I open text editor it shows a window with a message to download the latest version. 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.

Currently I am using 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 .

Sublime 3 : To download latest version, go to their official site . You can donwload .deb files from there which is very easy to install. Check this . In your case it will be (assuming you downloaded the .deb file):

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

Sublime 2 : Download the latest version from here .

For instructions on how to install check this link on 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.

PS : your question seems off-topic on this site. You should have asked on askubuntu instead.

Edit: You can download .deb from https://www.sublimetext.com/3dev

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 (eg 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 eg 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

And you're done!

Check where Sublime has been installed with the command which subl or whereis -b sublime-text . It might be in a root folder called /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). Then you can use snap to update Sublime with the terminal. 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 .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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