What dependencies does MetaDefender’s Deep CDR for Linux have?

Check Your Version:

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

  • Download the prebuilt libgdiplus6.0.4.tar.gz .

    • File size: 1,857,019 bytes

    • MD5: 759a6a3641a1bc83363336f860cd7f25

    • SHA256: 222ec848c62bdc886ebed980f87d4e56ff3341c5e9af1c242a2e9706b674a4b5

  • Run these commands to install, be aware of the “Copy and extract libgdiplus6.0.4.tar.gz ...” step.

### Install runtime dependency dnf install -y 'dnf-command(config-manager)' dnf config-manager --set-enabled crb dnf makecache dnf install -y tar giflib-devel libjpeg-devel giflib libjpeg libpng cairo libtiff libexif glib2 ### Copy and extract libgdiplus6.0.4.tar.gz file to your installed folder (this folder can be read by metascan) (for example :/var/lib/libgdiplus6) mkdir /var/lib/libgdiplus6 tar -xvf libgdiplus6.0.4.tar.gz -C /var/lib/libgdiplus6 echo "/var/lib/libgdiplus6/6.0.4/lib" | sudo tee /etc/ld.so.conf.d/libgdiplus.conf ldconfig ### Double check libgdiplus was installed successfully ldconfig -p | grep libgdiplus ### Restart Core to make change applied systemctl stop ometascan systemctl start ometascan

Centos 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.repo yum install -y epel-release yum -y update yum install -y libgdiplus
Please Note:

This installation might not work due to CentOS is currently end of life.

Ubuntu 22.04

sudo apt install gnupg ca-certificates sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update sudo apt install libgdiplus

Ubuntu 20.04

sudo apt install gnupg ca-certificates sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update sudo apt install libgdiplus

Ubuntu 18.04

sudo apt install gnupg ca-certificates sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update sudo apt install libgdiplus

Ubuntu 16.04

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF sudo apt install apt-transport-https ca-certificates echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update sudo apt install libgdiplus

Red 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-rpms yum install libgdiplus

Red 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 libgdiplus

Red Hat 9

sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm sudo dnf -y install libgdiplus

If you can not install from EPEL, please follow the instruction from How to install pre-built libgdiplus on RedHat 9?.

Debian 9

sudo apt install apt-transport-https dirmngr gnupg ca-certificates sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update --allow-insecure-repositories sudo apt install libgdiplus

Debian 10

sudo apt install apt-transport-https dirmngr gnupg ca-certificates sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update --allow-insecure-repositories sudo apt install libgdiplus

Debian 12

sudo apt install wget sudo wget http://ftp.de.debian.org/debian/pool/main/libw/libwebp/libwebp6_0.6.1-2.1+deb11u2_amd64.deb sudo wget http://ftp.de.debian.org/debian/pool/main/t/tiff/libtiff5_4.2.0-1+deb11u5_amd64.deb sudo wget http://ftp.de.debian.org/debian/pool/main/libg/libgdiplus/libgdiplus_6.0.4+dfsg-2_amd64.deb sudo dpkg -i libwebp6_0.6.1-2.1+deb11u2_amd64.deb || sudo apt-get install -f sudo dpkg -i libtiff5_4.2.0-1+deb11u5_amd64.deb || sudo apt-get install -f sudo dpkg -i libgdiplus_6.0.4+dfsg-2_amd64.deb || sudo apt-get install -f
Support:

If 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 auto$, before creating a support case or chatting with our support engineer.