LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2013, 07:29 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Rep: Reputation: 33
[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?

Last edited by thomas2004ch; 12-04-2013 at 07:31 AM.
 
Old 12-04-2013, 01:24 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by thomas2004ch View Post
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Yum erase/remove and uninstall rpm files dailyoliver Linux - Newbie 6 02-14-2012 11:40 AM
remove rpm files using yum HarryBoy Linux - Newbie 4 11-10-2011 10:07 PM
installed apache from source, didn't remove rpm, updated rpm causes problems leftPeg Linux - Newbie 5 06-06-2007 09:20 PM
yum remove rpm --> how to reinstall rpm npubudu Linux - Software 5 01-25-2007 08:08 AM
rpm -e & yum -remove. Easy questions. rickh Fedora 10 12-26-2005 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration