<font color="#663366"><font face="trebuchet ms,sans-serif"><br></font></font><br><div class="gmail_quote">On 13 May 2011 11:30, Chris Frey <span dir="ltr"><<a href="mailto:cdfrey@foursquare.net">cdfrey@foursquare.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, May 13, 2011 at 10:30:37AM -0400, Oksana Goertzen wrote:<br>
> Servername:/software/lintape # rpm -e<br>
> /usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm<br>
> error: package /usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm is<br>
> not installed<br>
<br>
</div>I usually erase using just the name that shows up in a 'rpm -qa'<br>
<br>
        rpm -qa |grep lin_tape<br>
<br>
So maybe:<br>
<br>
        rpm --erase lin_tape<br>
<br>
This might give the same error as below, though.<br>
<div class="im"><br>
<br>
> Servername:/software/lintape # rpm -Uvh --force<br>
> /usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm<br>
> Preparing...                ###########################################<br>
> [100%]<br>
> Shutting down lin_tape: lin_taped is not running!<br>
><br>
> ERROR: Module lin_tape does not exist in /proc/modules<br>
> error: %pre(lin_tape-1.50.0-1.x86_64) scriptlet failed, exit status 1<br>
> error:   install: %pre scriptlet failed (2), skipping lin_tape-1.50.0-1<br>
<br>
</div>If you can find out what file it is expecting to see under /proc/modules,<br>
you can place a dummy file there just for the packaging process.<br>
<br>
You can use rpm2cpio to extract the contents of the rpm file, and<br>
then look at the script to see what it is trying to do and failing at.<br>
<br>
- Chris<br>
<br>
<br></blockquote><div><br>Here's the results I get from the above:<br><br>Servername:~ # rpm -qa |grep lin_tape<br>lin_taped-1.50.0-1<br><br>
Servername:~ # rpm --erase lin_tape<br>error: package lin_tape is not installed<br></div></div><br>I think I may have gotten it to remove it though with<br>rpm -e --nodeps lin_tape<br><br>Servername:# uname -r<br>2.6.32.36-0.5-default<br>
<br>Servername:# rpm -qs lin_tape<br>normal        /etc/init.d/lin_tape<br>normal        /lib/modules/2.6.32.36-0.5-default/kernel/drivers/scsi/lin_tape.ko<br>normal        /usr/share/doc/packages/lin_tape<br>normal        /usr/share/doc/packages/lin_tape/COPYING<br>
normal        /usr/share/doc/packages/lin_tape/COPYING.LIB<br>normal        /usr/share/doc/packages/lin_tape/lin_tape_359X.ReadMe<br>normal        /usr/share/doc/packages/lin_tape/lin_tape_Ultrium.ReadMe<br><br>Servername:# lin_taped status<br>
lin_taped is running, pid 26737<br><br>:)  Oksana<br><br><br>