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

Re: Installing RPMs without booting normally



In regard to: Re: Installing RPMs without booting normally, Jesse Merriman...:

>Hi,
>
>Nope, this doesn't work. I have no /mnt/sysimage or /mnt/mnt/sysimage
>(since when you choose "mount exististing partitions under /mnt" in
>Mandrake's rescue mode, my old / is under /mnt). Still any combination
>of things I try give the same 2 errors as before:
>
>error: cannot open Packages index using db3 - No such file or directory (2)
>error: cannot open Packages database in /var/lib/rpm

James gave you the correct procedure, you just need to adapt it to your
situation.  Since your old / is mounted at /mnt rather than /mnt/sysimage,
you'll want to get (cp) the rpm you're trying to install some place under
/mnt, probably /mnt/tmp.

For each of the partitions listed in /mnt/etc/fstab, you'll need to get
them mounted in the right spot under /mnt.  For example, if you have /usr
and /var as separate partitions, you'll need to

	mount /dev/<h or s>d<whatever> /mnt/usr
	mount /dev/<h or s>d<whatever> /mnt/var

You fill in the device files based on what they are in /mnt/etc/fstab.
If the device files aren't listed (you're mounting by LABEL=) you need
to use `tune2fs -l /dev/<h or s>d<whatever>' for each and every partition
you have, until you find the one that corresponds to the right label, and
then mount it in the right spot under /mnt.

Once you have the necessary partitions mounted, so that your entire system
is under /mnt in the right places, you

	chroot /mnt

and then install/upgrade the RPM that's sitting in your new /tmp

	rpm -Uvh /tmp/your-rpm.rpm

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164




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