Changes between Version 1 and Version 2 of RpmHowToEndUsers


Ignore:
Timestamp:
Jan 5, 2011, 11:59:51 AM (13 years ago)
Author:
Yuri Dario
Comment:

Notes about upgrade from 2010 builds.

Legend:

Unmodified
Added
Removed
Modified
  • RpmHowToEndUsers

    v1 v2  
    22[[PageOutline]]
    33Basic informations for end users about installing, upgrading and removing packages with RPM and YUM.
     4
     5== Note about upgrading from 2010 RPM builds ==
     6Newer RPM builds are now using Berkeley DB for storing package informations, while previous builds were using SqLite 3 for this task. Since SqLite support is being phased out, RPM moved to BDB.
     7After updating you need to convert the old database to the new format: you can check this running
     8{{{
     9rpm -qa
     10}}}
     11at the command prompt; you will get a SIGSEV error or a message about wrong database format:
     12
     13{{{
     14[E:\]rpm -qa
     15rpmdb: __db_meta_setup: /@unixroot/var/lib/rpm/Packages: unexpected file type or
     16 format
     17error: cannot open Packages index using db3 - Invalid argument (22)
     18error: cannot open Packages database in /@unixroot/var/lib/rpm
     19rpmdb: __db_meta_setup: /@unixroot/var/lib/rpm/Packages: unexpected file type or
     20 format
     21error: cannot open Packages database in /@unixroot/var/lib/rpm
     22}}}
     23
     24To upgrade the database, use the following command sequence:
     25{{{
     26rpm --define '_dbapi 4' --rebuilddb
     27mv /@unixroot/var/lib/rpm /@unixroot/var/lib/rpm.bak
     28mv /@unixroot/var/lib/rpm.rebuild /@unixroot/var/lib/rpm
     29}}}
     30You can test operation running
     31{{{
     32rpm -qa
     33}}}
     34you will get the list of installed packages.
     35The older SqLite databases are now saved into mv /@unixroot/var/lib/rpm.bak, if everything is ok you can delete this directory.