[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: keeps servers consistant (debs)



On Sun, Nov 05, 2006 at 05:45:01PM -0800, Jason Morehouse wrote:
> Hello,
> 
> Just wondering if there is an existing solution (or home-rolled script) 
> to keep packages consistent across multiple servers.
> 
> The standard repositories are fine, and caching isn't needed (ala 
> apt-proxy), as they are on different networks.  But if I install / 
> remove packages on a server, I'd like to do the same on other servers 
> without having to keep track.  Also when I create a new server, id like 
> to quickly remove and apt-get packages from a master list.
> 
> Any ideas?
> 
> Thanks,
Hi Jason,

dpkg --get-selections|grep -v deinstall > package.list
will get the Debian package names sans the version number.

If you 'dpkg --set-selections' and then 'aptitude dselect-upgrade', this
will attempts to remove and install what you asked. But I've never done
it and do not know if this has any problems/breakage in the resulting
upgrade. 

Once you have the correct packages, then there is the configuration
differences between machines, mostly in /etc/ that need to be adjusted.
That would be where the real problems need to be addressed.
Cheers,
Kev
-- 
|  .''`.  == Debian GNU/Linux == |       my web site:       |
| : :' :      The  Universal     | debian.home.pipeline.com |
| `. `'      Operating System    | go to counter.li.org and |
|   `-    http://www.debian.org/ |    be counted! #238656   |
|     my keysever: pgp.mit.edu   |     my NPO: cfsg.org     |

Attachment: signature.asc
Description: Digital signature


Reply to: