Fix dpkg Prompts and Remove Imunify360 & ALT Packages

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

  1. Resolve dpkg configuration prompts using --force-confnew.

  2. Fix broken dependencies using apt-get --fix-broken.

  3. Remove Imunify360, ALT, and related packages using pattern matching.

  4. Clean up unused dependencies.

Following these steps ensures a clean and complete removal of all Imunify360 and ALT components.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install ImunifyAV free malware scanner?

To install ImunifyAV FREE antivirus for cPanel and DirectAdmin hosting panels, open an SSH...

How to install ModSec Rulesets of Imunify360?

This section includes specific settings for each hosting panel that Imunify360 supports. It is...

Upgrade Imunify360 instance to the Latest Version

If you want to upgrade to the new Imunify360 version, you can use the updated script by running...

Imunify360 - IDS Integrations - Fix Conflicts

CXS Integration ConfigServer eXploit Scanner (CXS) has different types of malware scanning,...

How to install Imunify360 on your cPanel server?

Imunify360 is simple to install. It runs on the following distributions: CentOS 6, 7 &...