The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 pkgdb not found
Author: Chip 
Date:   02-01-02 10:14

I tried to follow your instructions but get pkgdb: command not found errors. When I try to find it I get this:

chip# locate pkgdb
/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb

What am I missing? Is portsdb -Uu the same thing? I am running it right now anyway.

Reply To This Message
 
 Re: pkgdb not found
Author: Dan Langille 
Date:   02-01-02 11:10

try /usr/local/sbin/pkgdb

note: locate is updated automagically once a week. You won't find just-installed files that way. Either use find, or see man locate to manually run the update program.

Reply To This Message
 
 Re: pkgdb not found
Author: Chip 
Date:   03-01-02 03:17

Well, find was unable to find it also -

find: pkgdb: No such file or directory
bash-2.05$

What port do I need to install to install pkgdb? I checked the fbsd.org web site and couldn't come up with anything.

Reply To This Message
 
 Re: pkgdb not found
Author: Dan Langille 
Date:   03-01-02 04:07

Chip wrote:

> Well, find was unable to find it also -
>
> find: pkgdb: No such file or directory
> bash-2.05$

I found it:

$ find /usr/local/sbin -name pkgdb
/usr/local/sbin/pkgdb
$

> What port do I need to install to install pkgdb?

The article is all about portupgrade. pkgdb is part of portupgrade.

Reply To This Message
 
 Re: pkgdb not found
Author: Chip 
Date:   03-01-02 06:36

I understand that, and I have the port portupgrade installed, as shown here:

chip# pkg_info | grep portupgrade
portupgrade-20010912.2 Very powerful FreeBSD ports/packages upgrading tool and mor
chip#

Yet I don't have pkgdb, as shown by the find command in the previous message.

So I am missing pkgdb, I did pkg_delete of portupgrade and then reinstalled it, a newer version - 20011231, now I have pkgdb. What do ya know - it wasn't part of the older version I had installed.

Reply To This Message
 
 Re: pkgdb not found
Author: Dan Langille 
Date:   03-01-02 07:04

The first rule of thumb with ports when ecountering a problem is to cvsup your ports tree and try again.

Reply To This Message
 
 Re: pkgdb not found
Author: Chip 
Date:   03-01-02 08:52

I just did cvsup last night (and once a month), I just had an old version of portupgrade installed. I didn't know it was so out of date (it was working fine for upgrading other ports). Now with pkgdb I can keep all my installed apps up to date more easily.

Reply To This Message
 
 Re: pkgdb not found
Author: Dan Langille 
Date:   03-01-02 17:20

btw: you could have done a "portupgrade portupgrade"

Reply To This Message
 
 Re: pkgdb not found
Author: Chip 
Date:   04-01-02 09:12

It's done. Took a day and a night to finish, it stopped several times needing input - specifically apsfilter and something else, I don't remember what. But it's done. One note though - All my custom desktop settings are gone. I guess this didn't happen to you, or you would have mentioned it in your article? The wm I am using is XFCE if it matters.

Reply To This Message
 
 Re: pkgdb not found
Author: DomitianX 
Date:   21-09-02 17:44

When I try to run pkgdb- F I get the following error:

/usr/local/sbin/portupgrade:34:in `require': No such file to load -- optparse (LoadError)
from /usr/local/sbin/portupgrade:34

If I try to portupgrade portupgrade, I get the same error.

Any ideas?

Reply To This Message
 
 Re: pkgdb not found
Author: Kevin 
Date:   12-01-04 15:25

Hi there

It's been a while that this message was added in the list, but I get the same message trying to use any program which comes with this portupgrade tool. I am using a stable 4.5 version of FreeBSD.

Best regards,
Kevin



Reply To This Message
 
 Re: pkgdb not found
Author: Michal 
Date:   02-07-04 13:44

Hi all,
I think I had the same problem, it means after I`ve installed portupgrade using ports I was trying to build /var/db/pkg but when I run #pkgdb -F or #portupgrade -a command the following error occured:
pkgdb: command not found,
So I use rehash command and everything was fine. In some shells it is essential to use rehash command after using any of newly installed programs.
BTW my system is FreeBSD 4.10

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org