Quick tip: Installing a software in linux using files in .run format


The .run files are binary executable files. These files need to be executed to install the software. Such files are often considered as unsafe as we cannot find a way to uninstall them and we cannot say what the code will do to your system. But some games and apps are available that are packaged in this file format. Installing using .run file is rather easy.

First of all download the required .run file.

For example, in your terminal run the command:

wget -c < URL to the .run file >

(Get the .run file as you wish. I just mentioned wget here because it is one of my favorite GNU/Linux utilities. It enables a very nifty download of files from internet and the tab -c can help you get data from a partially downloaded file. If the file to be downloaded is quite bulky and you don’t trust your Internet connection then -c tab is what you need.)

Method 1:

Go to the directory where the .run file is saved and run the following command in your terminal:

chmod +x foo.run

Here I have arbitrarily named my .run file as foo.run. Here we are using +x to give permission for the owner to execute the file as a program. (If we replace +x with ugo+x, then the user, group and others will get the permission to execute that file as well.)

Now run the executable file, that is, run the command :

./foo.run

Now the installer will run.

Method 2:

We can do the same steps rather interactively as below.

Right click the .run file and select properties. Under the permission tab check the box that says ‘Allow executing file as program’ and click close.

Double click the .run file and select ‘Run in terminal’.

This will run the installer.

Both worked perfectly in Ubuntu 12.04. If different in other distros please let me know.

Advertisements

2 thoughts on “Quick tip: Installing a software in linux using files in .run format

  1. I haven’t come across a .run file till now (this might be the hint that I am not experimenting enough). Could you give me a link to download such a file? I wonder why we would come to use them when we have apt and installation from source handy with us.

    PS: What the heck are you doing on wordpress? I thought you preferred the incognito style of doing things? He he..

    • Actually quite a few device drivers and software applications are distributed using such executable files. One such file would be NVIDIA graphics card driver. But I don’t think installation using such files is the preferred way of doing this, as what happens then is outside the package manager. I was trying to get an insight into Ruby programming language and ended up installing this app which was in .run file format. And I got to know what .run files are. 🙂 Its downloadable link is :
      https://github.com/downloads/hacketyhack/hacketyhack/hacketyhack-1.0.1.run

      P.S.: I was just experimenting wordpress and absolutely loved it. 😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s