Question

Is there a way in Unix shell script to install different packages from different sources like rpm, building from source, in a specific sequence i.e.

  1. package A -- rpm installer
  2. package B -- install from source only if package has installed correctly else roll back
  3. package C -- install from source only if package D is installed

since I am new to Unix shell scripting, I earlier tried to install each package separately but now I want to automate this process, Please let me know a way of achieving this on OpenSUSE SE linux.

Was it helpful?

Solution

You can simply list all the commands you ran to install the different packages in a single script. Since you're new to shell scripting you might want to post the result on CR.SE - there are a billion and one gotchas in shell scripting.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top