RPM Community Forums

Mailing List Message of <rpm-users>

rpmdb not updated with installed packages

From: bishwajit goswami <bswjt.callmebish@gmail.com>
Date: Thu 12 Dec 2013 - 18:34:11 CET
Message-ID: <CAE=__Bh+Lc_tU-JrarpkBSjob9PBHF6WGy9-=aT8HWiw7sSK4g@mail.gmail.com>
Hi,

I have a partition up and running with a set of RPMs. Now I want to prepare
a backup partition with the same set of rpms. The installation goes through
properly and the corresponding files are available on the alternate
partition.
The problem comes when querying the rpmdb of the created partition. The
rpmdb do not seem to be updated with all the packages which were installed.
A sample snapshot is below:
[sysadmin-vm:0_RP0:/mnt/rpm/calvados]$ rpm -ivh --nodeps --root /partprep
ncs6k-sysadmin-boot.*
Preparing...
##################################################
ncs6k-sysadmin-boot.sc
##################################################
ncs6k-sysadmin-boot.all
##################################################
ncs6k-sysadmin-boot.lc
##################################################
ncs6k-sysadmin-boot.rp
##################################################
[sysadmin-vm:0_RP0:/mnt/rpm/calvados]$ rpm -qa --root /partprep
ncs6k-sysadmin-boot.rp-5.2.0.01I-Default.x86_64
ncs6k-sysadmin-boot.lc-5.2.0.01I-Default.x86_64
[sysadmin-vm:0_RP0:/mnt/rpm/calvados]$

When I check the double verbose output, I simply see that a few packages
got remove from addition to corresponding rpmdb files.
D: removing "ncs6k-sysadmin-boot.sc" from Name index.
D: removing 19 entries from Basenames index.
D: removing
"Calvados/ncs6k-sysadmin-boot/ncs6k-sysadmin/sc/Default/mandatory/PII

Any suggestion would be helpful in this regard. If needed, I could attach
the verbose output.
Also, the rpmdb do not seem to be corrupt since rpm verification runs
smoothly.


-- 
Bishwajit Goswami
Received on Thu Dec 12 19:05:15 2013
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.