Re: [Pkgutil-users] pkgutil package install/available mismatch
Status: Beta
Brought to you by:
bonivart
|
From: Peter B. <bon...@op...> - 2009-06-10 14:10:36
|
On Wed, Jun 10, 2009 at 3:28 PM, Rob Ruma <rr...@fa...> wrote: > Here's a scenario: > > I have 10 packages in my puppet manifest I need to make sure are installed. > > Each time puppet runs on the client server, it uses pkgutil -c <pkg > name> to check if that particular package is still installed. It runs > this command for each package which results in overall slower > performance for puppet opposed to using pkg-get for the package provider. Ok, that's unfortunate since "pkgutil -c pkgname" does a full compare and then just filters the output to match "pkgname". In the case of puppet, a full compare is done for every package installed. I have no idea how pkg-get does a compare. I guess I could look into a compare option that is not just a filter but instead only compares exactly your arguments. That would be faster. I don't use puppet, can you change between pkg-get and pkgutil and different options yourself or is it "built-in" how it's used? -- /peter |