Install Microsft Defender

Does anyone know how to install Microsoft Defender (mdatp) on Tumbleweed?

zypper ar https://packages.microsoft.com/config/opensuse/15/prod.repo
zypper ar https://packages.microsoft.com/config/opensuse/15/insiders-fast.repo

zypper install packages-microsoft-prod   # does not contain mdatp

Done as mentioned above. Does not work on Tumbleweed.

1 Like

The linked article provides extensive informations. It would be good when you show what you do and what the error messages are. “It does not work” is no information to work with…

The suggested way to install:

zypper install packages-microsoft-com-prod:mdatp
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
'packages-microsoft-com-prod:mdatp' wurde in den Paketnamen nicht gefunden. Fähigkeiten werden durchsucht.
Keine Anbieter von 'packages-microsoft-com-prod:mdatp' gefunden.
Paketabhängigkeiten werden aufgelöst...
Keine auszufĂĽhrenden Aktionen.

mdatp was not found.
Same with:

zypper install packages-microsoft-prod:mdatp

But:

zypper install packages-microsoft-prod

works fine, but no mdatp is installed.

which mdatp
which: no mdatp in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)

Following the linked article works flawlessly.

tumblevb@test:~> sudo zypper addrepo -c -f -n microsoft-prod https://packages.microsoft.com/config/sles/15/prod.repo
[sudo] password for root: 
Adding repository 'microsoft-prod' .....................................................................................................................................................................................................................................[done]
Repository 'microsoft-prod' successfully added

URI         : https://packages.microsoft.com/sles/15/prod/
Enabled     : Yes
GPG Check   : Yes
Autorefresh : Yes
Priority    : 99 (default priority)

Repository priorities in effect:                                                                                                                                                                                                              (See 'zypper lr -P' for details)
      90 (raised priority)  :  1 repository
      99 (default priority) :  7 repositories
tumblevb@test:~> sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
tumblevb@test:~> sudo zypper install mdatp
Refreshing service 'openSUSE'.
Retrieving repository 'Chrome' metadata ................................................................................................................................................................................................................................[done]
Building repository 'Chrome' cache .....................................................................................................................................................................................................................................[done]
Retrieving repository 'repo-non-oss' metadata ..........................................................................................................................................................................................................................[done]
Building repository 'repo-non-oss' cache ...............................................................................................................................................................................................................................[done]
Retrieving repository 'repo-oss' metadata ..............................................................................................................................................................................................................................[done]
Building repository 'repo-oss' cache ...................................................................................................................................................................................................................................[done]
Retrieving repository 'microsoft-prod' metadata ........................................................................................................................................................................................................................[done]
Building repository 'microsoft-prod' cache .............................................................................................................................................................................................................................[done]
Retrieving repository 'packman' metadata ...............................................................................................................................................................................................................................[done]
Building repository 'packman' cache ....................................................................................................................................................................................................................................[done]
Retrieving repository 'vscode' metadata ................................................................................................................................................................................................................................[done]
Building repository 'vscode' cache .....................................................................................................................................................................................................................................[done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following recommended package was automatically selected:
  setools-console

The following 7 NEW packages are going to be installed:
  libnetfilter_queue1 mdatp mde-netfilter policycoreutils python311-setools selinux-tools setools-console

7 new packages to install.

Package download size:   148,5 MiB

Package install size change:
              |     682,5 MiB  required by to be installed packages
   682,5 MiB  |  -      0 B    released by to be removed packages

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): 
Retrieving: libnetfilter_queue1-1.0.5-2.13.x86_64 (repo-oss)                                                                                                                                                                                              (1/7),  21,2 KiB    
Retrieving: libnetfilter_queue1-1.0.5-2.13.x86_64.rpm ..................................................................................................................................................................................................................[done]
Retrieving: python311-setools-4.5.1-2.1.x86_64 (repo-oss)                                                                                                                                                                                                 (2/7), 864,3 KiB    
Retrieving: python311-setools-4.5.1-2.1.x86_64.rpm .........................................................................................................................................................................................................[done (3,2 MiB/s)]
Retrieving: selinux-tools-3.7-1.1.x86_64 (repo-oss)                                                                                                                                                                                                       (3/7),  96,0 KiB    
Retrieving: selinux-tools-3.7-1.1.x86_64.rpm ...........................................................................................................................................................................................................................[done]
Retrieving: setools-console-4.5.1-2.1.x86_64 (repo-oss)                                                                                                                                                                                                   (4/7),  50,3 KiB    
Retrieving: setools-console-4.5.1-2.1.x86_64.rpm .......................................................................................................................................................................................................................[done]
Retrieving: policycoreutils-3.7-1.1.x86_64 (repo-oss)                                                                                                                                                                                                     (5/7),  91,5 KiB    
Retrieving: policycoreutils-3.7-1.1.x86_64.rpm .........................................................................................................................................................................................................................[done]
Retrieving: mde-netfilter-100.69.62-1.x86_64 (microsoft-prod)                                                                                                                                                                                             (6/7),  35,0 KiB    
Retrieving: mde-netfilter_100.69.62.x86_64.rpm .........................................................................................................................................................................................................................[done]
Retrieving: mdatp-101.24062.0001-1.x86_64 (microsoft-prod)                                                                                                                                                                                                (7/7), 147,3 MiB    
Retrieving: mdatp-101.24062.0001-1.x86_64.rpm ..............................................................................................................................................................................................................[done (4,3 MiB/s)]

