This is an old revision of the document!
The goal of this page is to provide useful information for installing and managing OAR's reprepro Debian repository
TBC
TBC
Before copying some package version from one distribution (e.g. sid-unstable) to another (e.g. sid), it might be wise to generate a snaptshot, so that one can still configure a sources.list file providing access to an earlier version of OAR's packages.
It the version to snapshot is the current one, then reprepro can do it. Assuming we want to take a snapshot of sid for 2.5.4-1, 2.5.4-1 being the current version of the packages, we create a snapshot named “2.5.4-1” as follows:
$ reprepro -v -b /home/oarmaster/reprepro/oar/2.5 gensnapshot sid 2.5.4-1
One could then put in it's sources.list the following line to have access to the 2.5.4-1 version of the packages, even if they are not the current one anymore:
deb http://oar-ftp.imag.fr/oar/2.5/debian/ sid/snapshots/2.5.4-1 main
If we already copied a new version to the distribution, reprepro gensnapshot is useless. In that case, we have to generate the snapshot by ourselves…
$ export LC_TIME=C $ POOL=/home/oarmaster/reprepro/oar/2.5/pool/main/o/oar/ $ DIST=wheezy $ VERSION=2.5.3-3~bpo70+1 $ cd ~/mirror/htdocs/oar/2.5/debian/dists/$DIST/ $ mkdir -p snapshots/$VERSION/main $ cd snapshots/$VERSION/main $ mkdir -p {source,binary-i386,binary-amd64}/pool/main/o/oar $ cat > source/Release <<EOF Component: main Architecture: source EOF $ cp source/Release binary-i386/Release $ cp source/Release binary-amd64/Release $ cp $POOL/oar_${VERSION}.{dsc,debian.tar.gz} source/pool/main/o/oar/ $ cp $POOL/*${VERSION}_{all,i386}* binary-i386/pool/main/o/oar/ $ cp $POOL/*${VERSION}_{all,amd64}* binary-amd64/pool/main/o/oar/ $ (cd source ; apt-ftparchive sources . > Sources ; gzip -c Sources > Sources.gz) $ (cd binary-i386 ; apt-ftparchive packages . > Packages ; gzip -c Packages > Packages.gz) $ (cd binary-amd64 ; apt-ftparchive packages . > Packages ; gzip -c Packages > Packages.gz) $ rm -r {source,binary-i386,binary-amd64}/pool $ cd .. $ cat > Release <<EOF Suite: $DIST/snapshots/$VERSION Codename: $DIST/snapshots Architectures: i386 amd64 Components: main EOF $ apt-ftparchive release . >> Release $ gpg --clearsign -o InRelease Release $ gpg -abs -o Release.gpg Release
We can then add to our sources.list:
deb http://oar-ftp.imag.fr/oar/2.5/debian/ wheezy/snapshots/2.5.3-3~bpo70+1 main