LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-12-2006, 07:56 PM   #1
ajspliffs
LQ Newbie
 
Registered: Jan 2004
Location: Canada
Distribution: CentOS
Posts: 11

Rep: Reputation: 0
Forcing YUM to reinstall software


I corrupted my syslog-ng installation so I attempted to uninstall it to then reinstall it however YUM seems unable to remove it from its db.

[root@linux Alex]# yum remove syslog-ng
....
Running Transaction
error reading information on service syslog-ng: No such file or directory
error: %preun(syslog-ng-1.6.9-1.el4.kb.i386) scriptlet failed, exit status 1

Removed: syslog-ng.i386 0:1.6.9-1.el4.kb
Complete!

So I manually remove syslog-ng and then tried to reinstall syslog-ng through YUM and it won't install because it believes it is already installed.

Can someone tell me how I can remove syslog-ng from YUMs db so I can have a clean installation.
 
Old 03-12-2006, 09:37 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yum uses rpm under the covers, so:

rpm -e syslog-ng

However, I suspect that the messages are actually from rpm, so an rpm database rebuild might be required. If so (as root):

1. rm -f /var/lib/rpm/__db*
2. tar czvf /root/rpmdb.tar.gz /var/lib/rpm
3. rpm -vv --rebuilddb

If the rebuild goes well, you can

rm -f /root/rpmdb.tar.gz
 
Old 03-13-2006, 05:24 AM   #3
ajspliffs
LQ Newbie
 
Registered: Jan 2004
Location: Canada
Distribution: CentOS
Posts: 11

Original Poster
Rep: Reputation: 0
RPM and YUM still think it is installed

Thank you for your reponse. I had run the first command and received this error:

[root@linux ~]# rpm -e syslog-ng
error reading information on service syslog-ng: No such file or directory
error: %preun(syslog-ng-1.6.9-1.el4.kb.i386) scriptlet failed, exit status 1

This error was similar to the YUM error when trying to remove the software.

I used your syntax to rebuild the db however even after that, I received the same msg from yum when trying to reinstall syslog with the yum install syslog-ng command.

I have searched high and low for syslog-ng's presents on the box and have made sure it has been removed. Only in this database does it reside and give problems.



is there anything else I can try?
 
Old 03-13-2006, 05:26 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Code:
#rpm -e --noscripts syslog-ng
 
Old 03-13-2006, 05:38 AM   #5
ajspliffs
LQ Newbie
 
Registered: Jan 2004
Location: Canada
Distribution: CentOS
Posts: 11

Original Poster
Rep: Reputation: 0
It worked

Thanks!

--noscript worked perfect for me.

Thanks guys!!!
 
  


Reply



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
LXer: Open source forcing shift in software buying LXer Syndicated Linux News 0 02-17-2006 02:01 AM
Tried to YUM remove GZIP and reinstall, Kernel Panics sagehealth Fedora 3 01-06-2006 07:06 AM
Reinstall YUM hypnotiks Linux - Newbie 1 08-27-2005 12:30 PM
How to reInstall a software thuan1975 Linux - Software 2 07-28-2005 12:43 AM
Can YUM Reinstall PHP? stefaandk Fedora 3 06-27-2005 07:23 PM

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

All times are GMT -5. The time now is 09:30 AM.

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