Tuesday, January 01, 2008

Creating a CD Repository from Debian Packages (Simple)

sudo apt-get install apt-move
sudo apt-get install dpkg-deve
edit /etc/apt-move.conf and change 'COPYONLY=yes'

sudo mkdir --parents --mode=a+w /mirrors/debian
OR if the directory already exists:
sudo chmod a+w --recursive /mirrors/debian

apt-move update

cd /mirrors/debian
dpkg-scanpackages pool /dev/null | gzip -9 > dists/stable/main/binary-i386/Packages.gz

mkdir /mirrors/debian/.disk
echo "Custom packages" $(hostname) $(date +%y%m%d) > /mirrors/debian/.disk/info

Then use nautilus to burn /mirrors/debian to a CD, make sure to show all hidden files.


SOURCE:
https://help.ubuntu.com/community/AptMoveHowto/simple

0 Comments:

Post a Comment

<< Home