[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Upgrading from 3.0.6 to 4.0.4
- From: Albert Chin <rpm-list thewrittenword com>
- To: rpm-list redhat com
- Subject: Re: Upgrading from 3.0.6 to 4.0.4
- Date: Wed, 15 May 2002 13:26:30 -0500
On Wed, May 15, 2002 at 02:09:17PM -0400, Jeff Johnson wrote:
> On Wed, May 15, 2002 at 01:02:35PM -0500, Albert Chin wrote:
> > I created a fresh RPM installation with RPM 3.0.6:
> > $ rpm30/bin/rpm --dbpath [dbpath] --initdb
> > $ rpm30/bin/rpm -Uvh [first rpm v3 package]
> > $ rpm30/bin/rpm -Uvh [second rpm v3 package]
> >
> > Then tried to upgrade to 4.0.4:
> > $ rpm40/bin/rpm --dbpath [dbpath] --rebuilddb
> > $ rpm40/bin/rpm -e -vv [second rpm v3 package]
> >
> > I get:
> > error: cannot open Triggername index using db3 - No such file
> > or directory (2)
> >
> > I don't see Triggername in [dbpath]. Should I just ignore the error
> > above? If I start from a fresh 4.0 database, I get Triggername:
> > $ rpm40/bin/rpm --dbpath [dbpath] --initdb
> > $ rpm40/bin/rpm -Uvh [rpm v4 package]
> >
> > This is against RPM from CVS (rpm-4_0) and on Solaris 2.6/SPARC or AIX
> > 4.3.2.
>
> Presumably you did "make install".
Yes, but our installation is not "typical".
> Try
> echo "%_dbapi 1" >> /etc/rpm/macros.db1
> rpm --rebuilddb -vv # convert db1 -> db3 format
> ls -al /etc/rpm/macros.cdb # file is erased by --rebuilddb
Still doesn't work. I don't have /etc/rpm/macros.cdb.
/etc/rpm/macros.db1 was removed after the --rebuilddb. -vv doesn't
appear to show anything interesting. Log below.
--
albert chin (china@thewrittenword.com)
-- snip snip (--rebuilddb -vv)
D: rebuilding database /var/tmp/db into /var/tmp/dbrebuilddb.13284
D: creating directory /var/tmp/dbrebuilddb.13284
D: opening old database with dbapi 1
D: opening db environment /var/tmp/db/Packages create:mpool
D: opening db index /var/tmp/db/Packages rdonly mode=0x0
D: closed db index /var/tmp/db/Packages
D: closed db environment /var/tmp/db/Packages
D: removed db environment /var/tmp/db/Packages
D: opening db file /var/tmp/db/packages.rpm mode 0x0
D: opening new database with dbapi 3
D: opening db environment /var/tmp/dbrebuilddb.13284/Packages create:mpool
D: opening db index /var/tmp/dbrebuilddb.13284/Packages create mode=0x102
D: locked db index /var/tmp/dbrebuilddb.13284/Packages
D: +++ 1 TWWos-1.0-1
D: opening db index /var/tmp/dbrebuilddb.13284/Name create mode=0x102
D: adding "TWWos" to Name index.
D: opening db index /var/tmp/dbrebuilddb.13284/Group create mode=0x102
D: adding "System Environment/Base" to Group index.
D: opening db index /var/tmp/dbrebuilddb.13284/Providename create mode=0x102
D: adding 2 entries to Providename index.
D: opening db index /var/tmp/dbrebuilddb.13284/Provideversion create mode=0x102
D: adding 2 entries to Provideversion index.
D: +++ 2 TWWbash-2.05-2
D: adding "TWWbash" to Name index.
D: opening db index /var/tmp/dbrebuilddb.13284/Basenames create mode=0x102
D: adding 8 entries to Basenames index.
D: adding "System Environment/Shells" to Group index.
D: opening db index /var/tmp/dbrebuilddb.13284/Requirename create mode=0x102
D: adding "/bin/sh" to Requirename index.
D: adding "TWWbash" to Providename index.
D: opening db index /var/tmp/dbrebuilddb.13284/Dirnames create mode=0x102
D: adding 4 entries to Dirnames index.
D: opening db index /var/tmp/dbrebuilddb.13284/Requireversion create mode=0x102
D: adding "" to Requireversion index.
D: adding "2.05-2" to Provideversion index.
D: opening db index /var/tmp/dbrebuilddb.13284/Filemd5s create mode=0x102
D: adding 8 entries to Filemd5s index.
D: closed db file /var/tmp/db/packages.rpm
D: closed db index /var/tmp/dbrebuilddb.13284/Filemd5s
D: verified db index /var/tmp/dbrebuilddb.13284/Filemd5s
D: closed db index /var/tmp/dbrebuilddb.13284/Provideversion
D: verified db index /var/tmp/dbrebuilddb.13284/Provideversion
D: closed db index /var/tmp/dbrebuilddb.13284/Requireversion
D: verified db index /var/tmp/dbrebuilddb.13284/Requireversion
D: closed db index /var/tmp/dbrebuilddb.13284/Dirnames
D: verified db index /var/tmp/dbrebuilddb.13284/Dirnames
D: closed db index /var/tmp/dbrebuilddb.13284/Providename
D: verified db index /var/tmp/dbrebuilddb.13284/Providename
D: closed db index /var/tmp/dbrebuilddb.13284/Requirename
D: verified db index /var/tmp/dbrebuilddb.13284/Requirename
D: closed db index /var/tmp/dbrebuilddb.13284/Group
D: verified db index /var/tmp/dbrebuilddb.13284/Group
D: closed db index /var/tmp/dbrebuilddb.13284/Basenames
D: verified db index /var/tmp/dbrebuilddb.13284/Basenames
D: closed db index /var/tmp/dbrebuilddb.13284/Name
D: verified db index /var/tmp/dbrebuilddb.13284/Name
D: closed db index /var/tmp/dbrebuilddb.13284/Packages
D: closed db environment /var/tmp/dbrebuilddb.13284/Packages
D: removed db environment /var/tmp/dbrebuilddb.13284/Packages
D: verified db index /var/tmp/dbrebuilddb.13284/Packages
D: removing /etc/rpm/macros.db1 after successful db3 rebuild.
D: removing directory /var/tmp/dbrebuilddb.13284
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]