<font color="#663366"><font face="trebuchet ms,sans-serif">Hello Everyone,<br><br>I'm troubleshooting a problem with a system here.<br>I have an rpm that won't uninstall and won't install.<br>It's a module that needs to be compiled for the current<br>
kernel.  The one that exists is for an earlier kernel.<br><br>Servername:/software/lintape # rpm -Uvh /usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm <br>Preparing...                ########################################### [100%]<br>
    package lin_tape-1.50.0-1.x86_64 is already installed<br></font></font><font color="#663366"><font face="trebuchet ms,sans-serif"><br>

Servername</font></font><font color="#663366"><font face="trebuchet ms,sans-serif">:/software/lintape # rpm -e /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 not installed<br>
</font></font><font color="#663366"><font face="trebuchet ms,sans-serif"><br>

Servername</font></font><font color="#663366"><font face="trebuchet ms,sans-serif">:/software/lintape # rpm -Uvh --force /usr/src/packages/RPMS/x86_64/lin_tape-1.50.0-1.x86_64.rpm <br>Preparing...                ########################################### [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>Any suggestions would be appreciated!<br><br>Thanks, Oksana<br><br></font></font><font color="#663366"><font face="trebuchet ms,sans-serif"><br>=================<br><br>This is how it is to be installed:</font></font><font color="#663366"><font face="trebuchet ms,sans-serif"><br>
<br></font></font><p><b>Steps to install lin_tape:</b> </p><br>
1): Download lin_tape source code:<br><br>
For example: lin_tape-1.40.0-1.src.rpm<br><br>
2): Use the <code>rpmbuild</code>  command to build the source code.<br><ul><code>#rpmbuild --rebuild  lin_tape-1.40.0-1.src.rpm </code><br></ul>
The output of the command is very large.  Near the end, the command output looks like the following example:
<ul><br><code># rpmbuild --rebuildlin_tape-1.40.0-1.src.rpm |tee lin-install.log Installing lin_tape-1.40.0-1.src.rpm<br> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.53402<br>
....<br> Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/lin_tape-1.40.0-1-root-root<br> Wrote: /usr/src/packages/RPMS/x86_64/lin_tape-1.40.0-1.x86_64.rpm<br> Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.91513<br>
 ...<br> + exit 0<br> </code></ul> In this output, notice the line:  <ul><code>Wrote: /usr/src/packages/RPMS/x86_64/lin_tape-1.40.0-1.x86_64.rpm</code></ul><br>
The file that is named on this line,  /usr/src/packages/RPMS/x86_64/lin_tape-1.40.0-1.x86_64.rpm, is the build package.<br><br>
3): Run the following command to install the build package:<br><br><code>rpm -iv /usr/src/packages/RPMS/x86_64/lin_tape-1.40.0-1.x86_64.rpm</code><br><br><font color="#663366"><font face="trebuchet ms,sans-serif"><br><br>
<br></font></font>