How to install .run files on linux

In general, when you download an installer file, it might be a .exe or .deb file. But there are several cases where the installer file has a .run extension. How do you execute such file and run the installer program in order to make your work done?

Let me give you a scenario, The PostgreSQL Linux downloads page contains a section on “Graphical installer” built by EnterpriseDB. When you download this file. You get postgresql-9.3.4-1-linux-x64.run file. We can execute this file through terminal.

Press Ctrl + Alt + T to open the terminal.

Go to the directory where the file is downloaded. Lets say Downloads by running the command shellzero@shellzero-Inspiron-535s:~$ cd Downloads/

you should be at location : shellzero@shellzero-Inspiron-535s:~/Downloads$

Now give the permissions by executing:   shellzero@shellzero-Inspiron-535s:~/Downloads$chmod +x postgresql-9.3.4-1-linux-x64.run

Now run  shellzero@shellzero-Inspiron-535s:~/Downloads$ ./postgresql-9.3.4-1-linux-x64.run

It might flash an error dialog box if there are no enough permissions:

Screenshot from 2014-04-03 09:40:30

At this point: you might have to become superuser by using sudo.

Now execute the following command :  shellzero@shellzero-Inspiron-535s:~/Downloads$ sudo ./postgresql-9.3.4-1-linux-x64.run

It prompts for the admin password. please type that and there you go. Your installer window starts up.

Enjoy!

Cheers,

ShellZero

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