Hello Thomas,

Monday, March 04, 2002, 12:16:49 PM, you textually orated:

BTG> On Mon, 2002-03-04 at 11:23, Ed Wilts wrote:
>> On Mon, Mar 04, 2002 at 10:52:24AM -0500, Burke, Thomas G. wrote:
>> > 
>> >     I downloaded the .src.rpm files, did a "rpm --rebuild foo.src.rpm",
>> > and now have foo.rpm in my /usr/src/redhat/RPMS/i386 directory.  How do
BTG> I
>> > tell rpm to install/upgrade/freshen these files over the versions that
BTG> are
>> > currently residing on my box?  (i'm going from the standard 386 binaries
BTG> to
>> > recompiled for PII binaries).
>> 
>> This is done the same way you install/upgrade/freshen any other rpm.  Just
BTG> cd
>> to the /usr/src/redhat/RPMS/i386 directory and do an rpm -F or rpm -U.
>> 
>> If the version does not appear to be newer than what was installed, you
BTG> may
>> need to either --force the upgrade, or do an rpm -e on your existing
BTG> version
>> and then an rpm -i on the new version.

I'm guessing this is the situation...

You got package foo-2.3-1 installed on your system.
You downloaded foo-2.3-1.src.rpm to recompile.
You are attempting to install foo-2.3-1.i686.rpm.

Why this wont work right away is that RPM can't distinguish the packages
from each other. I don't believe that --force can override that. You have
two options...

1. Use the --replacepkgs flag. This will tell it to install a package that
is already installed. This is not preferred because it means that any system
you wish to upgrade this way you will do the same thing.

2. Fix the RPM you made. What you should do is update the "release" flag in
the spec file. This will make sure that RPM will know that this package is
different from the one you may already have installed. Then just rebuild the
RPM and go.

RPM can not distinguish based on the arch flag. It can on the version and
release. Since you didn't actually change the version, the release flag will
tell RPM that this is a newer/different version.

Hope that helps.

Have fun,
-- 
_________________________________________________________________
 Brian Ashe                     CTO
 [EMAIL PROTECTED]              Dee-Web Software Services, LLC.
 http://www.dee-web.com/
-----------------------------------------------------------------



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to