Skip to content

How to install rpm package in rescue mode

July 6, 2011

It happens sometimes that your .rpm based Linux distribution is not working as expected. Linux boxes fails as well :), and after debugging, you find out that particular package ( let say abc.rmp ) is either corrupted/deleted from your system.

Below is one line step, how to install rpm package in rescue mode.

= boot machine to rescue mode

= find location, and how is CDrom recognized by system ( eg. /dev/hdc )

= mount CDrom to some temporary directory

# mkdir cdtepm

# mount /dev/hdc cdtemp

= Find a package you want to install, it is usually in “Server” directory in directory where you mount your CD

First execute it in test mode

# rpm -ivh –test –force –noscripts –root=/mnt/sysimage abc.rpm

if there are not errors generated, execute it for real, so remove –test

# rpm -ivh –force –noscripts –root=/mnt/sysimage abc.rpm

Please read

# man rpm

for more info about options above used.

About these ads

From → Linux, Red Hat

One Comment
  1. Thank you!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: