From: Boris Glawe on
Hello,

according to the manpages and many webpages,

http://prefetch.net/blog/index.php/2008/02/04/figuring-out-which-package-a-solaris-utility-belongs-to/
http://www.cyberciti.biz/faq/solaris-find-out-a-package-which-a-file-belongs-to/
http://www.tech-recipes.com/solaris_system_administration_tips328.html
http://binarycrusader.blogspot.com/2005/07/whodunit-finding-what-package-file.html
....

pkgchk can be used to figure out the package a certain file belongs to.

No matter which file I'm querying, the output is empty in my case.

-bash-3.2# pkgchk -l -p /usr/bin/nautilus
-bash-3.2#


What's happening here?

Thanks and greets

Boris
From: Dave Uhring on
On Wed, 18 Jun 2008 16:10:01 +0200, Boris Glawe wrote:

> No matter which file I'm querying, the output is empty in my case.
>
> -bash-3.2# pkgchk -l -p /usr/bin/nautilus
> -bash-3.2#
>
>
> What's happening here?

You're not using Solaris, probably OpenSolaris.

duhring(a)maxwell:~# pkg search nautilus | grep bin
basename file usr/bin/nautilus pkg:/SUNWgnome-file-mgr(a)0.5.11-0.90

There's probably a better way but I haven't bothered trying to find it yet.

From: denis on
On 18 Jun., 16:10, Boris Glawe <pub...(a)boris-glawe.de> wrote:
> Hello,
>
> according to the manpages and many webpages,
>
> http://prefetch.net/blog/index.php/2008/02/04/figuring-out-which-pack...http://www.cyberciti.biz/faq/solaris-find-out-a-package-which-a-file-...http://www.tech-recipes.com/solaris_system_administration_tips328.htmlhttp://binarycrusader.blogspot.com/2005/07/whodunit-finding-what-pack...
> ...
>
> pkgchk can be used to figure out the package a certain file belongs to.
>
> No matter which file I'm querying, the output is empty in my case.
>
> -bash-3.2# pkgchk -l -p /usr/bin/nautilus
> -bash-3.2#
>
> What's happening here?
>
> Thanks and greets
>
> Boris


Sounds like you deleted some files and dirs in the /var/sadm/pkg
directory

Denis
From: Boris Glawe on
Dave Uhring schrieb:
> On Wed, 18 Jun 2008 16:10:01 +0200, Boris Glawe wrote:
>
>> No matter which file I'm querying, the output is empty in my case.
>>
>> -bash-3.2# pkgchk -l -p /usr/bin/nautilus
>> -bash-3.2#
>>
>>
>> What's happening here?
>
> You're not using Solaris, probably OpenSolaris.

Yes, that's right!

>
> duhring(a)maxwell:~# pkg search nautilus | grep bin
> basename file usr/bin/nautilus pkg:/SUNWgnome-file-mgr(a)0.5.11-0.90
>
> There's probably a better way but I haven't bothered trying to find it yet.
>

Problem with this version is that I cannot specify the full pathname of
a file. But it will be sufficient for most cases.

What's the difference between solaris and opensolaris here? I'm quiet
confused about all those pkg commands. I'm usually using the pkg
command. Are the pkgchk, pkgadd,... commands obsolete? In what way are
they different from the pkg command? I considered the pkg command as
kind of "frontend" to all those other pkg* commands. Isn't this correct?

Thanks in advance

Greets Boris
From: Dave Uhring on
On Wed, 18 Jun 2008 16:25:12 +0200, Boris Glawe wrote:

> What's the difference between solaris and opensolaris here?

That should be quite clear. OpenSolaris != Solaris

> I'm quiet
> confused about all those pkg commands. I'm usually using the pkg
> command. Are the pkgchk, pkgadd,... commands obsolete?

No, the pkgadd, pkgchk, pkgrm, ... commands are still used in Solaris.

> In what way are
> they different from the pkg command? I considered the pkg command as
> kind of "frontend" to all those other pkg* commands. Isn't this correct?

The package information in OpenSolaris /var/sadm/pkg is incomplete which
also means that the patch utilities do not work either.

pkgadd works; none of the rest of that group of utilities work.

If you want to remove a package then invoke the package manager from the
drop-down menu System -> Administration -> Package Manager. There is
probably a command line utility for that but, again, I have not bothered
with it - yet.

Read the pkg(1) man page. Everything should be in there.