How do I export a list of installed Debian packages on a system, and then install those same packages on a new system?
|
feedback
|
|
To backup:
To Restore:
Also see this question for additional options and info: http://serverfault.com/questions/737/ubuntu-how-to-setup-a-new-machine-like-an-existing-one I have the above running in a daily cronjob that checks the dpgklist into SVN as part of our server inventory. This will allow you to keep a reasonable accurate inventory of installed packages across your servers and its easy to do a quick side-by-side diff to see if a server is missing a particular package. | ||||
|
feedback
|
|
You can also use aptitude for the same. This preserves information about "automatically installed" packages that other methods do not. Run following on the reference machine
copy package_list to the other machine and run
| |||
|
feedback
|
|
That's a good idea, and you might also set up one server with apt-proxy if you make a habit of this. | |||||||
feedback
|