Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Bash script software removals and installs

This is in regard to my trying to automate as much of bare metal from scratch installs on PCs as I can. Each install is with me setting at the PC with the install DVD loaded in the PC.

I currently have three bash script files to do all the software removals and installs to get to the configuration used here. The first script has about 12 removals that come first (dnf remove -y software name). These are followed by a number of installs (dnf install -y software name). The other two scripts are just installs. There are about 20 actions (removal or installs) in each script. I currently do a restart before running each script.

Back in the days before linux I learned through experience that one should not do more than one software install on a system before doing a warm reboot so that all the little final tasks could get done. Failure to do these reboots could lead to a lot of work.

Lately as you see from above I'll been getting more relaxed on this and so far everything has been all right.

I am seeking advise. Is the way I am doing this a bad idea? Is there a better way to do this? I would really like to do all the removals and installs in one script. Would that be a hugely bad idea? I looked briefly at using Ansible, but scripts are so much easier than figuring out Ansible.

Just for reference, I don't know if it matters, but after the software is all set. I have another script I run with a long sequence of gsettings commands to get the gnome settings configured as needed. I used gsettings because it has error checking that Dconf doesn't. That was a big help as I dedugged. Now that I have all but a few running with gsettings. it would be a lot of work to put them all in Dconf format for use in Ansible.

Thanks in advance for your help on this.

Bash script software removals and installs

This is in regard to my trying to automate as much of bare metal from scratch installs on PCs as I can. Each install is with me setting at the PC with the install DVD loaded in the PC.

I currently have three bash script files to do all the software removals and installs to get to the configuration used here. The first script has about 12 removals that come first (dnf remove -y software name). These are followed by a number of installs (dnf install -y software name). The other two scripts are just installs. There are about 20 actions (removal or installs) in each script. I currently do a restart before running each script.

Back in the days before linux I learned through experience that one should not do more than one software install on a system before doing a warm reboot so that all the little final tasks could get done. Failure to do these reboots could lead to a lot of work.

Lately as you see from above I'll I have been getting more relaxed on this and so far everything has been all right.

I am seeking advise. Is the way I am doing this a bad idea? Is there a better way to do this? I would really like to do all the removals and installs in one script. Would that be a hugely bad idea? I looked briefly at using Ansible, but scripts are so much easier than figuring out Ansible.

Just for reference, I don't know if it matters, but after the software is all set. I have another script I run with a long sequence of gsettings commands to get the gnome settings configured as needed. I used gsettings because it has error checking that Dconf doesn't. That was a big help as I dedugged. Now that I have all but a few running with gsettings. it would be a lot of work to put them all in Dconf format for use in Ansible.

Thanks in advance for your help on this.