On Wed, 22 Nov 2000, Paul Lussier wrote:
> Maybe I'm missing something intuitively obvious here, but how does one
> upgrade rpm *with* rpm?
This is a classic chicken-and-egg problem. What you need to do is obtain
RPM V4 in a V3 package format, to "bootstrap" your installed copy of RPM to
V4. You can get such a package from
ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/
Look for packages with "6x" in their file name.
> Any clues? Why am I still running RH again? I really need to switch to
> debian at home!
No comment. ;-)
On Wed, 22 Nov 2000, Ken Ambrose wrote:
> 1) BE SURE TO KEEP A COPY OF YOUR RPM 3.0! You may very well need it.
Backups are *always* a good idea. :-)
> What usually happens to me (after I get through what you've been through,
> below) is that I get 4.0 installed... and find that it now keeps a
> seperate database.
I have seen the upgrade from V3 to V4 fail in a weird way. (I've also seen
it work, not that that helps you much.) Immediately after you have installed
RPM V4, do an "rpm -qa". If it says you do not have any packages installed,
then the database upgrade failed. If so, take a look at the "/var/lib/rpm"
directory. You should see a bunch of files that begin with lower-case letters
and end in "*.rpm". Those are the old V3 database files. You should also see
a bunch of files that begin with upper-case letters, with no special ending.
Those are the new V4 database files. Delete (or move) the new V4 files.
Then run "rpm --rebuilddb". After a good deal of churning, you should now
have a populated V4 database. The old V3 files can be deleted (or archived,
or ignored, or whatever) at that point.
Note that if you have gone ahead and ignored the problem, and installed a
bunch of new packages into the V4 database, you are kind of screwed. There is
no way (AFAIK) to "merge" a V3 database into a V4 database.
--
Ben Scott <[EMAIL PROTECTED]>
Net Technologies, Inc. <http://www.ntisys.com>
Voice: (800)905-3049 x18 Fax: (978)499-7839
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************