
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to Install Sublime Text Editor on Ubuntu
Sublime Text is a cross-platform source code editor with a Python application programming interface (API). It natively supports many programming languages and markup languages, and its functionality can be extended by users with plugins, typically community-built and maintained under free-software licenses.
This article describes “How to install Sublime Text Editor on Ubuntu”
Features
Editing files side by side.
It supported all Platforms.
It provides functionality to find and replace with regular expressions.
The Command Palette gives fast access to functionality.
“Goto Anything,” quick navigation to files, symbols, or lines.
Python-based plugin API.
Compatible with many language grammars from TextMate.
Installing Sublime
There are two version’s of Sublime Text is available to install, To install Sublime 2, use the following commands –
$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
The sample output should be like this –
Sublime Text 2 packages - the .deb will automatically download the latest build from http://www.sublimetext.com/dev or beta from http://www.sublimetext.com/2 (Adobe Flash Player installer - style). More info and feedback: http://www.webupd8.org/2011/03/sublime-text-2-ubuntu-ppa.html http://www.webupd8.org/2012/03/sublime-text-2-ppa-separate-development.html More info: https://launchpad.net/~webupd8team/+archive/ubuntu/sublime-text-2 Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmpsv1jnez9/secring.gpg' created gpg: keyring `/tmp/tmpsv1jnez9/pubring.gpg' created gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com gpg: /tmp/tmpsv1jnez9/trustdb.gpg: trustdb created gpg: key EEA14886: public key "Launchpad VLC" imported gpg: no ultimately trusted keys found gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK
To update package index, use the following command-
$ sudo apt-get update
The sample output should be like this-
Ign http://dl.google.com stable InRelease Hit http://dl.google.com stable Release.gpg Hit http://dl.google.com stable Release Ign http://extras.ubuntu.com trusty InRelease Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB] Hit http://dl.google.com stable/main amd64 Packages Hit http://extras.ubuntu.com trusty Release.gpg Hit http://extras.ubuntu.com trusty Release Hit http://extras.ubuntu.com trusty/main Sources Get:2 http://security.ubuntu.com trusty-security/main Sources [109 kB] Hit http://extras.ubuntu.com trusty/main amd64 Packages Get:3 http://ppa.launchpad.net trusty InRelease [15.5 kB] Hit http://extras.ubuntu.com trusty/main i386 Packages Get:4 http://security.ubuntu.com trusty-security/restricted Sources [4,035 B] Hit http://ppa.launchpad.net trusty InRelease Get:5 http://security.ubuntu.com trusty-security/universe Sources [34.0 kB] Ign http://ppa.launchpad.net trusty InRelease Ign http://in.archive.ubuntu.com trusty InRelease Hit http://ppa.launchpad.net trusty InRelease Get:6 http://security.ubuntu.com trusty-security/multiverse Sources [2,750 B] Ign http://ppa.launchpad.net trusty InRelease Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [444 kB] Ign http://ppa.launchpad.net trusty InRelease Get:8 http://ppa.launchpad.net trusty/main amd64 Packages [739 B] Get:9 http://ppa.launchpad.net trusty/main i386 Packages [753 B] Get:10 http://ppa.launchpad.net trusty/main Translation-en [357 B] Ign http://extras.ubuntu.com trusty/main Translation-en_IN Hit http://ppa.launchpad.net trusty/main amd64 Packages Get:11 http://in.archive.ubuntu.com trusty-updates InRelease [65.9 kB] Ign http://extras.ubuntu.com trusty/main Translation-en Hit http://ppa.launchpad.net trusty/main i386 Packages Hit http://ppa.launchpad.net trusty/main Translation-en Get:12 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB] Hit http://ppa.launchpad.net trusty Release.gpg Get:13 http://security.ubuntu.com trusty-security/universe amd64 Packages [125 kB] Hit http://ppa.launchpad.net trusty/main amd64 Packages Hit http://ppa.launchpad.net trusty/main i386 Packages Hit http://ppa.launchpad.net trusty/main Translation-en Get:14 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,991 B] Hit http://ppa.launchpad.net trusty Release.gpg Get:15 http://security.ubuntu.com trusty-security/main i386 Packages [417 kB] Get:16 http://ppa.launchpad.net trusty Release.gpg [316 B] Hit http://ppa.launchpad.net trusty Release ................................................................
To install Sublime Text Editor, use the follwoing command –
$ sudo apt-get install sublime-text
The sample output should be like this –
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gtk2-engines-pixbuf libbs2b0 libopusfile0 libpyside1.2 libqmmp-misc libqmmpui0 libshiboken1.2 libsidplayfp libtidy-0.99-0 linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic linux-signed-image-4.2.0-27-generic php7.0-opcache python-beautifulsoup python-feedparser python-html2text python-magic python-oauth2 python-pyside.qtcore python-pyside.qtgui python-pyside.qtnetwork python-pyside.qtwebkit python-pysqlite2 python-regex python-sqlalchemy python-sqlalchemy-ext python-support python-unity-singlet python-utidylib Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: sublime-text 0 upgraded, 1 newly
To install sublime 3, use the following commands-
$ sudo add-apt-repository ppa:webupd8team/sublime-text-3 $ sudo apt-get update $ sudo apt-get install sublime-text-installer
To open sublime, use the following command –
$ subl
The sample output should be like this –
Congratulations! Now, you know “How to Install Sublime Text Editor on Ubuntu ”. We’ll learn more about these types of commands in our next Linux post. Keep reading!