Re: Replicate installed packages to new system
On Thu, Apr 12, 2007 at 23:19:55 -0000, McNamee, John wrote:
> How do you use the output from "aptitude search" to re-install the
> packages on the new system?
On the old system:
aptitude -F %p search '~i' > all-packages.txt
aptitude -F %p search '~i~M' > auto-packages.txt
On the new system:
aptitude install $(cat all-packages.txt)
aptitude markauto $(cat auto-packages.txt)
The $(cat ...) approach is not too elegant but it has worked for me so
far.
Make sure that all your dependency handling settings are exactly the
same on the new system, otherwise the "markauto" step might result in
the removal of packages.
--
Regards,
Florian
Reply to: