I use 2 RH6.2 i386 boxes. One is a production server, the other a test machine. On the test machine, I recently upgrade to rpm-4.0.2 painlessly. Using rpm-4.0.2, I upgrade some packages including ucd-snmp-4.1.1.1-3 without any problem. I used to rebuild some packages on my test machine to install them on the production server (both are HP PIII PC). Using rpm-4.0.2 with --rebuild option on BOTH machines, I only get the option list : [fhermann@obelix test-bug-rpm]$ file * openssh-2.5.2p2-1.7.2.src.rpm: RPM v4 src i386 openssh-2.5.2p2-1.7.2 xntp3-5.93-15.src.rpm: RPM v4 src i386 xntp3-5.93-15 [fhermann@obelix test-bug-rpm]$ rpm --rebuild xntp3-5.93-15.src.rpm RPM version 4.0.2 Copyright (C) 1998-2000 - Red Hat, Inc. This program may be freely redistributed under the terms of the GNU GPL Usage: rpm {--help} rpm {--version} rpm {--initdb} [--dbpath <dir>] (snip long list of options) [fhermann@obelix test-bug-rpm]$ I try to use the "--target" option, withour any result. if I install the SRC package and try to build it using the -b options, the build work correctly If I downgrade to rpm3, I can rebuild as usual.
You need to install the rpm-build package.