Re: How to mirror a server installation?



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.

hth,
Jeff


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Urgent: filesystem "full", though space is available
    ... Ive got a big problem now on a production server. ... When i do various things, i am getting "write failed, file system full" ... I dont know what kind of math lets you do 2015-1858 and gives ... To unsubscribe, ...
    (freebsd-questions)
  • Re: Firewall solution.
    ... production server. ... a highly manageable firewall solution with a nice web ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Firewall solution.
    ... I am searching for something like pfsensefor Linux to install in a production server. ... a highly manageable firewall solution with a nice web interface. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: is it a bad idea to use unstable on a server ?
    ... * Is it a bad idea to use unstable on a production server when it ... comes to security? ... Stable with selected backports IF NEEDED! ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: is it a bad idea to use unstable on a server ?
    ... * Is it a bad idea to use unstable on a production server when it ... Stable with selected backports IF NEEDED! ... Debian GNU/Linux Consultant ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)