regarding rpm restore

Helo,

when I use

rpm --upgrade packagename

It will upgrade the package name.

now I want to restore the original package name
is there any way so that I can restore the original package? using rpm command

Regards,
Amit

In this case, you will have to uninstall the upgraded package. Use the command:

rpm -e <package-name>

Then query the package you want to install:Use the command:

rpm-q <orig_package-name>

And then install the package you desire.

Helo thx for replying me.

I have following package installed

rpm -qa |grep ADMIN

It will give the following package installed:

ADMIN-4.0.0.1

Now I will upgrade the ADMIN package using the following command.

rpm --upgrade ADMIN-4.1.0.1

It will upgrade the ADMIN packagge to ADMIN-4.1.0.1

Now I want that when I uninstall the ADMIN-4.1.0.1 then I got the oirginal
package ADMIN-4.0.0.1

rpm --erase ADMIN-4.1.0.1

now is there anyway(using rpm command or whatever) so that I got the original package when i uninstalled the upgraded package name.

Regards,
Amit