User Tools

Site Tools


howtos:apt-mirror_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:apt-mirror_setup [d/m/Y H:i] (current)
Line 1: Line 1:
 +====== Lucid Lynx ======
 +
 +===== mirror.list =====
 +<file>
 +
 +############# config ##################
 +#
 +# set base_path    /var/spool/apt-mirror
 +set base_path /media/usbdisk/repo
 +#
 +# 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  <running host architecture>
 +# set postmirror_script $var_path/postmirror.sh
 +# set run_postmirror 0
 +set nthreads     20
 +set _tilde 0
 +#
 +############# end config ##############
 +
 +deb http://dk.archive.ubuntu.com/ubuntu/ lucid main restricted
 +deb http://dk.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
 +deb http://dk.archive.ubuntu.com/ubuntu/ lucid universe
 +deb http://dk.archive.ubuntu.com/ubuntu/ lucid-updates universe
 +deb http://dk.archive.ubuntu.com/ubuntu/ lucid multiverse
 +deb http://dk.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
 +#deb http://dk.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
 +#deb http://dk.archive.ubuntu.com/ubuntu lucid partner
 +deb http://dk.archive.ubuntu.com/ubuntu lucid-security main restricted
 +deb http://dk.archive.ubuntu.com/ubuntu lucid-security universe
 +deb http://security.ubuntu.com/ubuntu lucid-security multiverse
 +deb http://dk.archive.ubuntu.com/ubuntu/ lucid main
 +deb http://dk.archive.ubuntu.com/ubuntu lucid main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
 +clean http://dk.archive.ubuntu.com/ubuntu
 +</file>
 +
 +===== postmirror.sh =====
 +
 +<file>
 +#!/bin/sh -e
 +
 +## anything in this file gets run AFTER the mirror has been run
 +## put your custom post mirror operations in here ( like rsyncing the installer files and running clean.sh automaticly )
 +
 +/media/usbdisk/repo/var/clean.sh
 +
 +</file>
  
howtos/apt-mirror_setup.txt · Last modified: d/m/Y H:i (external edit)