View Full Version : How to automate apt-get install?
chamnap
January 22nd, 2010, 08:59 AM
I need to write a shell script to automate some tasks. I face a problem while i need to run command like:
sudo apt-get update &&
sudo apt-get install -y mdadm xfsprogs
While installing this packages, it needs human to press enter, select item on the list, go next, .... How could I automate it without user interference?
Thanks
Chamnap
MadCow108
January 22nd, 2010, 10:28 AM
edit:oops, overlooked you already have -y, then I can't help
man apt-get
-y, --yes, --assume-yes
Automatic yes to prompts; assume "yes" as answer to all prompts and run
non-interactively. If an undesirable situation, such as changing a held package, trying
to install a unauthenticated package or removing an essential package occurs then
apt-get will abort. Configuration Item: APT::Get::Assume-Yes.
Hetor
January 22nd, 2010, 04:24 PM
Try with --force-yes
diesch
January 23rd, 2010, 12:37 AM
I guess you could do it somehow using debconf but never dit that myself.
chamnap
January 23rd, 2010, 07:29 AM
Try with --force-yes
Not working!
Thanks
chamnap
January 25th, 2010, 07:42 AM
I guess you could do it somehow using debconf but never dit that myself.
Please, explain me further.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.