README.md: Write "Apt configuration" doc.
This commit is contained in:
parent
b53b8dc3fe
commit
d5aa30cac8
27
README.md
27
README.md
|
@ -41,22 +41,29 @@ sudo post_install_sid.sh
|
|||
|
||||
#### Apt configuration
|
||||
|
||||
##### apt.conf files
|
||||
* Use apt.conf.d directory from git repository to provide additionnal configurations such as:
|
||||
##### Pre-Configuration
|
||||
* Load pre-seed to automatically restart services after an upgrade
|
||||
* apt.conf.d: Use apt/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.
|
||||
* sources.list.d: Use apt/sources-list.d directory from git repository to provide the sources-list.d system directory.
|
||||
* Backup initials files if exists.
|
||||
* Add Wheezy/OldStable (official + backports), Jessie/Stable (official + backports), Stretch/Testing (official), Sid/Unstable (official + multimedia) and Experimental (official) repositories.
|
||||
* preferences.d directory: Use apt/preferences.d directory from git repository to provide the preferences.d system directory.
|
||||
* Backup initials files if exists.
|
||||
* Default preferences: Sid < Stretch < Stable < Old-stable < Experimental
|
||||
* Iceweasel/Icedove preferences: Experimental
|
||||
* Update Debian repositories.
|
||||
|
||||
##### 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
|
||||
* Iceweasel/Icedove preferences: Experimental
|
||||
##### Add
|
||||
* deb-multimedia-keyring: GnuPG archive key of the deb-multimedia repository.
|
||||
|
||||
##### sources-list files
|
||||
* Use sources-list.d directory from git repository to provide the sources-list.d system directory.
|
||||
* Add Wheezy (official + backports), Jessie (official + backports), Stretch (official), Sid (official + multimedia) and Experimental (official) repositories.
|
||||
##### Post-Configuration
|
||||
* Set a variable to ensure to keep old config files when upgrading a package.
|
||||
* Then force a full-upgrade of the system with the new repositories.
|
||||
|
||||
#### X11 Server
|
||||
|
||||
|
@ -210,7 +217,7 @@ pastebinit - < <(ls -al /dev)
|
|||
|
||||
#### System tools for cli
|
||||
|
||||
##### Pre-configuration
|
||||
##### Pre-Configuration
|
||||
* Load BackupPC pre-seed file.
|
||||
|
||||
##### Add
|
||||
|
|
|
@ -421,55 +421,51 @@ def_debug ${mode_debug}
|
|||
architecture
|
||||
|
||||
###########################################################
|
||||
#### Configuration de Aptitude
|
||||
#### Apt configuration
|
||||
###########################################################
|
||||
##### Pré-configuration
|
||||
|
||||
## Chargement de la configuration pour ne pas avoir de messages lorsqu'un service a besoin
|
||||
## de redémarrer après une mise à jour
|
||||
##### Pre-configuration
|
||||
###### Load pre-seed to automatically restart services after an upgrade
|
||||
preconfig restart_no_asking
|
||||
|
||||
## apt.conf.d
|
||||
###### apt.conf.d
|
||||
cp -f ${script_path}/apt/apt.conf.d/* /etc/apt/apt.conf.d/
|
||||
|
||||
## Sources.list
|
||||
###### sources.list.d
|
||||
### Backup initial
|
||||
test -f /etc/apt/sources.list && mv /etc/apt/sources.list /etc/apt/sources.list.bkp
|
||||
rm -f /etc/apt/sources.list\~
|
||||
|
||||
### Copy all local sources.list files
|
||||
cp -f ${script_path}/apt/sources-list.d/* /etc/apt/sources.list.d/
|
||||
|
||||
## Preferences
|
||||
###### preferences.d
|
||||
### Backup initial
|
||||
test -f /etc/apt/preferences && mv /etc/apt/preferences /etc/apt/preferences.bkp
|
||||
|
||||
### Copy all local preferences files
|
||||
cp -f ${script_path}/apt/preferences.d/* /etc/apt/preferences.d/
|
||||
|
||||
aptitude update
|
||||
check_output "Update Debian repositories"
|
||||
|
||||
## Installation de la clé pour le dépôt multimédia
|
||||
# Restauration des sorties standard pour pouvoir confirmer l'installation de la clé
|
||||
# Restore the standard output to be sur to be able to install the Debian Multimedia Keyring
|
||||
restore_stdout
|
||||
restore_stderr
|
||||
aptitude install deb-multimedia-keyring
|
||||
|
||||
# Restauration des sorties en fonction du niveau de debug choisi
|
||||
##### Add
|
||||
ains "Debian Multimedia Repository" deb-multimedia-keyring
|
||||
|
||||
# Restore the standard output to the default choosen level
|
||||
def_debug ${mode_debug}
|
||||
|
||||
##### Post-Configuration
|
||||
aptitude update
|
||||
check_output "Mise à jour des dépôts"
|
||||
check_output "Update Debian repositories"
|
||||
|
||||
restore_stdout
|
||||
restore_stderr
|
||||
# Variable pour forcer à garder les anciens fichiers de configuration si de nouveaux sont présent avec une maj
|
||||
###### Set a variable to ensure to keep old config files when upgrading a package.
|
||||
export UCF_FORCE_CONFFOLD=1
|
||||
|
||||
###### Force a full-upgrade of the system
|
||||
aptitude -y full-upgrade
|
||||
check_output "Mise à jour du système"
|
||||
def_debug ${mode_debug}
|
||||
check_output "Force full-upgrade of the system"
|
||||
|
||||
###########################################################
|
||||
## Prérequis
|
||||
|
|
Loading…
Reference in New Issue