Subject: pkg/8701: misc/rpm pkg docs do not mention --initdb
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/29/1999 03:36:49
>Number:         8701
>Category:       pkg
>Synopsis:       misc/rpm pkg docs do not mention --initdb
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 29 03:36:00 1999
>Originator:     Hauke Fath
Saphir Software GmbH -- does not speak for me and vice versa.
>Release:        1.4.1
System: NetBSD heap 1.4.1 NetBSD 1.4.1 (HEAP) #8: Fri Oct 1 13:51:43 CEST 1999 hf@heap:/home/hf/work/netbsd-release/sys/arch/i386/compile/HEAP i386

	Neither the rpm manpage nor any related NetBSD docs mention 
the procedure to set up the rpm database afer installation (option --initdb).
Install misc/rpm, try to do something with a rpm package.
Wonder why all your efforts are answered with 

[hf@heap] /<2%lib/rpm # rpm -qa -vv
D: opening database in //var/pkg/lib/rpm/
failed to open //var/pkg/lib/rpm/packages.rpm

Touch a few files in /var/pkg/lib/rpm/, try out "rpm --rebuilddb, 
look around in the sources and waste a few hrs without success.

Finally come across --initdb in README.amiga.
Slap forehead.

--- rpm.8~      Tue Aug 25 21:06:11 1998
+++ rpm.8       Fri Oct 29 12:25:08 1999
@@ -43,6 +43,9 @@
 Rebuild database:
 .I "\fB    rpm \-\-rebuilddb"
+Initialize database:
+.I "\fB    rpm \-\-initdb"
 Fix permissions:

Additionally, a post-install message would be appropriate.