Re: reading installonlypkgs config option?

Matthew Miller <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On Thu, Apr 05, 2007 at 02:00:16PM -0400, seth vidal wrote:
> > Okay, that'll work.
> > > Alternatively, you'd have to parse the config file on your own.
> > Or if I patch yum to provide config installonlypkgs in yum shell, would you
> > apply it?
> sure, but how would you grab the info? it doesn't let you save it, just
> set it.

Well, unless you're going to go down the road of full-scripting-language in
yum shell :) , I'd just do something like:

yum check-update yum || yum -y update yum
P=$(echo config installpkgs|yum shell|awk '/> installpkgs:/ {print $3}')
yum check-update $P || yum -y update $P
yum check-update || yum -y update

(except with actually checking return values and doing something with the
output.)

-- 
Matthew Miller           [email protected]          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>
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.