Sublime text linux deb

Sublime text linux deb

Sublime Text includes an auto-upgrade mechanism on Windows and Mac to make upgrades a snap. Instead of going against the grain of the Linux ecosystem, packages and package repositories are provided for most of the major distributions.

Builds listed in the dev channel are only available to licensed users. Users who are evaluating Sublime Text before purchase will need to use the stable channel.

apt🔗

The apt repository contains packages for both x86-64 and arm64.

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null

Select the channel to use:

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Update apt sources and install Sublime Text:

sudo apt-get update sudo apt-get install sublime-text

If this fails ensure apt is set up to work with https sources:

sudo apt-get install apt-transport-https

pacman🔗

curl -O https://download.sublimetext.com/sublimehq-pub.gpg && sudo pacman-key --add sublimehq-pub.gpg && sudo pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg

Select the channel to use:

echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | sudo tee -a /etc/pacman.conf
echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/x86_64" | sudo tee -a /etc/pacman.conf
echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/aarch64" | sudo tee -a /etc/pacman.conf
echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/aarch64" | sudo tee -a /etc/pacman.conf

Update pacman and install Sublime Text:

sudo pacman -Syu sublime-text

yum🔗

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update yum and install Sublime Text:

sudo yum install sublime-text

Note there are no RPM packages for ARM currently.

dnf🔗

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update dnf and install Sublime Text:

sudo dnf install sublime-text

Note there are no RPM packages for ARM currently.

zypper🔗

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update zypper and install Sublime Text:

sudo zypper install sublime-text

Note there are no RPM packages for ARM currently.

Читайте также:  Astra linux переустановка libreoffice

Источник

How to Install Sublime Text 4 in Linux

If you’re not a terminal lover, you might not like using the popular command-line text editors Vi or Vim. Speaking of graphical-based, Sublime Text is one of the most preferred cross-platform proprietary-based text and source code editors, that natively supports various programming and markup languages.

Sublime Text 4 is the most recent version that supports important features like GPU rendering for fluid UI, tab multi-select, ARM64 Linux support, and rewritten auto-complete engine for smart completions.

In this article, I’ll show you how to install Sublime Text 4 in a Linux-based operating system using the following various methods:

Install Sublime Text 4 in Linux via DEB/RPM File

Let’s start with the most preferred and official way of installing Sublime Text on Linux distributions. Sublime Text provides DEB installer files for Debian-based Linux distros like Ubuntu/Linux Mint and RPM files for Red Hat-based distributions like Fedora, CentOS Stream, Rocky & AlmaLinux.

You can visit the official Sublime Text download page and directly get the installer DEB or RPM file.

Now, go to the directory where you downloaded the file, right-click on the file, and choose the “Open with other application” option, which will prompt a dialog to open DEB/RPM file with the respective default Software Installer.

Install Sublime Text DEB File

Alternatively, you can also use command line tools like DPKG for DEB and RPM for RPM installer files by executing the below commands:

$ sudo dpkg -i .deb [Debian-based Ubuntu, Mint] $ sudo rpm -i .deb [Red Hat-based Fedora, Rocky Linux]

Install Sublime Text 4 in Linux via Tarball

On the same download page, apart from DEB/RPM, you might have also noticed the tar file also available. So, we can also use the bundled tar file to run Sublime text on Linux.

Download the tar file, decompress it manually and run it by running the commands in the terminal:

$ tar xf sublime_text_build_4143_x64.tar.xz $ cd sublime_text $ ./sublime_text

Run Sublime Text in Linux

As you can see, the command will launch the Sublime Text 4 application in Linux.

Install Sublime Text 4 In Linux Using Repository

Instead of downloading the official DEB/RPM package or tar file, you can also use the respective package manager like APT for Debian-based and DNF for RHEL-based distros to install the Sublime Text 4 editor.

Install Sublime Text 4 in Debian Distros

$ 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 apt-transport-https $ sudo apt-get install sublime-text

Install Sublime Text 4 in RHEL Ditros

$ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg $ sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo $ sudo dnf install sublime-text

Install Sublime Text 4 in Linux Using Snap

Snap is a universal package manager that can be used on all major Linux distributions, including Ubuntu, Linux Mint, Debian, and Fedora. Surprisingly, Snap is pre-installed on some Linux distributions like Ubuntu, Manjaro, KDE Neon, and Zorin OS.

Читайте также:  Linux system program pdf

So, if you already have Snap on your system, run a single command to install Sublime Text 4:

$ sudo snap install sublime-text --classic

