From nobody@FreeBSD.org  Fri Feb 13 08:04:15 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 750C016A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Feb 2004 08:04:15 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7298C43D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Feb 2004 08:04:15 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1DG4E72044667
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Feb 2004 08:04:14 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i1DG4Ea0044666;
	Fri, 13 Feb 2004 08:04:14 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200402131604.i1DG4Ea0044666@www.freebsd.org>
Date: Fri, 13 Feb 2004 08:04:14 -0800 (PST)
From: Rob <rob@OhReally.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: empty package database after installation
X-Send-Pr-Version: www-2.0

>Number:         62792
>Category:       misc
>Synopsis:       empty package database after installation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 13 08:10:17 PST 2004
>Closed-Date:    Fri Feb 13 16:33:29 PST 2004
>Last-Modified:  Fri Feb 13 16:40:17 PST 2004
>Originator:     Rob
>Release:        5.2-RELEASE
>Organization:
>Environment:
FreeBSD workstation.sybolt.lan 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Hi,

What I'm describing here may be just as you intended it to be, but I thought I'd report it anyway.

I just did an installation of FreeBSD 5.2-RELEASE, and found that after installation my package database is empty (running `pkg_info' shows no packages).
I did a base install, and then checked things like 'Ssh server'. This obviously installed the ssh server, but I'm now wondering how I can ever decently upgrade my ssh server without having to manually remove each file (to avoid conflicts). Using portupgrade or pkg_delete won't deinstall the currently installed package...

I noticed this behaviour before on a FBSD51 machine, where I checked 'Configure interface using DHCP' when installing and later installed the net/isc-dhcp3 port (because I needed dhcpd). This left me with 2 installations of dhclient, one in /sbin and one in /usr/local/sbin. Running pkg_info didn't show (the first) dhclient.

With that installation I thought it was my own fault, since installation didn't go too smooth, but this last installation did.

cheers
Rob

p.s.: If you're going to reply by email, please give me a few days to respond. I don't have a client up and running yet.
>How-To-Repeat:
Install FreeBSD.
>Fix:
Have installation update the package database.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri Feb 13 16:33:11 PST 2004 
State-Changed-Why:  
The base system does not use packages 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62792 

From: Kris Kennaway <kris@obsecurity.org>
To: Rob <rob@OhReally.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/62792: empty package database after installation
Date: Fri, 13 Feb 2004 16:31:35 -0800

 On Fri, Feb 13, 2004 at 08:04:14AM -0800, Rob wrote:
 
 > What I'm describing here may be just as you intended it to be, but I thought I'd report it anyway.
 > 
 > I just did an installation of FreeBSD 5.2-RELEASE, and found that after installation my package database is empty (running `pkg_info' shows no packages).
 > I did a base install, and then checked things like 'Ssh server'. This obviously installed the ssh server, but I'm now wondering how I can ever decently upgrade my ssh server without having to manually remove each file (to avoid conflicts). Using portupgrade or pkg_delete won't deinstall the currently installed package...
 
 The base install does not use packages.
 
 Kris
>Unformatted:
