Hello Everyone
Duplicate a system is to install on a machine, exactly the same packages on another. The technique is not new in itself, but it's always good to remember. Under Debian derivatives, "Dpkg" can do this quickly.
On the machine to duplicate, export the list of installed packages:
Quote:
|
# Dpkg - get-selections> lstpkg.dpkg
|
On the machine to install, start by asking a minimal system (installation via CD-Rom "businesscard" without selecting any group of packets). Copy the list of packages exported from the machine to duplicate and import it into the local package manager:
Quote:
|
# Dpkg - set-selections <lstpkg.dpkg
|
and launch the installation package and selected:
Quote:
|
# Apt-get dselect-upgrade
|
Note 1: if you really want the same machine, first copy "/ etc / passwd" and "/ etc / group" of the machine to duplicate on the target machine so that the installed programs use the same UIDs and GIDs (for example, bind, apache , etc ...).
Note 2: When saving server configuration files, keep the export list of installed packages on each of them can save a lot of time in case of problems ...