====== Miroir de dépôt ======
----
===== Installation système =====
==== Ubuntu server 18.04 ====
==== Serveur apache ====
sudo apt-get install apache2
==== Paquet apt-miror ====
Modification de la liste des dépôts pour ajouter les dépôt universe.
/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic-security main
deb http://archive.ubuntu.com/ubuntu bionic-updates main
deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
Mise à jour des dépôts et installation du paquet apt-miror :
sudo apt-get update
sudo apt-get install apt-mirror
----
[[all:bibles:linux:serveur:repository|Haut de page]]
===== Configuration =====
==== Préparation dépôt ====
sudo mkdir -p /MIROIR/{mirror,skel,var}
sudo chmod -R 777 /MIROIR
sudo cp /etc/apt/mirror.list /MIROIR/18.04.x64
/MIROIR/18.04.x64
############# config ##################
#
set base_path /MIROIR
## Dans le cas d'un serveur web gardez le chemin par défaut (celui qui suit) ##
#set base_path /var/spool/apt-mirror
# if you change the base path you must create the directories below with write privileges
#
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
## set defaultarch xxxx (votre architecture i386/hppa/powerPC/ia64...)
set defaultarch amd64
set postmirror_script $base_path/postmirror.sh
set run_postmirror 0
set nthreads 10
set _tilde 0
#
############# end config ##############
####################################################
## UBUNTU VERSION bionic - 18.04 ##
## AMD-64 - 64bits ##
####################################################
deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
############# clean ##############
clean http://fr.archive.ubuntu.com/ubuntu/ bionic
clean http://fr.archive.ubuntu.com/ubuntu/ bionic-updates
clean http://fr.archive.ubuntu.com/ubuntu/ bionic-backports
clean http://security.ubuntu.com/ubuntu bionic-security
/MIROIR/18.04.i386
############# config ##################
#
set base_path /MIROIR
## Dans le cas d'un serveur web gardez le chemin par défaut (celui qui suit) ##
#set base_path /var/spool/apt-mirror
# if you change the base path you must create the directories below with write privileges
#
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
## set defaultarch xxxx (votre architecture i386/hppa/powerPC/ia64...)
set defaultarch i386
set postmirror_script $base_path/postmirror.sh
set run_postmirror 0
set nthreads 10
set _tilde 0
#
############# end config ##############
####################################################
## UBUNTU VERSION bionic - 18.04 ##
####################################################
deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
############# clean ##############
clean http://fr.archive.ubuntu.com/ubuntu/ bionic
clean http://fr.archive.ubuntu.com/ubuntu/ bionic-updates
clean http://fr.archive.ubuntu.com/ubuntu/ bionic-backports
clean http://security.ubuntu.com/ubuntu bionic-security
/MIROIR/16.04.x64
############# config ##################
#
set base_path /MIROIR
## Dans le cas d'un serveur web gardez le chemin par défaut (celui qui suit) ##
#set base_path /var/spool/apt-mirror
# if you change the base path you must create the directories below with write privileges
#
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
## set defaultarch xxxx (votre architecture i386/hppa/powerPC/ia64...)
set defaultarch amd64
set postmirror_script $base_path/postmirror.sh
set run_postmirror 0
set nthreads 10
set _tilde 0
#
############# end config ##############
####################################################
## UBUNTU VERSION xenial - 16.04 ##
## AMD-64 - 64bits ##
####################################################
deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ xenial universe
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
############# clean ##############
clean http://fr.archive.ubuntu.com/ubuntu/ xenial
clean http://fr.archive.ubuntu.com/ubuntu/ xenial-updates
clean http://fr.archive.ubuntu.com/ubuntu/ xenial-backports
clean http://security.ubuntu.com/ubuntu xenial-security
==== Récupération des paquets ====
Commande à lancer le soir ou le week-end pour télécharger l'ensemble de la distribution.
sudo apt-mirror /MIROIR/18.04.x64
sudo apt-mirror /MIROIR/18.04.i386
sudo apt-mirror /MIROIR/16.04.x64
----
[[all:bibles:linux:serveur:repository|Haut de page]]