Re: wmic binary has not been installed.
Posted: Thu Jul 09, 2020 5:38 pm
Deleted the symlink, tried to delete with rpm:scottwilkerson wrote:I would remove that symlink you havethen uninstall and reinstall the RPMCode: Select all
rm -f /usr/bin/wmic
root@server):/tmp/rpm $ rpm -e nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
error: package nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm is not installed
Then I tried remove with yum:
root@server:/rpm $ yum remove nagiosxi-wmic-5.5.7
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-wmic.x86_64 0:5.5.7-1.el7 will be erased
--> Processing Dependency: nagiosxi-wmic(x86-64) = 5.5.7-1.el7 for package: nagiosxi-5.5.7-1.el7.x86_64
--> Running transaction check
---> Package nagiosxi.x86_64 0:5.5.7-1.el7 will be erased
--> Finished Dependency Resolution
Looks like it removes the NagiosXI also... see package marked red. Cancelled the uninstall.
Tried a reinstall after I deleted the symlink, it only created the symlink again.