PDF download Download Article PDF download Download Article

Files ending with the .bin extension are typically installation binaries that you can execute to install a program. Before you can run a BIN install file, you'll need to make it executable using the chmod command or by changing its permissions in your desktop environment's file manager. This wikiHow article will teach you two simple ways to install a BIN file on any Linux distribution, including Ubuntu, Debian, CentOS, & Redhat.

Running Binary Files in Linux

  1. Use a desktop environment such as GNOME, KDE, or Cinnamon.
  2. Type chmod + x <filename> at the prompt.
  3. Run the BIN file using the command ./<filename> or double-clicking the file.
  4. You can also run the file by double-clicking it in your file manager.
Method 1
Method 1 of 2:

From the Command Line

PDF download Download Article
  1. If you're downloading the file from the internet, you can save it to your default download location.
    • Check the installation directions for any files you download from the internet. Depending on the file, you may need to install it in a certain way—for example, some BIN installers must be run by specifying an installation directory.
    • If you downloaded a compressed file (such as a .tgz, .zip, or .tar.gz file), look for a "README" or "INSTALL" file after decompressing the file. Use the more command to open the file (e.g., more README) to look for specific instructions or dependencies.
  2. You can do this on most Linux distributions by pressing Ctrl + Alt + T at the same time. Otherwise, click the Terminal icon in your app list.[1]
    Advertisement
  3. For example, if you downloaded the file to the Downloads folder in your home directory, just type cd downloads.
    • If you don't remember where you saved the file, you can use the locate or find commands to find it.
  4. Replace filename with the name of the BIN file you downloaded, then press Enter to run the command. This changes the file's permissions so you can run it like a program.[2]
  5. / before the file name. For example, to execute the file j2re-1_4_0-linux-i386.bin, you'd use ./j2re-1_4_0-linux-i386.bin. This runs the installation program.[3]
    • If you need to install the program in a directory that requires root permissions (or you get a permissions error during installation), use su before the command. For example, su ./j2re-1_4_0-linux-i386.bin.
  6. Depending on the installer, you might see a graphical wizard that walks you through the installation, or an installation script may execute in the terminal window. Follow any on-screen prompts to install the software.
  7. Advertisement
Method 2
Method 2 of 2:

From the GUI / Desktop Environment

PDF download Download Article
  1. If you don't want to use the command line and are using a standard window manager like GNOME, KDE, or Cinnamon, you can make your BIN file executable and run it from the graphical user interface. Start by navigating to the BIN file in your file manager.
    • Check the installation directions for any files you download from the internet. Depending on the file, you may need to install it at the command line instead of your desktop environment so you can specify an installation directory.
  2. You'll see this option on the right-click menu.
  3. Depending on your window manager, you may already be on this tab. If not, click Permissions to get there.
  4. This checkbox makes the file executable so you can run it like a program.
    • When you're finished, click Close or the X to close the window and save your changes.
  5. This will launch the installer, which should begin installing your software. Follow any on-screen instructions to complete the installation.
    • If you get an error, try running the bin file in a terminal window instead by typing ./filename.bin, replacing "filename" with the name of your bin file.
  6. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Install Java on LinuxInstall Java on Linux
Unrar Files in Linux Open RAR Files in Linux using Unrar
Install Google Chrome Using Terminal on Linux
Linux How to Mount Drive Mount Drives on Linux: Command Line & GUI
Can Linux Run ExeCan Linux Run .exe Files? How to Run Windows Software on Linux
Use Wine on Linux Install and Use Wine on Linux
Tar a Directory Tar a Directory and Subdirectories in Linux
Take a Screenshot in LinuxTake a Screenshot in Linux
Become Root in LinuxBecome Root in Linux
Execute INSTALL.sh Files in Linux Using Terminal Run an INSTALL.sh Script on Linux in 4 Easy Steps
Add or Change the Default Gateway in LinuxAdd or Change the Default Gateway in Linux
Install DebianEasy Debian Linux Installation Tutorial
Run Files in LinuxRun Files in Linux
Execute .RUN Files in LinuxExecute .RUN Files in Linux
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 332,191 times.
How helpful is this?
Co-authors: 9
Updated: October 4, 2024
Views: 332,191
Categories: Linux
Thanks to all authors for creating a page that has been read 332,191 times.

Is this article up to date?

Advertisement