문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top