I've created my script to install software on a new computer. Basically it includes lot's of
apt get install <pkg name> -y
lines.
How can I get a short report about installs that has failed?
Is there a function like that in bash?
|
I've created my script to install software on a new computer. Basically it includes lot's of
lines. How can I get a short report about installs that has failed? Is there a function like that in bash? |
|||
|
|
|
Combining the following two basic things in scripting might help you out here.
While diverging from your question to do this in Bash, more opportunities lie elsewhere. Higher-level approaches of automated installation using APT aren't really possible in Bash as far as I know. You could consider using Puppet, preseeding the Debian/Ubuntu installer for automated deploying or to start writing in a more powerful language like Python that features APT bindings, e.g. python-apt. |
|||
|
|