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 FILENAME.run, 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    ./FILENAME.run

The application should launch. That’s it!

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. 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. I 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!

1 COMMENT

Leave a Reply to greenhouse Cancel reply

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,661FansLike
359FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to install Lightworks on Ubuntu

Even though Linux may not get a native installer of video editing software like Adobe Premiere or Final Cut Pro, that doesn't mean there are no industry standards tools available. Lightworks is non-linear editing (NLE) video mastering app for Windows, Linux, and macOS. Installing it on Ubuntu is simple due to deb package availability.

How to install DaVinci Resolve on Fedora

Davinci Resolve is a professional application used for color correction, video editing, visual effects, and motion graphics. It is one of the extensively used software by movie industries located in Hollywood.

The 10 Best Programming Languages for Hacking

One of the significant entities we have in Cyber Security is Ethical Hacking (ETH). It is the process of detecting and finding flaws or vulnerabilities in a system that a hacker would exploit.

5 Ways to Open a Terminal in Ubuntu

Even though Ubuntu supports many applications with amazing Graphical User Interfaces (GUI), there are always reasons why users prefer using the Terminal to perform different tasks.

How to install Wine on Fedora Workstation

Linux distributions are becoming more and more popular every day, and Fedora Workstation is not left behind. This popularity brings forth the need to run Windows applications on Linux distros like Fedora. Windows has quite some excellent Software that is not available for Linux.

How to download and install iTunes on Linux

iTunes has always been a convenient platform for downloading, organizing, playing, and syncing media between your Apple devices. It also gives users a large pool of media to buy or stream millions of songs using Apple Music.

MUST READ

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

How to clone hard disk on Linux using Clonezilla

Disk cloning refers to the process of copying data from one disk to another, thus creating a one-to-one copy of the drive. Technically, this process is possible using the copy-and-paste method.

Best Laptops for Linux and Apps Development [2020]

Apart from your programming skills, there are a few other things that can also influence the way you code, and one of them is your computer system for sure. Even though it isn't like you can't code on a regular PC or laptop, speaking from personal experience, you can make the most out of your programming skillset by going for a computer with high specs and one that's been specially designed for such tasks.

Top 5 reasons to switch from Windows to Linux right now

Do you love Windows or Linux? Being on a Linux website, it's not hard to take a guess, but what are the strong reasons to switch to Linux? Linux is a 100% free OS. Is that reason alone enough? Let's find out! Never have there been more compelling reasons to make the switch. Here are just five great reasons for users to create that magical move from the wayward world of Windows to the lauded land of Linux.

Manjaro ‘Gellivara’ XFCE Edition (17.0.5) in 10 Screenshots

Want to take a quick virtual tour Manjaro XFCE edition instead of downloading GBs worth of ISO image and then making a Live USB of it? We will make it easy for you. Here are a series of screenshots of the important aspects of Manjaro Linux in XFCE edition. This is a light-weight edition, and aims to be fast and low on system resources. You will be amazed on how it is still visually appealing and user friendly.