LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2010, 08:39 PM   #1
jacatone
Member
 
Registered: Mar 2004
Posts: 284

Rep: Reputation: 30
Question about installing a script


How do you install a script if it's name is "install.sh"? Thanks.
 
Old 10-05-2010, 08:42 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Scripts of that name are usually executed, not installed. Executing them installs other things. To execute it, normally you type:
Code:
./install.sh
in a terminal. You may need to be root or use `sudo` depending on your distro.. If there are other (specific) instructions, they should be in a README or INSTALL text file that came with the software.

Note that your distro's package manager will probably not know about the package that you install using this install.sh method.
 
Old 10-05-2010, 09:41 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
You create it as a file on the system, ensure that it is executable and run it. Prudent to view its contents too unless you trust the source.
 
Old 10-06-2010, 10:40 AM   #4
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
you might need to give it execute permission using the "chmod" command if it does not have it already.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script question therealbxp Programming 5 08-07-2005 05:28 AM
Question on this script. Echo Kilo Programming 2 12-13-2004 05:20 AM
Very simple question, installing script for Perl lexington Linux - Newbie 1 06-07-2004 05:55 AM
Script Question blubbfish Linux - Newbie 2 04-26-2004 05:18 AM
script question shanenin Linux - Software 2 04-04-2004 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration