diff --git a/install.sh b/install.sh index 52d686c..eba06c8 100755 --- a/install.sh +++ b/install.sh @@ -56,8 +56,8 @@ function install_host() { fi done - apt update - apt install -y "${REQUIRED_PKGS[@]}" + apt-get update + apt-get install -y "${REQUIRED_PKGS[@]}" fi } diff --git a/tools/idem_apt_install b/tools/idem_apt_install index 827c976..1167ace 100755 --- a/tools/idem_apt_install +++ b/tools/idem_apt_install @@ -13,12 +13,12 @@ function usage() { if [ "$(date --date='-12 hours' +%s)" -gt "$(date -d "$(stat -c %y /var/lib/apt/lists/partial)" +%s)" ]; then echo "updating repositoring..." - apt update + apt-get update fi for i in "$@"; do if ! dpkg -l "$i" 2>/dev/null | grep -q ^ii; then - sudo apt install -y "$i" + sudo apt-get install -y "$i" elif [ -n "${VERBOSE+x}" ] && $VERBOSE; then echo "apt package <$i> already installed!" fi