Search code examples
c#linux.net-coreopensuse

How to install libgdiplus on openSUSE?


So, I am a .NET developer and I need to run my project on Linux. I was provided with ssh access to a machine with openSUSE Tumbleweed version 20170403 on it. To run System.Drawing.Common functionality I need a libgdiplus package installed, but if I try to install it via "zypper in libgdiplus" command i get "No provider of 'libgdiplus' found." message. This is like my second time dealing with Linux, so i don't have any clue what the hell i am doing. Thanks for helping me.

So I've tried

zypper in libgdiplus
apt-get install libgdiplus

they give me the same output:

'libgdiplus' not found in package names. Trying capabilities. No provider of 'libgdiplus' found


Solution

  • When searching for a package, use

    zypper search ...
    

    first, in this case

    zypper search libgdiplus
    

    Sometimes, adding -d is needed to search for "details", i.e. not only the short package descriptions.

    In this case, the package for openSUSE is in fact called libgdiplus0, as the search shows. So, to install it, you must specify

    zypper install libgdiplus0