3

Possible Duplicate:
I've downloaded a .sh file - how do I install this?

I am trying to install the BOINC client/manager which is a .sh file, so I can contribute to the World Community Grid. I installed the version that is in the Software Centre, but it is 2 versions behind, so I was wondering how I can install the current version (which I have downloaded to my computer). Any help would be great.

TheXed
  • 27,638

2 Answers2

3

Run the following command.

sh /path/to/file.sh

If you need administrative privileges to run the command, add sudo.

sudo sh /path/to/file.sh
SirCharlo
  • 40,096
3

To answer the question in the title, any of:

. file.sh

(That's 'dot' 'space' filename)

source file.sh

(which is actually the same as the first one)

sh file.sh

(or bash file.sh)

chmod +x file.sh
./file.sh

I'm assuming that this is actually the installer, so you may need to do sudo -i, to switch to executing everything as root, first or do something like sudo sh file.sh. (Note you can't do sudo . or sudo source)

StarNamer
  • 2,897