How to Install Sublime Text 3 on Fedora Workstation

In this article I am going to explain, How to Install Sublime Text 3 on Fedora Workstation 24. You can also use this to install the sublime text editor on any previous fedora release.

Following are the steps we are going to follow.

  1. Download Sublime Text 3 For Fedora, which is a tar file.
  2. Extract the tar file to /opt directory.
  3. Create Application Menu shortcut.

Download Sublime 3 for Fedora Linux

First, we need to download Sublime 3 Linux tar file. Go to following URL and download the 64bit tarball for other Linux distributions.

Download Sublime 3 for Fedora Linux

Extract the sublime 3 tar File

Next, we want to extract the tar file we downloaded. We will extract the sublime 3 tar file to /opt directory.

tar -jxvf sublime_text_3_build_3126_x64.tar.bz2 -C /opt

Extract the sublime 3 tar File Fedora Linux

Once you extract the tar file, you should be able to find the sublime 3 folder inside the /opt directory, The folder name should be something like "sublime_text_3'.

Add Sublime 3 to Fedora Application Menu

Finally, we need to add sublime text 3 shortcut to the Fedora Application Menu(Activities Menu).

First Create a Text file called sublime_text_3.desktop inside the /usr/share/applications folder.

gedit /usr/share/applications/sublime_text_3.desktop

Then, add the following configuration to the sublime_text_3.desktop file.

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text_3/sublime_text %F

In the above configuration, Make sure to replace /opt/sublime_text_3 with the exact folder name found in your /opt directory in the following lines.

Exec=/opt/sublime_text_3/sublime_text %F

Finally, Save the file and we are Done.

Now you can open the sublime text 3 from the Fedora Activities Menu.

How to Install Sublime Text 3 on Fedora Workstation

So that is how we can install sublime 3 in Fedora Workstation 24, Hope you enjoyed.