apt_clean

This commit is contained in:
Marc Beninca 2024-11-11 20:37:25 +01:00
parent a6180ecd65
commit e139ac7758
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 7 additions and 7 deletions

View file

@ -1,3 +1,3 @@
function apt_clean_cache {
apt-get clean
apt_clean() {
apt-get clean
}

View file

@ -49,7 +49,7 @@ fr_FR.UTF-8 UTF-8
apt-get install --assume-yes \
--target-release "${release}-backports" \
"${package}"
apt_clean_cache
apt_clean
done
# install packages
set "apt-file" "mosh" "screen" "byobu"
@ -58,7 +58,7 @@ fr_FR.UTF-8 UTF-8
echo "${package}"
apt-get install --assume-yes \
"${package}"
apt_clean_cache
apt_clean
done
# update catalog
apt-get update
@ -74,7 +74,7 @@ rescue_install() {
# upgrade packages
apt-get upgrade --assume-yes
# clean cache
apt_clean_cache
apt_clean
# install packages
set \
"man-db" \
@ -89,7 +89,7 @@ rescue_install() {
echo "${package}"
apt-get install --assume-yes \
"${package}"
apt_clean_cache
apt_clean
done
# install backports
set \
@ -102,7 +102,7 @@ rescue_install() {
apt-get install --assume-yes \
--target-release "${release}-backports" \
"${package}"
apt_clean_cache
apt_clean
done
}