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

Re: is --dbpath & --justdb & --nodeps broken?



* Jeff Johnson (jbj@redhat.com) wrote:
> On Mon, May 06, 2002 at 04:40:00PM -0400, Matthew R . MacIntyre wrote:
> > Hi,
> >
> > Am I doing something stupid here, or is this broken?
> >
> > mkdir /tmp/rpm
> > rpm --dbpath /tmp/rpm --initdb
> > rpm --dbpath /tmp/rpm -U --nodeps --justdb apache-1.3.20-16.i386.rpm
> > rpm --dbpath /tmp/rpm -qa
> >
> > This last one returns nothing, when I do all of this as a normal user.  It
> > does work as root, though.  Is this supposed to act like this?
> >
> > This is with rpm-4.0.4-7x on rh72.
> 
> Try mode (e.g. -U or --initdb) as the 1st option.

Still no luck:

mkdir /tmp/rpm
rpm --initdb --dbpath /tmp/rpm
rpm -U --nodeps --justdb --dbpath /tmp/rpm apache-1.3.20-16.i386.rpm
rpm -qa --dbpath /tmp/rpm

The 'rpm -U' command returns with status 1, indicating some sort of error.
Here's what a verbose output looks like:

[matt@dumbledore matt]$ rpm -U -vvv --nodeps --justdb --dbpath /tmp/rpm apache-1.3.20-16.i386.rpm 
D: ==============
/mnt/weasley/ftproot/pub/Linux/redhat/7.2/en/os/i386/RedHat/RPMS/apache-1.3.20-16.i386.rpm
D: Expected size:       532728 = lead(96)+sigs(149)+pad(3)+data(532480)
D:   Actual size:       532728
D: opening  db environment /tmp/rpm/Packages create:mpool
D: opening  db index       /tmp/rpm/Packages create mode=0x42
D: locked   db index       /tmp/rpm/Packages
D: opening  db index       /tmp/rpm/Name create mode=0x42
D:    added binary package [0]
D: found 0 source and 1 binary packages
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree,
depth)
D:     0    0    0    0    0  apache-1.3.20-16
D: installing binary packages
Preparing packages for installation...
D: opening  db index       /tmp/rpm/Basenames create mode=0x42
D: Expected size:       532728 = lead(96)+sigs(149)+pad(3)+data(532480)
D:   Actual size:       532728
D:   install: apache-1.3.20-16 has 191 files, test = 0
D: closed   db index       /tmp/rpm/Basenames
D: verified db index       /tmp/rpm/Basenames
D: closed   db index       /tmp/rpm/Name
D: verified db index       /tmp/rpm/Name
D: closed   db index       /tmp/rpm/Packages
D: closed   db environment /tmp/rpm/Packages
D: removed  db environment /tmp/rpm/Packages
D: verified db index       /tmp/rpm/Packages
[matt@dumbledore matt]$ 


Any other ideas?

-matt





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