Re: installing rpm packages with other root

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

 



Tarek Ghaleb wrote:

* On [30 Aug 2005 03:19 +0300] <turmeric2005@xxxxxxxx> wrote:

rpm --root=${m} --initdb
rpm --root=${m} *rpm

I just noticed the above line doesn't have an -i as well!

try: rpm -ivh --root=${m} *rpm

I've done this at least a couple of times this week and it works using
rpm version 4.4.2

 export m=/mnt/mynewsystemroot
 echo $m # to check

 Then as root:
 install -d ${m}/var/lib/rpm
 rpm --root=${m} --initdb
 rpm -ivh --root=${m} *rpm

 and

 rpm -qa --root=${m} *rpm

I think this should work.

Tarek.

It installs now but still with some errors I don't like to see

error: %post(gzip-1.3.5-6) scriptlet failed, exit status 255
rpmdb: /var/lib/rpm/Sigmd5: No such file or directory
rpmdb: /var/lib/rpm/Sigmd5: cannot sync: No such file or directory
error: db4 error(2) from dbenv->close: No such file or directory
<jonas@kangoeroe pwd="rpms"/> sudo rpm -Uv /usr/src/redhat/RPMS/i386/gzip-1.3.5-6.i386.rpm --root /mnt/platypus/ --nodeps
Preparing packages for installation...
       package gzip-1.3.5-6 is already installed
<jonas@kangoeroe pwd="rpms"/> sudo rpm -qa --root /mnt/platypus/
gzip-1.3.5-6
<jonas@kangoeroe pwd="rpms"/> sudo rpm -e gzip --root /mnt/platypus/
error: %preun(gzip-1.3.5-6) scriptlet failed, exit status 255
<jonas@kangoeroe pwd="rpms"/> sudo rpm -qa --root /mnt/platypus/
gzip-1.3.5-6
<jonas@kangoeroe pwd="rpms"/> sudo rpm -e gzip --root /mnt/platypus/ --noscripts
rpmdb: /var/lib/rpm/Sigmd5: No such file or directory
rpmdb: /var/lib/rpm/Sigmd5: cannot sync: No such file or directory
error: db4 error(2) from dbenv->close: No such file or directory
<jonas@kangoeroe pwd="rpms"/> sudo rpm -qa --root /mnt/platypus/
<jonas@kangoeroe pwd="rpms"/> sudo rpm -Uv /usr/src/redhat/RPMS/i386/gzip-1.3.5-6.i386.rpm --root /mnt/platypus/ --nodeps
Preparing packages for installation...
gzip-1.3.5-6
error: %post(gzip-1.3.5-6) scriptlet failed, exit status 255
rpmdb: /var/lib/rpm/Sigmd5: No such file or directory
rpmdb: /var/lib/rpm/Sigmd5: cannot sync: No such file or directory
error: db4 error(2) from dbenv->close: No such file or directory

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux