Re: How to mirror a server installation?



On Tue, 21 Oct 2008, Arnau wrote:

Hi all,

Jeff D wrote:
On Tue, 21 Oct 2008, Arnau wrote:

Hi all,

I'd like to mirror all the packages installed in a production server with
the
same versions. The idea is to have a enviroment test the upgrades before
apply
those upgrades to the real production server. What is the best way to do
this?

Thank you very much


You can do something like this:
on the current machine:
sudo dpkg --get-selections > server.selections

then copy the server.selections file to your test machine and run:
sudo apt-get update
sudo dpkg --set-selections < server.selections
sudo apt-get dselect-upgrde


That will install all packages that are on your current server on your
test server.

I like this option more than the one proposed François. Will this install
the same versions I in the production server?


Thanks


Assuming of course that you have the same sources listed in
/etc/apt/sources.list , in regards to stable/testing/sid. So, if both
machines are etch, then all packages will be the same version. But, this
will only upgrade packages installed through apt/aptitude. Any packages
that have been installed by hand wont be upgraded.

Jeff



Relevant Pages

  • Re: apt-get torture - deadlock libc6
    ... no. update will only update the lists of available packages. ... but these aren't compatible with my old woody install. ... upgrades behind and see if you can get out of that. ...
    (Debian-User)
  • Re: Anybody Tried Novell Desktop Yet?
    ... who will pay out for the support ... > upgrades for NLD as a default. ... Which is a place where users are not normally allowed to install their own ... software or upgrade packages themselves; it is all done in a controlled ...
    (alt.os.linux.suse)
  • Re: [Ubuntu 8.10] Need help getting out of odd update manager loop
    ... Today, I decided i wanted to install two packages, the "dos2unix" tool, ... I needed to add another repo to get the Emacs mode package. ... upgrades using the update manager. ...
    (Ubuntu)
  • Re: SVG broke after installing Pidgin unstable package
    ... I wanted to install Pidgin on my new Debian Etch setup. ... package was only available in the unstable repository, so I added that to my ... Some other packages ... impossible, though, just much less convenient than upgrades. ...
    (Debian-User)
  • Re: Gnome 2.10 going in to etch today
    ... I have seem countless times on this list that apt-get is ... When packages are marked manual, ... apt-get install is supposedly deprecated. ... why use a metapackage to track upgrades, ...
    (Debian-User)