Issue
i'd have a problem: can't install package "TD-agent". Cause there are deadlock:
If u try to install (sudo rpm -ivh /my/pass/td-agent-3.2.1-0.el7.x86_64.rpm
) - u have an error:
Preparing... ################################# [100%]
package td-agent-3.2.1-0.el7.x86_64 is already installed
If u try to uninstall it (rpm -e td-agent
) - have another error:
Stopping td-agent ...
error reading information on service td-agent: No such file or directory
error: %preun(td-agent-3.2.1-0.el7.x86_64) scriptlet failed, exit status 1
error: td-agent-3.2.1-0.el7.x86_64: erase failed
So, i can't do anything: no install, no uninstall...
Please, answer: how to manualy uninstall it? What DIRs RPM use to install packages?
Solution
- you can force
rpm
to reinstall the package with the same number using:rpm -ivh /my/pass/td-agent-3.2.1-0.el7.x86_64.rpm --replacepkgs
- You can force the uninstallation by telling rpm not to run the scripts:
rpm -e td-agent --noscripts
Answered By - Chris Maes Answer Checked By - Mary Flores (WPSolving Volunteer)