Ritesh Raj Sarraf wrote:
> If I copy the whole filesystem to another hard drive and rebuild the dpkg
> database, will it work ? Will dpkg be able to understand all the packages
> installed ?

What about

dpkg --get-selections
dpkg --set-selections

RTFM, dpkg(1)

Or you can use (which is my preferred way):

aptitude search '~i !~M' | tr -s ' ' | cut -f 2 -d ' ' > installed.txt

Then simple editing of installed.txt will make you script to install the
same packages on new computer.

Best,

Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej/blog/
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
 
We must all hang together, or assuredly we shall all hang
separately.
   -- Benjamin Franklin



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to