Creating a CD Repository from Debian Packages
sudo apt-get install apt-move
edit /etc/apt-move.conf and change 'COPYONLY=yes'
clean old packages: sudo aptitude autoclean
be root: sudo -s -H
rm -rf /mirrors/debian
apt-move -d dapper update
cd /mirrors/debian
apt-ftparchive packages pool/main/ | gzip -9c > dists/dapper/main/binary-i386/Packages.gz
apt-ftparchive packages pool/restricted/ | gzip -9c > dists/dapper/restricted/binary-i386/Packages.gz
Create configuration file ~/myapt.conf
APT::FTPArchive::Release {
Origin "APT-Move";
Label "APT-Move";
Suite "dapper";
Codename "dapper";
Architectures "i386";
Components "main restricted";
Description "Ubuntu Updates CD";
};
rm dists/dapper/Release
apt-ftparchive -c ~/myapt.conf release dists/dapper/ > Release
mv Release dists/dapper/
gpg -bao dists/dapper/Release.gpg dists/dapper/Release
(if you have not had keys, use gpg --gen-key)
rm -rf .apt-move
mkdir .disk
echo Ubuntu-Updates `date +%Y-%m-%d` > .disk/info
gpg --export -a "Your Name" > public.key
burn the CD:
mkisofs -r -A "Ubuntu Updates `date +%Y%m%d`" -o ubuntu-updates.iso /mirrors/debian
To install from the repository CD, insert the CD and run:
apt-key add /cdrom/public.key
sudo apt-cdrom add (OR synaptic -> edit -> add cdrom)
SOURCE:
https://help.ubuntu.com/community/AptMoveHowto
edit /etc/apt-move.conf and change 'COPYONLY=yes'
clean old packages: sudo aptitude autoclean
be root: sudo -s -H
rm -rf /mirrors/debian
apt-move -d dapper update
cd /mirrors/debian
apt-ftparchive packages pool/main/ | gzip -9c > dists/dapper/main/binary-i386/Packages.gz
apt-ftparchive packages pool/restricted/ | gzip -9c > dists/dapper/restricted/binary-i386/Packages.gz
Create configuration file ~/myapt.conf
APT::FTPArchive::Release {
Origin "APT-Move";
Label "APT-Move";
Suite "dapper";
Codename "dapper";
Architectures "i386";
Components "main restricted";
Description "Ubuntu Updates CD";
};
rm dists/dapper/Release
apt-ftparchive -c ~/myapt.conf release dists/dapper/ > Release
mv Release dists/dapper/
gpg -bao dists/dapper/Release.gpg dists/dapper/Release
(if you have not had keys, use gpg --gen-key)
rm -rf .apt-move
mkdir .disk
echo Ubuntu-Updates `date +%Y-%m-%d` > .disk/info
gpg --export -a "Your Name" > public.key
burn the CD:
mkisofs -r -A "Ubuntu Updates `date +%Y%m%d`" -o ubuntu-updates.iso /mirrors/debian
To install from the repository CD, insert the CD and run:
apt-key add /cdrom/public.key
sudo apt-cdrom add (OR synaptic -> edit -> add cdrom)
SOURCE:
https://help.ubuntu.com/community/AptMoveHowto
0 Comments:
Post a Comment
<< Home