[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] dealing with "ghost" PKG files



Ever been in the middle of a PKG file install, had something interrupt it,
and been unable to update it again? I had that happen to me today and, as
rare as it seems since I wasn't able to find anything on the list, wound up
figuring a quick hack to get it to work ^_^

What winds up happening is that there is an RPM file installed on the
machine that is part of the PKG file. You can use tar xvfz <package name> to
view the list of RPMs the PKG has.

Type in rpm -q -a > rpms; this will create a file named "rpms" - you can
grep against this file using the names of the RPM files when using tar xvfz.
Don't forget to remove the ".i386.rpm" extension when running the name of
the file through grep.

If any of the files in the PKG show up then that's what's causing your
problem. vi cobalt_upgrade (/usr/local/sbin/cobalt_upgrade) and find the if
loop that blocks around error number 4015 (should be small). It will also
have the error message which says that it can't proceed because the pkg is
already installed. Comment it out AND the if loop right below it. Save the
file, and re-run cobalt_upgrade. Bingo!

p.s. - you can change the RPM command in the if loop that installes the
RPM's to rpm -rf -force to force any files when needed.

Jonothon Ortiz
Vice President
Xnext, Inc.
Ph: 863.298.9698
or  888.84.XNEXT
http://www.Xnext.com
mailto:jon@xxxxxxxxx