rpm -U options

Valery Reznic valery_reznic at yahoo.com
Mon Nov 2 11:22:57 UTC 2009

I suggest chroot to the inactive partition and run rpm here
(of course you should make rpms available from the chroot-ed environments)


--- On Mon, 11/2/09, shruthi srinivasalu <shruthisrinivasalu at yahoo.co.in> wrote:

> From: shruthi srinivasalu <shruthisrinivasalu at yahoo.co.in>
> Subject: rpm -U options
> To: rpm-list at lists.rpm.org
> Date: Monday, November 2, 2009, 1:06 PM
> Hi,
> I have a setup wherein I have configured my harddisk
> into 2 partitions(say sda1 and sda2) each being imaged
> with SLES10sp2 versions. Each of these partititons have a
> corresponding boot partition which will be read by the MBR
> to boot from.
> In such an environment, I am trying to use "rpm
> -U" command to upgrade one of the partition(say sda2,
> lets call it as inactive) from the other partition(say sda1,
> lets call this active). Since each partition has its own
> rpmdatabase, I used --relocate and --dbpath options along
> with rpm -U command, something like:
> rpm -U <rpm> --relocate <mount point of
> sda2> --dbpath <mount point of
> sda/var/lib/rpm>
> Although the command works(the inactive partiton gets
> upgraded), I see that active partition's rpm files are
> getting DELETED. 
> This happens only when both the partitions are on the
> same versions. If they are on different versions, I dont see
> this issue. 
> Can anyone point me to the right set of upgrade
> options to be used in this usecase?
> Thanks,
> Shruthi
>        Keep up with people you care about with
> Yahoo! India Mail. Learn
> how.
> -----Inline Attachment Follows-----
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list


More information about the Rpm-list mailing list