Re: Bug#225999: ITP: debsync -- installed packages synchronization tool
On Sun, Jan 04, 2004 at 11:06:28PM +0100, Tollef Fog Heen wrote:
> * Arnaud Vandyck
> | > What's important here is *having* the _tool_. The fact that it does
> | > what you could do in 5 commands is irrelevant. And if you were to
> | > write the script yourself, you'd have to test/debug it, etc.
> | I don't agree.
> | 1° We already have the tools (dpkg, ssh, aptitude)
> | 2° If every scripts have to be package, I think we'll have some problems
> | in the distro! Also, note that ssh and aptitude are tools that must
> | be known by the average administrator (and I think your tool is for
> | admins, not users who don't have the right to install anything). And
> | if this admin read some docs about Debian, he'll learn dpkg fast!
> | 3° Well, yes, you'll have to test!
> I'm hoping that debsync can fulfill something I'm at least have been
> looking for for a while:
> I want a bunch of hosts to have a set of debs installed. I don't want
> any excess packages removed, but I want this minimum set installed.
for host in $hostlist
ssh -t $host apt-get install $pkglist
where $hostlist contains the names of the hosts, and $pkglist the list
of debs you want installed. If a package is already installed, apt will
skip it (unless a more recent version is available)...
Debian GNU/Linux -- http://www.debian.org
Nederlandstalige Linux-documentatie -- http://nl.linux.org
"Stop breathing down my neck." "My breathing is merely a simulation."
"So is my neck, stop it anyway!"
-- Voyager's EMH versus the Prometheus' EMH, stardate 51462.