Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.