This guide explains how to resolve dpkg configuration prompts that appear during package removal and how to completely remove Imunify360 and ALT packages from a system.
1. Background
When uninstalling Imunify360 or related ALT packages, dpkg may stop and ask how to handle configuration files. This prevents the uninstallation from completing. To finish the removal safely, the maintainer’s version of configuration files should be accepted automatically.
2. Fixing dpkg Prompts Automatically
If dpkg --configure -a shows prompts such as:
Configuration file '/etc/cron.d/imunify-antivirus'
What would you like to do? (Y/I/N/O/D/Z)
Use the following command to automatically accept the package maintainer’s version:
dpkg --configure -a --force-confnew
If dependency errors remain:
apt-get -o Dpkg::Options::="--force-confnew" --fix-broken install -y
This resolves configuration issues and allows removal to continue.
3. Removing All Imunify360 and ALT Packages
After dpkg is fixed, remove all related packages:
apt-get remove --purge -y 'imunify*' 'alt-*' ai-bolit
Then clean up dependencies:
apt-get autoremove --purge -y
4. Summary
-
Resolve dpkg configuration prompts using
--force-confnew. -
Fix broken dependencies using
apt-get --fix-broken. -
Remove Imunify360, ALT, and related packages using pattern matching.
-
Clean up unused dependencies.
Following these steps ensures a clean and complete removal of all Imunify360 and ALT components.