Checking for file conflicts: ...........................................................................................................................................................................................................................................[done]
(1/7) Installing: libnetfilter_queue1-1.0.5-2.13.x86_64 ................................................................................................................................................................................................................[done]
(2/7) Installing: python311-setools-4.5.1-2.1.x86_64 ...................................................................................................................................................................................................................[done]
(3/7) Installing: selinux-tools-3.7-1.1.x86_64 .........................................................................................................................................................................................................................[done]
(4/7) Installing: setools-console-4.5.1-2.1.x86_64 .....................................................................................................................................................................................................................[done]
(5/7) Installing: policycoreutils-3.7-1.1.x86_64 .......................................................................................................................................................................................................................[done]
New installation
Configure: Starting MDE Netfilter socket based activation
Created symlink '/etc/systemd/system/sockets.target.wants/mde_netfilter.socket' -> '/usr/lib/systemd/system/mde_netfilter.socket'.
Created symlink '/etc/systemd/system/multi-user.target.wants/mde_netfilter.service' -> '/usr/lib/systemd/system/mde_netfilter.service'.
(6/7) Installing: mde-netfilter-100.69.62-1.x86_64 .....................................................................................................................................................................................................................[done]
(7/7) Installing: mdatp-101.24062.0001-1.x86_64 ........................................................................................................................................................................................................................[done]
Running post-transaction scripts .......................................................................................................................................................................................................................................[done]
tumblevb@test:~> 

In your case simply do

sudo zypper install mdatp

Additionally you need to decide (as described in the article) which channel you want to use. Now you have prod and insider-fast repos configured. decide for one, remove the other and simply install mdatp.

zypper install packages-microsoft-prod

Have you looked inside the rpm?

rpm -ql https://packages.microsoft.com/config/opensuse/15/packages-microsoft-prod.rpm
/etc/yum.repos.d/microsoft-prod.repo

Only a Repo definition…

And the repository packages-microsoft-com-prod is defined and enabled?

The openSUSE repos which the TO shows in his first post, does not contain the package mdatp. Hence the error message that the package is not found.

The link in the first comment explains that mdatp is only available for SLES. You need to use the SLES repo as explained there (openSUSE is officially not supported even if it may work).

Comment 7 shows the correct SLES repo and installation of mdatp which sucessfully finishes. The procedure in this comment followed the installation instructions from the Microsoft link.

The SLES package works fine. Thank you, hui. :+1:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.