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.

Fixed most of my problems, still got one more problem
this is part of the output after running -ivh --root

rpmdb: /var/lib/rpm/Triggername: No such file or directory
rpmdb: /var/lib/rpm/Triggername: 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