[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Upgrading from 3.0.6 to 4.0.4



On Wed, May 15, 2002 at 02:52:18PM -0400, Jeff Johnson wrote:
> On Wed, May 15, 2002 at 01:26:30PM -0500, Albert Chin wrote:
> > > 
> > > Presumably you did "make install".
> > 
> > Yes, but our installation is not "typical".
> 
> But you will still need to convert from db1 -> db3.

Agreed.

> > > 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.
> 
> I can't tell much from the log.
> 
> If you have both Packages and packages.rpm in /var/tmp/db, then
> you are using both db1 and db3 databases with different versions of
> rpm, and you will need to sort out which is which in order to
> upgrade from rpm-3.0.6 to rpm-4.0.4.

When we start, we only have RPM v3 files in /var/tmp/db:
  $ ls /var/tmp/db
  conflictsindex.rpm  groupindex.rpm      packages.rpm      requiredby.rpm
  fileindex.rpm       nameindex.rpm       providesindex.rpm triggerindex.rpm

After --rebuilddb we have only RPM v4 files in /var/tmp/db:
  $ ls /var/tmp/db
  Basenames    Filemd5s     Name         Providename     Requirename
  Dirnames     Group        Packages     Provideversion  Requireversion

> The above is the mechanism that is used in the linux rpm packages, with
> /etc/rpm/macros.db1 being created on the fly if /var/lib/rpm/packages.rpm
> (presumably db1 format is what's currently in use) exists, and an immediate
> conversion from db1 -> db3 using --rebuilddb is strongly encouraged.

Is --rebuilddb suppose to create Triggername? Odd that it creates the
other files fine.

> No the --rebuilddb cannot be automated, rebuilding on top of an active
> database is a *major* effort.

We're trying to upgrade from an inactive database.

-- 
albert chin (china@thewrittenword.com)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []