Re: Qs regarding Yum plugin

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1234208187.1894.21.camel@rosebud>
On Mon, 2009-02-09 at 11:27 -0800, Creative Innovative wrote:
> For example, lets say under posttrans_hook,
> I loop through the transaction object and determine below
> 1. Pkg A installed
> 2. Pkg B upgraded.
>  
> Now I run my security criteria, for files installed, and lets say Pkg
> A fails that criteria.
>  
> Qs 1) -->Now can I create a NEW TRANSACTION, like below
> 1. Pkg A remove
>  
> Qs 2) And then can I run this NEW TRANSACTION  from posttrans_hook.
>  
> Qs 3) If this wont work, is there any other way, where I can run
> package removal, from posttrans_hook.
>  
> Please let me know.
>  
> Thanks in advance,
> 
> 

Long and short - you can't run a transaction from posttrans...

for what you're doing it sounds like you'd want to run a script wrapped
around yum. Alternatively, look at the yum-security plugin - as it has
information about security updates that might be more helpful.

-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.