Issue
Sometimes it might be necessary to re-install an ImunifyAV(+) or Imunify360 instance completely.
Environment
- ImunifyAV(+)
- Imunify360
Solution
To re-install ImunifyAV(+), execute:
wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh -O imav-deploy.sh
bash imav-deploy.sh --uninstall
bash imav-deploy.sh
To re-install Imunify360, use the following:
wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh
bash i360deploy.sh --uninstall
bash i360deploy.sh
In case upon re-installation errors occur, like e. g.
[2025-02-03 08:01:14] [MIRROR] imunify360-firewall-cpanel-8.1.6-1.noarch.rpm: Status code: 404 for https://download.imunify360.com/el/8/slot-2/x86_64/imunify360-firewall-cpanel-8.1.6-1.noarch.rpm (IP: 2604:a880:400:d1::7cbc:d001)
please execute
yum clean all
yum makecache
or on Ubuntu:
apt remove --purge imunify*
or
dpkg --purge $(dpkg -l | awk '/imunify/ {print $2}')
apt-get autoremove --purge -y
rm -rf /var/imunify360 /etc/imunify360 /etc/sysconfig/imunify360 /var/lib/imunify* /opt/imunify360*
(also clean dpkg half-installed state)
dpkg --configure -a
apt-get -f install
(confirm there are no more leftovers)
systemctl list-unit-files | grep imunify
(if you see any dangling ones (e.g: imunify-agent-proxy.socket), remove them)
systemctl disable --now imunify-agent-proxy.socket
rm /etc/systemd/system/imunify-agent-proxy.socket
systemctl daemon-reload
and try again.
Comments
0 comments
Please sign in to leave a comment.