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

problem with repackaging of relocated RPM



Hello,
I'm failing to re-install a repackaged RPM, which I've relcoted at
installation:

Here's an attempt I've made:

First, install a base package


91 [root/LibertyBell]~ador # rpm -Uvh --relocate
/users/ador/temp/=$PWD/installation ADOR_TEST-1.0-T0.i386.rpm
Preparing...                ###########################################
[100%]
   1:ADOR_TEST              ###########################################
[100%]
92 [root/LibertyBell]~ador # cat installation/file1
this is orig file1
93 [root/LibertyBell]~ador # echo modified >> !*
echo modified >> installation/file1
94 [root/LibertyBell]~ador # cat installation/file1
this is orig file1
modified


Here I'm upgrading. file1's new version differs from the current one.
I'm repackaging.


95 [root/LibertyBell]~ador # rpm -Uvh --repackage --relocate
/users/ador/temp/=$PWD/installation ADOR_TEST-1.1-T0.i386.rpm
Preparing...                ###########################################
[100%]
Repackaging...              
   1:ADOR_TEST              ###########################################
[100%]
Upgrading...                
   1:ADOR_TEST              warning: /home/ador/installation/file1 saved
as /home/ador/installation/file1.rpmsave
########################################### [100%]
96 [root/LibertyBell]~ador # cat installation/file1

this is new file1


Just to verify the package was created...


98 [root/LibertyBell]~ador # rpm -qpl
repackage/ADOR_TEST-1.0-T0.i386.rpm --nodigest
/users/ador/temp/dir
/users/ador/temp/dir/file2
/users/ador/temp/file1


..and it fails installation


99 [root/LibertyBell]~ador # rpm -Uvh --oldpackage --relocate
/users/ador/temp/=$PWD/installation repackage/ADOR_TEST-1.0-T0.i386.rpm 
error: repackage/ADOR_TEST-1.0-T0.i386.rpm: MD5 digest: BAD
Expected(ce9f6c79bbf1649976b7935cc9a5eb44) !=
(911976da2eac074ab663c9169ac75b84)
error: repackage/ADOR_TEST-1.0-T0.i386.rpm cannot be installed


..and also when md5 chcksum is disabled


100 [root/LibertyBell]~ador # rpm -Uvh --oldpackage --relocate
/users/ador/temp/=$PWD/installation repackage/ADOR_TEST-1.0-T0.i386.rpm
--nodigest
Preparing...                ###########################################
[100%]
   1:ADOR_TEST              ###########################################
[100%]
error: unpacking of archive failed on file ./home/ador/installation/dir:
cpio: Archive file not in header
101 [root/LibertyBell]~ador # cat installation/file1
this is new file1


Even a plain install (without --oldpackage) doesn't work.

I've read /www.redhat.com/archives/rpm-list/2003-February/msg00080.html,
titled "RPM Repackage and --prefix=". Does this mean that a package
installed with --relocate, and subsequently repackaged cannot be
installed?

10x,
Amit


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