[Yum] script run idea

seth vidal skvidal at phy.duke.edu
Thu May 29 05:36:15 UTC 2003


Hi everyone,
 something I've been wanting to play with some:

yum scriptaction (or some such word, I don't know yet) filename/url

so it would either read or download a file from a url then do what the
file says. This part is easy - I was trying to figure out the niceties
for internal syntax of the file.

I thought of something like this:
installgroup Groupname
updategroup Groupname
remove pkgname
install pkgname
update pkgname
# comment
; comment

one item per line

but then I thought, that would make the file format maybe a touch too
similar to the commandline arguments and maybe confusing
so I thought  - why not make it like %packages in ks.cfg

@groupname
packagename
-packagename
- at groupname

but that wouldn't make any room for updating operations either
and I've kinda never liked the @ syntax for groups - I know it's common
to netgroups and other things but it's not flipping obvious to me.

The idea behind this would be that yum would parse this file  and treat
the actions requested as a single transaction.

you could, of course, do this with multiple yum commands in a shell
script, but that would incur a lot of startup/shutdown time and in
general not let you do a lot of things that are consistent to do at one
time at once.

Ideas on better syntax?

I think xml might be a tad overkill for this operation.

-sv





More information about the Yum mailing list