Link to home
Start Free TrialLog in
Avatar of kerpoise
kerpoise

asked on

How can i write a script to call many 'apt-get install' functions?

I need to install many dependencies on a few machines, of which i know the dependency names, and i really dont want to have to write these out each time.

How can i write a script to run these for me?

i.e. to do 'apt-get install this package' then 'apt-get install this package2' etc...

ASKER CERTIFIED SOLUTION
Avatar of Morcalavin
Morcalavin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In addition to -y option suggested by FilipeMaia I suggest you also to add -q option if it's used in automation mode, so it will produce output suiteable for logging.