How can I install a .bin file?

Solution 1:

Go into a terminal and issue the following command in the directory where the bin file is,

chmod a+x name_of_file.bin

Then run it by writing

./name_of_file.bin

If you get a permission error and/or you're dealing with an installer that applies system-wide changes you might have to launch your application with root privileges:

 sudo ./name_of_file.bin

Solution 2:

Right click and select properties then go to permissions tab and tick allow excecuting.

enter image description here

Now double click the file and select run.

Some binaries require to be run from a terminal. If that's the case with your .bin file and/or nothing happens after double-clicking, drag the file into a new terminal window and run it by pressing 'Return'. The output should give you a clue on what's wrong.

Solution 3:

In case you land here because you wan to globally install any binary, use the install command.

sudo install ./mybin /usr/bin/

The install command on is used to copy files, and it does this by combining several commands into one to make them easy to use, i.e. cp, chown, chmod, and strip.