Wednesday, September 2, 2020

How to install sublime text editor in Ubuntu from command line

WHAT IS SUBLIME TEXT EDITOR ?

Sublime Text Editor is a shareware cross-platform source code editor with a Python application programming interface. It natively supports many programming languages and markup languages (PHP), and functions can be added by users with plugins, typically community-built and maintained under free-software.





1) Install sublime text editor

Go to launcher and lunch terminal


2) Install the GPG key:

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -



  • wget is a computer program that retrieves content from web servers. It is part of the GNU Project. Its name derives from World Wide Web and get. It supports downloading via HTTP, HTTPS, and FTP. Its features include recursive download, conversion of links for offline viewing of local HTML, and support for proxies




  • 3) Ensure apt is set up to work with https sources:--

    $ sudo apt-get install apt-transport-https
    • Advanced Package Tool, or APT, is a free-software user interface that works with core libraries to handle the installation and removal of software on Debian, Ubuntu, and related Linux distributions.



    4) Stable channel to use:

    $ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
    • In computing, echo is a command that outputs the strings it is being passed as arguments. It is a command available in various operating system shells and typically used in shell scripts and batch files to output status text to the screen or a computer file, or as a source part of a pipeline.


    5) Update apt sources and install Sublime Text

    $ sudo apt-get update
    • apt-get update command is used to download package information from all configured sources. ... So when you run update command, it downloads the package information from the Internet. It is useful to get info on an updated version of packages or their dependencies

    $ sudo apt-get install sublime-text



    6) Open Launcher and now launch sublime





    No comments:

    Post a Comment

    testing