Skip to content

Commit

Permalink
update yum /dnf routines
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Mar 30, 2017
1 parent e9c6dac commit 78ba208
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions centmin.sh
Expand Up @@ -884,6 +884,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -899,6 +900,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer-gitlab.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer-latest-gitlab.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer-latest.sh
Expand Up @@ -158,6 +158,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -173,6 +174,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer-minimal-gitlab.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer-minimal.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer-ngxpagespeed-gitlab.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer-ngxpagespeed.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer55-gitlab.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer55.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer56-gitlab.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer56.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer7-gitlab.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down
2 changes: 2 additions & 0 deletions installer7.sh
Expand Up @@ -160,6 +160,7 @@ fi
if [[ "$CENTOS_SEVEN" = '7' && "$DNF_ENABLE" = [yY] ]]; then
if [[ $(rpm -q epel-release >/dev/null 2>&1; echo $?) != '0' ]]; then
yum -y -q install epel-release
yum clean all
fi
if [[ "$DNF_COPR" = [yY] ]]; then
cat > "/etc/yum.repos.d/dnf-centos.repo" <<EOF
Expand All @@ -175,6 +176,7 @@ EOF
fi
if [[ ! -f /usr/bin/dnf ]]; then
yum -y -q install dnf
dnf clean all
fi
if [ ! "$(grep -w 'exclude' /etc/dnf/dnf.conf)" ]; then
echo "exclude=*.i386 *.i586 *.i686" >> /etc/dnf/dnf.conf
Expand Down

0 comments on commit 78ba208

Please sign in to comment.