*- On 14 Jun, Mark Wright wrote about "Can I get the .deb files that I currently have installed." > I want to be able to replicate my current Debian installation, by collecting > all of the .deb files that I currently have installed. 'dselect' deleted > all of the .deb's that it installed. I know how to get the names of the > installed packages (dpkg -l | awk '{print $2}'), but I can figure out how to > translate that into a filename that I can ftp from debian.org. When I look > in the /var/lib/dpkg/available file, the 'Filename:' field is missing for > all the installed packages. Is there some way to automatically collect all > the .deb's that match my current installation? > > Mark. > --- > Mark Wright > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > >
Try the dpkg-repack package. This doesn't require any net connectivity at all. Package: dpkg-repack Priority: optional Section: admin Installed-Size: 21 Maintainer: Joey Hess <[EMAIL PROTECTED]> Architecture: all Version: 0.20 Depends: perl (>= 5.004) Filename: dists/stable/main/binary-i386/admin/dpkg-repack_0.20.deb Size: 8188 MD5sum: 442e4d83badc092a4725af5fd60c7a1d Description: puts an unpacked .deb file back together dpkg-repack creates a .deb file out of a debian package that has already been installed. If any changes have been made to the package while it was unpacked (ie, files in /etc were modified), the new package will inherit the changes. . This utility can make it easy to copy packages from one computer to another, or to recreate packages that are installed on your system, but no longer available elsewhere, or to store the current state of a package before you upgrade it. % dpkg-repack samba-common -- Creating control files -- Copying files -- Building package dpkg-deb: building package `samba-common' in `./samba-common_2.0.3-1_i386.deb'. -- Cleaning up -- Package build successful -- Brian --------------------------------------------------------------------- Mechanical Engineering [EMAIL PROTECTED] Purdue University http://www.ecn.purdue.edu/~servis ---------------------------------------------------------------------