Define apt periodic tasks (autoclean, dowload packages, …).

This commit is contained in:
gardouille 2015-11-04 09:17:21 +01:00
parent a30318b69c
commit 953cf95a45
4 changed files with 31 additions and 7 deletions

View File

@ -10,6 +10,7 @@
* Exit if no informations file is available.
* Add a ".pref" extension to the preferences files.
* Use the script_path var instead of INSTALL_DIR (=`pwd`).
* Define apt periodic tasks (autoclean, dowload packages, …).
### 0.3.0

View File

@ -25,6 +25,14 @@ post_install_sid.sh
#### Apt configuration
##### apt.conf files
* Use apt.conf.d directory from git repository to provide additionnal configurations such as:
* Update package lists every day.
* Dowload upgradeable packages every day.
* Automatically clean dowloaded packages every week
* Set the default Debian version to Sid/Unstable.
* … see apt/apt.conf.d/ files.
##### preferences files
* Use apt/preferences.d directory from git repository to provide the preferences.d system directory.
* Default preferences: Sid < Stretch < Stable < Old-stable < Experimental

View File

@ -0,0 +1,20 @@
// Cache size
APT::Cache-Limit 100000000;
// Default Debian to manage: Unstable/Sid
APT::Default-Release "unstable";
APT
{
# Configure behavior of apt periodic updates
# Done by /etc/cron.daily/apt
Periodic
{
AutocleanInterval "7";
Update-Package-Lists "1";
Download-Upgradeable-Packages "1";
}
autoclean "1";
clean-installed "1";
}

View File

@ -544,13 +544,8 @@ architecture
## de redémarrer après une mise à jour
preconfig restart_no_asking
## Définition de paramètres
cat > /etc/apt/apt.conf.d/00configperso << EOF
// Agrandir la taille du cache d'Apt
APT::Cache-Limit 100000000;
// Version de Debian par défaut Unstable
APT::Default-Release "unstable";
EOF
## apt.conf.d
cp -f ${script_path}/apt/apt.conf.d/ /etc/apt/apt.conf.d/
## Sources.list
### Backup initial