In case, you don’t have Snap, you still can install Snap by following the official snap documentation.

Install Sublime Text 4 in Linux Using Flatpak

Similar to Snap, Flatpak is also yet another popular universal package manager available for almost all Linux distributions. But unfortunately, as I’m writing this article, Sublime Text 4 is not available as a Flatpak package on the Flathub repository.

Sublime Text 3 is available as Flatpak, which you can install by running the command:

$ flatpak install flathub com.sublimetext.three

How To Use Sublime Text 4 on Linux

Let’s start with a very important feature of Sublime Text, which helps it to bring additional functionality to your needs using plugins.

Instead of manually installing plugins, package control is a package manager for Sublime Text that lets you find, install, and update packages within the application.

So, let’s first install Package Control by opening the Tools menu and selecting Install Package Control.

Install Package Control in Sublime Text

Now, you can install a plugin by first opening Command Palette using the shortcut CTRL + SHIFT + P or going to Tools -> Command Palette menu.

Command Palette in Sublime Text

Then, search for “package control” in Command Palette, which will list all available Package Control options to carry operation.

Search Package Control in Sublime Text

One such option is Install Package, which you can select that will pop up another window containing a list of all available packages. Here you can search for your required package as I did for the “Git” file management tool. Select the result and it will install the plugin in a few seconds in the background.

Install Git in Sublime Text

Once installed, go to Preferences -> Package Settings – which will display all installed packages in Sublime Text.

List Installed Packages in Sublime Text

Now, you can open the settings file of the Git package to edit and make it work as per your need.

Edit Git in Sublime Text

Alternatively, you can also use the Package Control option “List Package” in Command Palette to display all installed packages.

Читайте также:  Run script file on linux

Package Control List Packages

At last, you’ve learned how to install Sublime Text 4 using not just the installer package file but also using a package manager like Snap. After installing, you also get to know how to use Sublime Text and make the most out of its feature like Package Control.

Источник

Установка Sublime Text 3 Ubuntu 20.04

Sublime Text 3 — это мощный, кроссплатформенный текстовый редактор для программистов. Он поддерживает подсветку синтаксиса, редактирование разметки, поиск ошибок, имеет API на Python и движок регулярных выражений, который ускоряет работу с файлами.

Возможности редактора можно очень сильно расширить с помощью плагинов. В этой статье мы рассмотрим как выполняется установка Sublime Text 3 Ubuntu 20.04 из PPA или с помощью пакета, загруженного из официального сайта.

Установка Sublime Text 3 в Ubuntu

1. Репозиторий разработчиков

Сначала поговорим как установить программу из репозитория разработчиков. Этот репозиторий можно добавить также в другие версии этого дистрибутива. Сначала необходимо установить нужные зависимости. Для этого откройте терминал (Ctrl+Alt+T) и выполните:

sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common

Дальше необходимо добавить ключ репозитория:

curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add —

И наконец можно установить сам репозиторий:

sudo add-apt-repository «deb https://download.sublimetext.com/apt/stable/»

Затем установка Sublime Text 3:

sudo apt install sublime-text

После этого, программа будет установлена и готова к использованию. Вы можете найти ее в главном меню:

Главное окно программы выглядит вот так:

2. Центр приложений

Также вы можете установить программу из центра приложений. Для этого запустите центр приложений и наберите в поиске Sublime:

Затем выберите Sublime Text и нажмите кнопку Установить:

После завершения установки вы сможете запустить программу.

3. Пакет snap

Для того чтобы установить самую новую версию Sublime Text 3 можно воспользоваться пакетным менеджером snap. Сначала надо проверить есть ли такой пакет:

Затем можно установить саму программу:

sudo snap install sublime-text —classic

4. Пакет flatpak

Если в вашей системе установлен пакетный менеджер flatpak, то вы можете получить последнюю версию программы из FlatHub. Для этого выполните:

flatpak install flathub com.sublimetext.three

Для запуска программы необходимо выполнить:

flatpak run com.sublimetext.three

Удаление Sublime Text 3

Для удаления Sublime Text 3 установленного из репозиториев достаточно выполнить:

sudo apt purge sublime-text

Теперь программа полностью удалена из вашей системы. Для удаления snap пакета надо выполнить:

sudo snap remove sublime-text

Для удаления пакета flatpak выполните:

sudo flatpak uninstall com.sublimetext.three

Выводы

В этой статье мы рассмотрели как установить sublime text 3 в Ubuntu. Все очень просто. На завершение видео с процессом установки:

Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.

Источник

Оцените статью
Adblock
detector