LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [yum] Can not remove the installed RPM (https://www.linuxquestions.org/questions/linux-software-2/%5Byum%5D-can-not-remove-the-installed-rpm-4175486818/)

thomas2004ch 12-04-2013 07:29 AM

[yum] Can not remove the installed RPM
 
Hi,

I wrote a RPM and use the yum localinstall myrpm to install it successfully. But by uninstall with yum remove myrpm I got error as follow
Code:

/var/tmp/rpm-tmp.62401: line 40: syntax error: unexpected end of file
Error in PREUN scriptlet in rpm package t

I know there is an error in my spec file. But the problem is, I can't remove the RPM anymore. Thouhg I delete all the files and directories manually, but as I run 'yum info myrpm' I can get the infomration. This means the installed RPM is not removed clearly.

Any idea?

unSpawn 12-04-2013 01:24 PM

Quote:

Originally Posted by thomas2004ch (Post 5075212)
Any idea?

Next time try 'rpm -e --nopreun [packagename]'. Since you already deleted the files you only have to sync the RPMDB with 'rpm -e --justdb [packagename]'. And please test your scripts better.


All times are GMT -5. The time now is 07:29 AM.