apt_clean_cache

This commit is contained in:
Marc Beninca 2023-05-15 21:23:36 +02:00
parent 060287a127
commit 3b71c87e03
2 changed files with 11 additions and 2 deletions

3
bash/apt.sh Normal file
View file

@ -0,0 +1,3 @@
function apt_clean_cache {
apt-get clean
}

View file

@ -41,6 +41,8 @@ fr_FR.UTF-8 UTF-8
debian_disable_frontend
# install packages
apt-get install --assume-yes "${packages[@]}"
#
apt_clean_cache
}
function ovh-rescue-install {
@ -69,13 +71,17 @@ function ovh-rescue-install {
debian_disable_frontend
# upgrade packages
apt-get upgrade --assume-yes
#
apt_clean_cache
# install packages
apt-get install --assume-yes "${packages[@]}"
#
apt_clean_cache
# install backports
apt-get install --assume-yes \
--target-release "${release}-backports" "${backports[@]}"
# clean cache
apt-get clean
#
apt_clean_cache
}
function ovh-rescue-upload {