How to execute a .run or .bin package in Linux

Binary Packages are the scripted installer packages similar to exe files

The easiest way of installing apps in Linux is to launch the Software Center, look for the app in the search box followed by a click of a button and entering the root password.

For the apps that are not available through the software center, some developers package the executable in .run and .bin binary packages. This tutorial aims at providing you step-by-step directions on the method to install those binary packages.

What are .run and .bin packages?

A .run and .bin package is a custom built set of instructions which need to be executed in order to run an application. By the sheer nature of it, it’s understandable that there is absolutely no quick way to determine what the script will do to your computer. Therefore, one needs to be careful about the download source. I suggest not to run any binary packages from an unknown source.

Note that .bin extension is also used for CD/DVD images and backups which are not to be confused with installers. This guide is applicable only for the executables.

Where do the Binary packages come from?

All applications are written in programming languages, such as C or C++. These lines of codes are termed “Source code”. The source code is then compiled and outputted as a binary package so that a computer can read it. This step is not mandatory as one can install an application from the source code too. However, we will deal with it on some other day. For now, let’s see how to install the binary packages on your Linux distro.

Executing Binary packages (.bin & .run) in Linux

The method of executing a binary package is the same in any Linux distro. It should work in Ubuntu, Linux Mint, elementary OS, Fedora, Manjaro, so on and so forth.

For sake of simplicity, I’m assuming that the downloaded binary package resides in the “Downloads” folder in the “Home” directory. Also for illustration, I’m downloading the Firefox browser binary and show you the installation steps. Firefox binary comes in .tar compressed format. If your package is also achieved, simply right-click on it and “Extract” the content.

Example: firefox-62.0.3.tar.bz2 => extracted to firefox-62.0.3 directory.

Firefox Binary Package Content
Firefox Binary Package Content

Step 1) Launch ‘Terminal’.

Step 2) Use ‘cd’ command to navigate into the “Downloads” folder.

cd Downloads

Step 3) Use ‘ls’ command to list the content of the “Downloads” folder. Next, use cd again to go into the downloaded binary package directory.

Example Input and Output:

Executing Firefox Binary
Executing Firefox Binary

Step 4) First step is to give bin file executable permissions.

In case of BIN package, enter “sudo chmod +x ./FILENAME.bin” command, replacing “FILENAME” with the name of your BIN file. Press enter.

Similarly, if the package you download is a .run package, enter “sudo chmod +x, replacing “FILENAME” with the name of your RUN file.

Step 5) Type the administrator password when prompted, then press Enter.

Step 6) Finally execute the binary:

./FILENAME.bin    OR    ./

The application should launch. That’s it!

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!



Please enter your comment!
Please enter your name here




Ubuntu 19.10 beta overview
It may be early, but I've been looking forward to the release of Ubuntu 19.10 for some time now. As an impatient person, and promised readers in the FOSSLinux article announcing the release of Eoan Ermine that we would provide you a review of Ubuntu 19.10 Eoan Ermine - Beta.  So, here it goes.
Best video editors for linux
This article is for all the Linux users out there who are looking for video editors to create their own professional videos, which can range from short documentaries to even movies.