[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

CDROM stuffies



I've just checked in 'apt-cdrom' which is the tool to make APT understand
CD's. What it does is given a CD it will generate a MD5 of some key data
to identify the CD, then scan the CD for package files then prompt the
user for a name and then copy the package files from the CD over. While
doing this is makes sure that every file in the package files matches one
on the CD and makes a note if there are any errors. After that it records
the CD ID and Name in it's database and updates the sources.list to
include the new CD.. Output looks like:

faure{jgg}~/work/apt/build/bin#time ./apt-cdrom -d /debian/debian/ -m add
Using CD-ROM mount point /debian/debian/
Identifying.. [ae724b2f2cc65c1a4f4e604bb75fd5f0]
Scanning Disc for index files..  Found 4 package index files.
Please provide a name for this CD-ROM, such as 'Debian 2.1r1 Disk 1':
Debian NFS
This Disc is called 'Debian NFS'
Reading Package Lists... Done
Wrote 2307 package records.
Source List entires for this Disc are:
deb "cdrom:Debian NFS/" dists/proposed-updates/
deb "cdrom:Debian NFS/" unstable contrib main non-free

Please try it out on your real CD's :> Without -m it will call mount and
umount on the cdpath for you.

In theory if someone publishes a popular and massively brain damaged CD we
can fix apt-cdrom to compensate for alot of braindamage.

Thanks,
Jason


Reply to: