Re: Working in a Func Module to verify the Integrity of the RPMs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael DeHaan wrote:
> Milton Paiva Neto wrote:
>> Hi my name is Milton Paiva, I am student of the Post-Graduate (Graduate
>> Certificate) Course - Linux and Unix System Administration from the
>> Seneca College and I just beginning to work in module for Func.
>>
>> I intend to make a module able to execute the command "rpm --verify -a"
>> to verify the integrity of all the packages on a given system.
>>
>> I saw the module rpm inventory 
>
> By module, I think you mean "function"? i.e. rpm.inventory()
>
>> and I am thinking in make this module to
>> work in the same way as inventory, but instead of get all the rpms
>> installed in the system, I will verify the integrity of all the rpms
>> already installed in the system.
>
> Generally I would suggest not creating another RPM module for this.
> I'd just add a new method called "verify".
>
>
> Of course this would mean func-inventory would not contain the results
> of the inventory automatically, so if you wanted you could posssibly
> do this:
>
> inventory() returns a hash
>
> hash looks like:
>
> {
> "installed" : old_results_go_here,
> "verify" : new_results_go_here
> }
>
> This would inflate everyone's diffs on upgrading to the new version
> but I can see that being useful.
>

I would just add a "verify" method to the rpm module. I'd also wouldn't
include it in the default inventory method, maybe because "rpm --verify
-a" takes a long time to run.

Adrian

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux