Re: Feature request (dry run version of cadmin update)
Hunter Matthews <[email protected]> 03 Dec 2002 10:53:26 -0500
| Newsgroups | gmane.network.up2date.current.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2002-12-02 at 19:26, draco wrote: > A feature that I (and at least one other) would find useful would be a > --dry-run version of "cadmin update", whether presented as > "cadmin update --dry-run" or "cadmin diff" or some other command invocation. > > The command (whatever it's called) figures out what changes would take > place if I did a cadmin update, but doesn't actually make those changes. > Uh, that might not be too bad. Don't expect to see it in 1.4.3, but by just turning off the change code (and leaving the logging up to you) we can do a dry-run. That might be cool for testing, too. > Why? Say I have a cron job that silently rsyncs the Red Hat updates (I > haven't found that magic verbosity level that does "only output when > there is something to download") and I want to know what packages would get > upgraded when I update because I have site-specific packages that could get > overridden. The only way I can come close to doing that now is to write up a > script that stores a list of all the rpms in my directories and diffs them > against the last snapshot--which kind of works, but still doesn't 100% match > what cadmin update will do when I run it. > > I guess the alternative to that is to have a "cadmin undo". > /me watches hunter scream/shudder Not anymore. I just sigh a lot. > > -- > "UNIX does not prevent you from doing stupid things because that would also > prevent you from doing clever things" -- Unknown [by me] > _______________________________________________ > Current-server mailing list > [email protected] > http://lists.dulug.duke.edu/mailman/listinfo/current-server > > -- Hunter Matthews Unix / Network Administrator Office: BioScience 145/244 Duke Univ. Biology Department Key: F0F88438 / FFB5 34C0 B350 99A4 BB02 9779 A5DB 8B09 F0F8 8438 Never take candy from strangers. Especially on the internet.