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

Re: rpm --root



Allen Wayne Best wrote:

On Sunday 21 September 2003 14:10, Jeff Johnson pronounced:


Allen Wayne Best wrote:


hi all:

can anyone affirm that 'rpm --root /mnt/sysimage' will do what i think the
man page is saying it will do: install the rpms in the system directories
starting at /mnt/sysimage and not in the current /.


Yes, that's --root behavior.



a rh9 installation went south, way south, after appling all the current
rh9 updates. now is get a segmentation fault when i do a chroot
/mnt/sysimage, and get same when i try to boot the system. as by one on
information, the same was happening during ( and not before) the rpm -Fuh
of the the updates.

any input is greatly appreciated. i really don't want to hose the system
worse! :)


Anaconda might be easiest. Rename /var/lib/rpm, and do minimal install,
but don't remake a file system
on your existing partitions.  Once you're booted, replace /var/lib/rpm,
and use -Va to figger what's
changed.

73 de Jeff



if i understand you correctly,


mv /var/lib/rpm /var/lib/old.rpm (the entire directory!)
install as if fresh install
install the least necessary
don't install a file system
(this part i am not following you on... could you explain a bit more??)



If you run mkfs on a partition, everything will be lost.


Not running mkfs will replace files from the minimal set of pkgs, leaving everything
else intact.


If you don't understand this, you're probably better off installing manually using --root.

That will work too, with fewer side effects and surprises.

73 de Jeff




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