Find the answer to your Linux question:
Results 1 to 2 of 2
hello, I am working on creating an RPM and I made a small mistake in the %postun script of the rpm which causes the script to fail. I installed the ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    10

    removing an RPM with bad %postun script

    hello,

    I am working on creating an RPM and I made a small mistake in the %postun script of the rpm which causes the script to fail. I installed the rpm without realizing and now when I try to erase the rpm the %postun script runs, fails, and prevents the uninstall from completing. I can't install over the old RPM with the corrected new one or I get two packages (old and new).

    so I need a way to get rid of the rpm. I don't care if it dose the proper uninstall routine, I'm just going to be reinstalling anyways. I just want a way to ensure that redhat only thinks i have the new good RPM installed. Any suggestions?

  2. #2
    Just Joined!
    Join Date
    Dec 2009
    Location
    Mid-America
    Posts
    1

    rpm --noscripts

    I doubt you still need this, but someone else might find this useful:

    Running 'rpm -e --noscripts yourPackage' should remove the rpm, although this will skip both %preun and %postun.

    But a hacker of rpm's knows how to fix any damage.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...