on behalf of D. Purcell....
From: Daniel Purcell <dpurcell@xxxxxxxxxxxxxxxxx>
To: HanSon Tieu <hanson_tieu@xxxxxxxxxxx>
Subject: Re: post/preun scripts don't work
Date: Thu, 24 Mar 2005 08:43:22 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
HanSon,
I had the same problem myself last week! I don't know if this will
solve your problem or not, but this is what I was trying to do and how I
fixed my problem:
I had a target system that I wanted to install RPM to. I put another
hard drive into my computer and formatted it, and mounted it as
/mnt/new. I wanted to install a bunch of RPMs to my /mnt/new
mountpoint. My command looked like this:
rpm -ivh --root=/mnt/new package.i686.rpm
and I'd get error messages on packages that have a %pre tag in the spec
file. I read the rpm source code and learned that when you specify
- --root, it chroot's to that directory and performs the scripts there.
RPM was trying to run /bin/sh, or in other words, /mnt/new/bin/sh, but I
hadn't installed my /bin/sh package yet! That's why it was failing.
I then installed by bash (bin/sh) package, and the same error happened
again. I realized that I needed to install glibc, libreadline, and
ncurses also in order to get bash to run correctly. After I made sure
those packages were installed first, everything worked like a charm.
I hope this helps.
BTW, could you post this message on the mailing list? I unsubscribed by
accident and can't get to the mailing list today.
- -Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCQuAaA3S6iBF0EygRAgP3AJ9PQGFOm+N8SAEfM3OQ5ivNloMQOQCgr+IV
YKtaZ0uphLOxFs6OmEo6w0I=
=SS4l
-----END PGP SIGNATURE-----
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list