diff --git a/docs/recipes/install/centos7/aarch64/warewulf/slurm/steps.tex b/docs/recipes/install/centos7/aarch64/warewulf/slurm/steps.tex index f9cbc1aecc..bcc2b8f3a7 100644 --- a/docs/recipes/install/centos7/aarch64/warewulf/slurm/steps.tex +++ b/docs/recipes/install/centos7/aarch64/warewulf/slurm/steps.tex @@ -24,10 +24,14 @@ \newcommand{\rms}{SLURM} \newcommand{\arch}{aarch64} +\newcommand{\clean}{yum clean expire-cache} +\newcommand{\chrootclean}{yum --installroot clean expire-cache} \newcommand{\install}{yum -y install} \newcommand{\chrootinstall}{yum -y --installroot=\$CHROOT install} \newcommand{\groupinstall}{yum -y groupinstall} \newcommand{\groupchrootinstall}{yum -y --installroot=\$CHROOT groupinstall} +\newcommand{\upgrade}{yum -y upgrade} +\newcommand{\chrootupgrade}{yum -y --installroot=\$CHROOT upgrade} % boolean for os-specific formatting \toggletrue{isCentOS} diff --git a/docs/recipes/install/centos7/x86_64/warewulf/pbspro/steps.tex b/docs/recipes/install/centos7/x86_64/warewulf/pbspro/steps.tex index 2d4a230eb3..e5c3f69b20 100644 --- a/docs/recipes/install/centos7/x86_64/warewulf/pbspro/steps.tex +++ b/docs/recipes/install/centos7/x86_64/warewulf/pbspro/steps.tex @@ -14,10 +14,14 @@ \newcommand{\rms}{PBS Professional} \newcommand{\arch}{x86\_64} +\newcommand{\clean}{yum clean expire-cache} +\newcommand{\chrootclean}{yum --installroot clean expire-cache} \newcommand{\install}{yum -y install} \newcommand{\chrootinstall}{yum -y --installroot=\$CHROOT install} \newcommand{\groupinstall}{yum -y groupinstall} \newcommand{\groupchrootinstall}{yum -y --installroot=\$CHROOT groupinstall} +\newcommand{\upgrade}{yum -y upgrade} +\newcommand{\chrootupgrade}{yum -y --installroot=\$CHROOT upgrade} % boolean for os-specific formatting \toggletrue{isCentOS} diff --git a/docs/recipes/install/centos7/x86_64/warewulf/slurm/steps.tex b/docs/recipes/install/centos7/x86_64/warewulf/slurm/steps.tex index 5f53817161..fe915e67d4 100644 --- a/docs/recipes/install/centos7/x86_64/warewulf/slurm/steps.tex +++ b/docs/recipes/install/centos7/x86_64/warewulf/slurm/steps.tex @@ -14,10 +14,14 @@ \newcommand{\rms}{SLURM} \newcommand{\arch}{x86\_64} +\newcommand{\clean}{yum clean expire-cache} +\newcommand{\chrootclean}{yum --installroot clean expire-cache} \newcommand{\install}{yum -y install} \newcommand{\chrootinstall}{yum -y --installroot=\$CHROOT install} \newcommand{\groupinstall}{yum -y groupinstall} \newcommand{\groupchrootinstall}{yum -y --installroot=\$CHROOT groupinstall} +\newcommand{\upgrade}{yum -y upgrade} +\newcommand{\chrootupgrade}{yum -y --installroot=\$CHROOT upgrade} % boolean for os-specific formatting \toggletrue{isCentOS} diff --git a/docs/recipes/install/common/upgrade.tex b/docs/recipes/install/common/upgrade.tex index 5428ed1bdf..15902ad6e8 100644 --- a/docs/recipes/install/common/upgrade.tex +++ b/docs/recipes/install/common/upgrade.tex @@ -25,20 +25,20 @@ \subsection{Upgrading OpenHPC Packages} \label{appendix:upgrade} the following can be used to sync to the latest. \begin{lstlisting}[language=bash,keywords={}] -[sms](*\#*) yum clean expire-cache -[sms](*\#*) yum --installroot=$CHROOT clean expire-cache +[sms](*\#*) (*\clean*) +[sms](*\#*) (*\chrootclean*) \end{lstlisting} \item Upgrade master (SMS) node \begin{lstlisting}[language=bash,keywords={}] -[sms](*\#*) yum upgrade "*-ohpc" +[sms](*\#*) (*\upgrade*) "*-ohpc" \end{lstlisting} \item Upgrade packages in compute image \begin{lstlisting}[language=bash,keywords={}] -[sms](*\#*) yum --installroot=$CHROOT upgrade "*-ohpc" +[sms](*\#*) (*\chrootupgrade) "*-ohpc" \end{lstlisting} \item Rebuild VNFS image(s) diff --git a/docs/recipes/install/sles12/aarch64/warewulf/slurm/steps.tex b/docs/recipes/install/sles12/aarch64/warewulf/slurm/steps.tex index 781d0e52d9..4796457de5 100644 --- a/docs/recipes/install/sles12/aarch64/warewulf/slurm/steps.tex +++ b/docs/recipes/install/sles12/aarch64/warewulf/slurm/steps.tex @@ -24,10 +24,14 @@ \newcommand{\rms}{SLURM} \newcommand{\arch}{aarch64} +\newcommand{\clean}{zypper clean} +\newcommand{\chrootclean}{zypper --root \$CHROOT clean} \newcommand{\install}{zypper -n install} \newcommand{\chrootinstall}{zypper -n --root \$CHROOT install} \newcommand{\groupinstall}{zypper -n install -t pattern} \newcommand{\groupchrootinstall}{zypper -n --root \$CHROOT install -t pattern} +\newcommand{\upgrade}{zypper -n dup} +\newcommand{\chrootinstall}{zypper -n --root \$CHROOT dup} % boolean for os-specific formatting \togglefalse{isCentOS} diff --git a/docs/recipes/install/sles12/x86_64/warewulf/pbspro/steps.tex b/docs/recipes/install/sles12/x86_64/warewulf/pbspro/steps.tex index f6eefc6a2b..5c5757fd83 100644 --- a/docs/recipes/install/sles12/x86_64/warewulf/pbspro/steps.tex +++ b/docs/recipes/install/sles12/x86_64/warewulf/pbspro/steps.tex @@ -14,10 +14,14 @@ \newcommand{\rms}{PBS Professional} \newcommand{\arch}{x86\_64} +\newcommand{\clean}{zypper clean} +\newcommand{\chrootclean}{zypper --root \$CHROOT clean} \newcommand{\install}{zypper -n install} \newcommand{\chrootinstall}{zypper -n --root \$CHROOT install} \newcommand{\groupinstall}{zypper -n install -t pattern} \newcommand{\groupchrootinstall}{zypper -n --root \$CHROOT install -t pattern} +\newcommand{\upgrade}{zypper -n dup} +\newcommand{\chrootinstall}{zypper -n --root \$CHROOT dup} % boolean for os-specific formatting \togglefalse{isCentOS} diff --git a/docs/recipes/install/sles12/x86_64/warewulf/slurm/steps.tex b/docs/recipes/install/sles12/x86_64/warewulf/slurm/steps.tex index f4763ffe17..059f10b43a 100644 --- a/docs/recipes/install/sles12/x86_64/warewulf/slurm/steps.tex +++ b/docs/recipes/install/sles12/x86_64/warewulf/slurm/steps.tex @@ -14,10 +14,14 @@ \newcommand{\rms}{SLURM} \newcommand{\arch}{x86\_64} +\newcommand{\clean}{zypper clean} +\newcommand{\chrootclean}{zypper --root \$CHROOT clean} \newcommand{\install}{zypper -n install} \newcommand{\chrootinstall}{zypper -n --root \$CHROOT install} \newcommand{\groupinstall}{zypper -n install -t pattern} \newcommand{\groupchrootinstall}{zypper -n --root \$CHROOT install -t pattern} +\newcommand{\upgrade}{zypper -n dup} +\newcommand{\chrootinstall}{zypper -n --root \$CHROOT dup} % boolean for os-specific formatting \togglefalse{isCentOS}