"Kenneth E. Lussier" said:
>All,
>
>Is there a way to find out everything that is installed on a Debian 
system? I
>have a system that is configured exactly the way I want, but I have to 
move to
> a
>new machine. The new machine has completely different hardware, so moving 
the
>disk won't work (the old one is IDE and the new one is SCSI). What I'd 
like to
>do is just feed a list of everything that is installed on the first 
system to
>apt-get or dpkg on the second system and just let it run. Any ideas?
>
>TIA,
>Kenny 

dpkg -l > packages.list (or dpkg --listfiles > packages.list).  

from the main pages: 
dpkg -l | --list package-name-pattern ...
              List packages matching given pattern. If  no  pack�
              age-name-pattern  is  given,  list  all packages in
              /var/lib/dpkg/available.   Normal  shell  wildchars
              are  allowed  in  package-name-pattern.   (You will
              probably have to quote package-name-pattern to pre�
              vent  the shell from performing filename expansion.
              For example, dpkg -l 'libc5*'  will  list  all  the
              package names starting with "libc5".)

The heading of the output is:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-=========================================
===
ii  a2ps           4.13b-10       GNU a2ps 'Anything to PostScript' 
converter

first column (the first i in this case) is Desired State (installed in 
this case), the second i is the actual state (installed, in this case).   
So, the 2nd field actually contains all the packages on your system.  
Extract with awk, input into dpkg on the receiving end for the install.

jeff

-----------------------------------------------------------------------
Jeffry Smith      Technical Sales Consultant     Mission Critical Linux
[EMAIL PROTECTED]   phone:603.930.9739 fax:978.446.9470
-----------------------------------------------------------------------
Thought for today:  borken adj. 

 (also `borked') Common deliberate typo for
   `broken'.





**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to