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.
- Download Sublime Text 3 For Fedora, which is a tar file.
- Extract the tar file to /opt directory.
- Create Application Menu shortcut.
Download Sublime 3 for Fedora Linux
First, we need to download Sublime 3 Linux tar file. Go to following URL https://www.sublimetext.com/3 and download the 64bit tarball for other Linux distributions.
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
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]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text_3/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
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
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png
Finally, Save the file and we are Done.
Now you can open the sublime text 3 from the Fedora Activities Menu.
So that is how we can install sublime 3 in Fedora Workstation 24, Hope you enjoyed.