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

Re: Can I get the .deb files that I currently have installed.



Mark Wright wrote:
> 
> 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?

You can use

  dpkg --get-selections > packages.txt

on the setup that you like, and then

  dpkg --set-selections < packages.txt

on the new machine.

Basically, dpkg --set-selections replaces the [S]elect part of
dselect.

Kirk


Reply to: