Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-07-2011, 02:23 AM   #1
LQ Newbie
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
How to install a software using shell script?

I everyone,

This is my first post and i hope it will go good!

I have a daily routine task that is installation of one software...

Now i feel that it should be automated. Already i have automated some parts but not able to automate the software intallation using shell script.

When i write install.bin in a shell script then it start asking me the options...

I want my script to read these option from a file... I know how to read a file using shell script but dont know how to apply it at the installation time.

Any help would be highly appreciated!!!


Old 10-07-2011, 02:43 AM   #2
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,823
Blog Entries: 1

Rep: Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218
Hi and welcome to LQ.

It'll be easier if you post your script. What package are you trying to install?
Old 10-07-2011, 03:14 AM   #3
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
how about
cat answers.txt|install.bin
note: it will only work if the answers are always in the same order, they don't vary, etc ...
Old 10-11-2011, 07:04 AM   #4
LQ Newbie
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for instant reply and i am sorry that i am replying too late

cat answers.txt|install.bin works...

I created a dummy script that asks for some options like name surname and i gave those values in answers.txt file and it worked properly.

But i am afraid that will it work on the actual installer? As i dont know that how they have been written...and i dont want to take any risk because environment is very crucial... if something got wrong they will kill me for my initiative


Old 10-11-2011, 10:42 AM   #5
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
Well, set up a test system and try it there. That is the way you should do it with any change to a production system, by the way.


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
how to install software package using shell script +property file..... badmas Linux - Newbie 3 04-16-2011 02:12 AM
Hi, i want a shell script which install the software on lan. shreeramabhi Linux - Newbie 1 03-13-2009 03:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 PM.

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