How to automate interactive installation on Linux: Short&Sweet

Nifty way to automate installations — Expect command.


yum -y install expect

autoexpect ./

This will spawn your installer file and prompt you for the answers to the questions and you will provide answers just this once — I promise! It will record your answers and generate a file named script.exp in the same directory. Next time or any number of times you want to run the installer with the same inputs, you just need to do:


And you are done!

I am a software developer, who is easily intrigued by anything tech and is always thriving to make software development more inclusive and empathetic.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store