@@ -42,22 +42,22 @@ _installCentosCleanUp() {
4242}
4343
4444_installCentosPackages () {
45- yum update -y
46- yum install -y \
45+ yum -y update
46+ yum -y install \
4747 time \
4848 ruby \
4949 ruby-devel
5050
5151 if ! [ -x " $( command -v klayout) " ]; then
52- yum install -y https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion} -0.x86_64.rpm
52+ yum -y install https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion} -0.x86_64.rpm
5353 else
5454 currentVersion=$( klayout -v | grep -o ' [0-9]\+\.[0-9]\+\.[0-9]\+' )
5555 if _versionCompare $currentVersion -ge $klayoutVersion ; then
5656 echo " KLayout version greater than or equal to ${klayoutVersion} "
5757 else
5858 echo " KLayout version less than ${klayoutVersion} "
5959 sudo yum remove -y klayout
60- yum install -y https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion} -0.x86_64.rpm
60+ yum -y install https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion} -0.x86_64.rpm
6161 fi
6262 fi
6363}
@@ -84,7 +84,7 @@ _installUbuntuPackages() {
8484
8585 # install KLayout
8686 if _versionCompare $1 -ge 23.04; then
87- apt-get install -y klayout python3-pandas
87+ apt-get -y install --no-install-recommends klayout python3-pandas
8888 else
8989 if [[ $1 == 20.04 ]]; then
9090 klayoutChecksum=15a26f74cf396d8a10b7985ed70ab135
@@ -113,25 +113,24 @@ _installDarwinPackages() {
113113
114114_installCI () {
115115 apt-get -y update
116-
117- # docker
118- apt install -y \
116+ apt-get -y install --no-install-recommends \
119117 apt-transport-https \
120118 ca-certificates \
119+ coreutils \
121120 curl \
121+ python3 \
122122 software-properties-common
123+
123124 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
124- echo \
125- " deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
126- $( lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
127- apt-get -y update
128- apt-get install -y docker-ce docker-ce-cli containerd.io
125+ echo " deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
126+ $( lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
129127
130- # python
131- apt-get install -y python3
128+ apt-get -y update
129+ apt-get -y install --no-install-recommends \
130+ docker-ce \
131+ docker-ce-cli \
132+ containerd.io
132133
133- # stdbuf
134- apt-get install -y coreutils
135134}
136135
137136_help () {
0 commit comments