Impact of running pkgdb -fu
Hi, I have a question about the effect of running pkgdb -fu, besides making me laugh because of its whimsically profane command-line options. Suppose I have been running pkgdb -F as suggested by portupgrade, and I accidentally delete a stale dependency that should have been handled in another way. Will rebuilding the package database with pkgdb -fu restore this dependency to its pristine, correct state? On a related note ... I recently ran portupgrade -rRa, as is my wont, and it suggested I run pkgdb -F. So I did. It reported as stale dependencies packages that were never installed on my system. Is this normal? I haven't seen it before. For example it reported as a stale dependency of one of the kde* packages the x11/nvidia driver. Although I have that driver installed, I downloaded and installed it by hand from the nVidia web site (I didn't know it was available as a port). Hence my question. I accidentally said, remove this dependency to pkgdb -F. After realizing that the dependencies pkgdb -F was reporting as stale were actually not installed, I built each of those ports which made pkgdb -F stop complaining about them. I also subsequently built the x11/nvidia port, but it's the removal of that first dependency that's keeping me up at night. Hence my question regarding pkgdb -fu. Does it restore everything to its neat-and-tidy state? Or am I cursed to live out my days with a besmirched (or befouled, your choice) package database? -Dan MacMillan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Impact of running pkgdb -fu
On Fri, Mar 19, 2004 at 05:34:38PM -0700, Dan MacMillan wrote: Hi, I have a question about the effect of running pkgdb -fu, besides making me laugh because of its whimsically profane command-line options. Suppose I have been running pkgdb -F as suggested by portupgrade, and I accidentally delete a stale dependency that should have been handled in another way. Will rebuilding the package database with pkgdb -fu restore this dependency to its pristine, correct state? No, the dependency was removed from the installed package. You need to explicitly restore it, e.g. by reinstalling it. Kris pgp0.pgp Description: PGP signature
Re: Impact of running pkgdb -fu
On Fri, Mar 19, 2004 at 05:56:08PM -0700, Dan MacMillan wrote: Kris Kennaway Sent: March 19, 2004 17:46 On Fri, Mar 19, 2004 at 05:34:38PM -0700, Dan MacMillan wrote: Hi, I have a question about the effect of running pkgdb -fu, besides making me laugh because of its whimsically profane command-line options. Suppose I have been running pkgdb -F as suggested by portupgrade, and I accidentally delete a stale dependency that should have been handled in another way. Will rebuilding the package database with pkgdb -fu restore this dependency to its pristine, correct state? No, the dependency was removed from the installed package. You need to explicitly restore it, e.g. by reinstalling it. Thanks for your reply ... but now I'm a little confused. The dependencies are stored in the packages themselves? Would that be in the tarball in the /usr/ports/distfiles directory? Where can I go to learn more about this, specifically the anatomy of a binary package and the structure of the package database? Packages register themselves in /var/db/pkg when installed. Read the pkg_create and related manpages for more details. Kris pgp0.pgp Description: PGP signature
RE: Impact of running pkgdb -fu
Kris Kennaway Sent: March 19, 2004 18:06 On Fri, Mar 19, 2004 at 05:56:08PM -0700, Dan MacMillan wrote: Kris Kennaway Sent: March 19, 2004 17:46 On Fri, Mar 19, 2004 at 05:34:38PM -0700, Dan MacMillan wrote: I have a question about the effect of running pkgdb -fu, besides making me laugh because of its whimsically profane command-line options. Suppose I have been running pkgdb -F as suggested by portupgrade, and I accidentally delete a stale dependency that should have been handled in another way. Will rebuilding the package database with pkgdb -fu restore this dependency to its pristine, correct state? No, the dependency was removed from the installed package. You need to explicitly restore it, e.g. by reinstalling it. Thanks for your reply ... but now I'm a little confused. The dependencies are stored in the packages themselves? Would that be in the tarball in the /usr/ports/distfiles directory? Where can I go to learn more about this, specifically the anatomy of a binary package and the structure of the package database? Packages register themselves in /var/db/pkg when installed. Read the pkg_create and related manpages for more details. Excellent. Thank you for your kind attention. -Dan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]