On Sat, 28 May 2005, Panu Matilainen wrote: > Matthew Miller said: > > On Fri, May 27, 2005 at 07:24:25PM +0300, Panu Matilainen wrote: > >> Trivial version of dont-eat-me plugin: > > [...] > >> protect = ['glibc', 'yum', 'rpm', 'python'] > > > > It's probably good to list this stuff explicitly, but actually, I think > > all you need to protect is the yum package itself, because an attempt to > > remove glibc, rpm, or python eventually tries to remove yum too. > > Like said, this was just a trivial/mock-up version of the thing. There's a > whole lot more to protect than just those to keep a system in bootable > state, which I think would be a reasonable target for such a plugin. Just a suggestion, but it seems like it would be very reasonable for such a plugin to accept as at least ONE of its arguments a kickstart file probably as an arbitrary file, with enough smarts to be able to parse out all the packages and groups and resolve them into the protect list. If it grokked groups, then just protecting the basic group and a few others would go a long way. This would integrate well with a scheme to build a system with a very minimal kickstart install followed by a scripted yum second stage install, which is actually of great use to people doing a network install over a line with limited bandwidth and reliability. It also makes it relatively easy for people (including systems people) to use yum to play with and tune their installs, as one could very easily protect a "standard core" set of packages by group plus a few extra + and -'s (as in kickstart) and be fairly confident that one won't break any key systems. At the very least, protect = [] should take groups as well as packages, but I really do like the group +package -package type concept. rgb > > - Panu - > > _______________________________________________ > Yum mailing list > Yum@xxxxxxxxxxxxxxxxxxxx > https://lists.dulug.duke.edu/mailman/listinfo/yum > -- Robert G. Brown http://www.phy.duke.edu/~rgb/ Duke University Dept. of Physics, Box 90305 Durham, N.C. 27708-0305 Phone: 1-919-660-2567 Fax: 919-660-2525 email:rgb@xxxxxxxxxxxx