Re: reading installonlypkgs config option?

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1175794594.19199.18.camel@cutter>
On Thu, 2007-04-05 at 12:22 -0400, Matthew Miller wrote:
> On Thu, Apr 05, 2007 at 11:35:03AM -0400, seth vidal wrote:
> > > > To help test this theory and also as a workaround in case I'm right,
> > > > I'd like to change our auto-update cron script to run `yum update
> > > > {installonlypkgs}` before the general `yum update` command. I could of
> > > > course hardcode a list of things for {installonlypkgs}, but it seemed
> > > > nicer to query for it.
> > and another way to do this would be to have a separate config file that
> > you call for that update.
> 
> I must be being dense. What would the separate config file have in it?

oh, I must have misunderstood. I thought you were looking for a good way
of defining installonlypkgs. But you want to extract the list of
installonlypkgs so you can then pass it to a command.

I see, now. You could do it with a plugin to extract the info from
yum.conf.installonlypkgs and then run that as an update command.
Alternatively, you'd have to parse the config file on your own.

Sorry for the confusion.

-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.