Go Back   Cloud Computing > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-11, 02:04
BOD Member
 
Join Date: Apr 2011
Posts: 82
Default Duplicate a Debian / Ubuntu

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 ...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.