Skip to content

Instantly share code, notes, and snippets.

@Khip01
Created November 30, 2025 05:54
Show Gist options
  • Select an option

  • Save Khip01/08c6bd2b95e8b4539ccc2f51ce8c6ac9 to your computer and use it in GitHub Desktop.

Select an option

Save Khip01/08c6bd2b95e8b4539ccc2f51ce8c6ac9 to your computer and use it in GitHub Desktop.

Steps to install .tar.bz2 files on Linux

Here I will provide my steps for installing archive apps such as .tar.bz2.

Extract the .tar.bz2 file

tar -xvjf file.tar.bz2
# verbose command: "tar --extract --verbose --bzip2 --file file.tar.bz2"

Move the extracted folder to the /opt/ folder

sudo mv extracted_folder /opt/appName
# appName = your app name 

Create a .desktop file

sudo nano /usr/share/applications/appName.desktop
# appName = your app name

And the contents may be as follows,

[Desktop Entry]
Name=AppName
Comment=AppName Comment
Exec=/opt/appname/appNameExec 
# Exec= "make sure the path to the executable file of the application"
Icon=/opt/appName/icons/folder/icon.png
# Icon= "make sure the route to the icon image from the application"
Terminal=false
Type=Application
Categories=Office;Education;

Refresh our Linux desktop database

sudo update-desktop-database

And voila! The app has appeared in our app list!

Tested on:

  • OpenSUSE 16 Leap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment