Welcome,
> I am now reading freeBSD handbook.
> I could not find pkgdb command in my system.
> I compared with another machine. there pkgdb was @
> /usr/local/sbin/pkgdb
>
> But that file was not found in my machine. Waht should i install
> to make pkgdb available.

This tools updates the database used by portupgrade, install it :
port-mgmt/portupgrade

On Wed, 5 Sep 2007 11:42:09 UTC, chani <chanakam2000***********> wrote:
> Hi all,
> I am new to freeBSD. I am now reading freeBSD handbook.
> I could not find pkgdb command in my system.
> I compared with another machine. there pkgdb was @
> /usr/local/sbin/pkgdb
>
> But that file was not found in my machine. Waht should i install
> to make pkgdb available.

chani wrote:
> Hi all,
> I am new to freeBSD. I am now reading freeBSD handbook.
> I could not find pkgdb command in my system.
> I compared with another machine. there pkgdb was @
> /usr/local/sbin/pkgdb
>
> But that file was not found in my machine. Waht should i install
> to make pkgdb available.
>

Bob Eager wrote:
> On Wed, 5 Sep 2007 12:13:25 UTC, Henri Hennebert <hlh@restart.be> wrote:
>
>> chani wrote:
>>> Hi all,
>>> I am new to freeBSD. I am now reading freeBSD handbook.
>>> I could not find pkgdb command in my system.
>>> I compared with another machine. there pkgdb was @
>>> /usr/local/sbin/pkgdb
>>>
>>> But that file was not found in my machine. Waht should i install
>>> to make pkgdb available.
>>>
>> cd /usr/ports/ports-mgmt/portupgrade
>> make install clean
>
> On 6.2-RELEASE, there *is* no ports-mgmt directory; it appears after a
> portupgrade.

You I right

So, chicken and egg..

No - you update the port tree with cvsup / csup
>
> Look in sysutils/portupgrade on RELEASE.

Agreed...you can do that, and I realised that afterwards. However,
advice to look in ports-mgmt may well confuse if he starts looking for
that nonexistent directory! Hence my mention of the RELEASE location.

Also, not everyone wants to update the ports tree, unless they want a
lot of hassle with Xorg!
--
Bob Eager
UNIX since v6..http://tinyurl.com/2xqr6h