Re: [Pkgutil-users] pkgutil package install/available mismatch
Status: Beta
Brought to you by:
bonivart
|
From: Rob R. <rr...@fa...> - 2009-06-10 14:51:48
|
I would rather do the full compare for sake of accuracy. I see the value in keeping that functionality intact. It would be nice if it was faster. I can switch between pkg-get and pkgutil in puppet but I have a second repo configured in the configuration and pkg-get doesn't support multiple repos or repos over https. Rob Ruma Harvard University Faculty of Arts and Sciences (FAS) UNIX IT Systems Peter Bonivart wrote: > 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? > |