What dependencies does MetaDefender’s Deep CDR for Linux have?
This article applies to all MetaDefender Core releases deployed on Linux systems.
Starting with version 6.0 (released in December 2021), MetaDefender’s Deep CDR for Linux will require that libgdiplus be pre-installed.
Please follow the relevant instructions below to install libgdiplus on your Linux system:
Rocky Linux 9.x
curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repoyum install -y epel-releaseyum install -y libgdiplus --nobestCentos 7
rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repoyum install -y epel-releaseyum -y updateyum install -y libgdiplusThis installation might not work due to CentOS is currently end of life.
Ubuntu 22.04
sudo apt install gnupg ca-certificatessudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFecho "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.listsudo apt updatesudo apt install libgdiplusUbuntu 20.04
sudo apt install gnupg ca-certificatessudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFecho "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.listsudo apt updatesudo apt install libgdiplusUbuntu 18.04
sudo apt install gnupg ca-certificatessudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFecho "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.listsudo apt updatesudo apt install libgdiplusUbuntu 16.04
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFsudo apt install apt-transport-https ca-certificatesecho "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.listsudo apt updatesudo apt install libgdiplusRed Hat 7
rpmkeys --import "http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef"su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo'subscription-manager repos --enable=rhel-7-server-dotnet-rpmsyum install libgdiplusRed Hat 8
rpmkeys --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"su -c 'curl https://download.mono-project.com/repo/centos8-stable.repo | tee /etc/yum.repos.d/mono-centos8-stable.repo'yum install libgdiplusRed Hat 9
sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpmssudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpmsudo dnf -y install libgdiplusDebian 9
sudo apt install apt-transport-https dirmngr gnupg ca-certificatessudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFecho "deb https://download.mono-project.com/repo/debian stable-stretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.listsudo apt update --allow-insecure-repositoriessudo apt install libgdiplusDebian 10
sudo apt install apt-transport-https dirmngr gnupg ca-certificatessudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFecho "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.listsudo apt update --allow-insecure-repositoriessudo apt install libgdiplusIf you have followed the steps above but are still having trouble installing Libgdiplus or running MetaDefender Core’s Deep CDR on a Linux system, please follow these instructions on How To Create a Support Package, before creating a support case or chatting with our support engineer.
