[SOLVED] Using slackpkg in unattended/batch mode
by drgibbon from LinuxQuestions.org on (#52WTB)
I'm looking for a way to do an unattended upgrade to bring a clean container environment in sync with a Slackware mirror. I'm guessing that I could do:
Code:slackpkg -batch=on -default_answer=y -postinst=off upgrade-allfor a forced upgrade of everything without prompting for *.new file handling. I was hoping then that I could overwrite any old config files with:
Code:slackpkg -batch=on -default_answer=o new-configbut the man page for slackpkg.conf says that -default_answer only accepts "y" or "n". Is there any way around this, apart from just handling the .new files myself?


Code:slackpkg -batch=on -default_answer=y -postinst=off upgrade-allfor a forced upgrade of everything without prompting for *.new file handling. I was hoping then that I could overwrite any old config files with:
Code:slackpkg -batch=on -default_answer=o new-configbut the man page for slackpkg.conf says that -default_answer only accepts "y" or "n". Is there any way around this, apart from just handling the .new files myself?