Re: [Pkgutil-users] pkgutil package install/available mismatch
Status: Beta
Brought to you by:
bonivart
|
From: Peter B. <bon...@op...> - 2009-06-08 21:52:55
|
On Mon, Jun 8, 2009 at 9:21 PM, Rob Ruma<rr...@fa...> wrote: > This could be a possible bug. pkgutil doesn't report if a package is > installed if the name of the CSW package doesn't match what it goes by > from the repo. Since both compare options (c/C) list package names and not catalog names, that is what you should provide on the command line. Think of it as piping to grep. > [root@sun]# pkgutil -c pkg_update_watch > package installed catalog This would have worked if you had specified pkgupdatewatch. > [root@sun]# pkgutil -C pkg_update_watch > package installed catalog Even if this matched it would only have shown something if installed version didn't match catalog version. > [root@sun]# pkgutil -a pkg_update_watch > pkg_update_watch CSWpkgupdatewatch 1.0,REV=2007.04.10 > 4.0 KB Here it works using catalog name since output contains both package and catalog names. Again, think of it as a grep. Actually, all internal work in pkgutil is done with package names. When you, for example, use catalog names to install something a lookup has to be done for every one so you lose a few milliseconds. :-) For this to work I guess I would have to do lookups here as well. Do you think that would be better? I could try to fix that if you want it. -- /peter |