-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ralph Shumaker wrote:
[snip r.e. redirecting rpm with --root] > If I'm understanding correctly, "rpm --root <directory> -i > some-package.rpm" causes the rpm install of some-package.rpm to consider > <directory> to be / as far as it is concerned and all install operations > take place within that root jail. And that includes creating a new rpm > database within that jail. AFAIK, that's right. > I just tried it. But "apt" still fails dependencies: > > # rpm --test -hvi ./apt-0.5.4cnc9-1cl.i386.rpm > warning: ./apt-0.5.4cnc9-1cl.i386.rpm: V3 DSA signature: NOKEY, key ID > 92a38df6 > error: Failed dependencies: > librpm.so.0 is needed by apt-0.5.4cnc9-1cl probably have to specify --relocate /=target_dir as well, sorry forgot. In addition, the old packages will need all the old libraries, so you'll have to also add --nodeps, and --noscripts would probably also be a very good idea as well. e.g. I tried: > rpm --root /home/dlooney/install --relocate /=/home/dlooney/install - --nodeps -ivh /usr/local/src/skype-0.90.0.4-1.i386.rpm Preparing... ########################################### [100%] 1:skype ########################################### [100%] RPM then wrote the database and all files under install as root. > find install -print install install/var install/var/lib install/var/lib/rpm install/var/lib/rpm/Triggername install/var/lib/rpm/Name install/var/lib/rpm/Filemd5s install/var/lib/rpm/Group install/var/lib/rpm/Requireversion install/var/lib/rpm/Sigmd5 install/var/lib/rpm/Installtid install/var/lib/rpm/Pubkeys install/var/lib/rpm/Conflictname install/var/lib/rpm/Basenames install/var/lib/rpm/Requirename install/var/lib/rpm/Providename install/var/lib/rpm/Packages install/var/lib/rpm/Provideversion install/var/lib/rpm/Sha1header install/var/lib/rpm/Dirnames install/usr install/usr/bin install/usr/bin/skype install/usr/share install/usr/share/skype install/usr/share/skype/call_in.wav install/usr/share/applications install/usr/share/applications/skype.desktop install/usr/share/pixmaps install/usr/share/pixmaps/skype.png Dave Looney - -- Therapy helps, but screaming obscenities is cheaper. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDm4QYZnDUcKSydkURAtAzAJ0QH2huvrAIorBYwODYULRky0aZvwCgkso/ SHyXsJ6Lp33ZZ4qRccfe89A= =DND5 -----END PGP SIGNATURE----- -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
