Install GroupDocs.Markdown for .NET on Linux

This article explains how to install and run GroupDocs.Markdown for .NET on Linux. GroupDocs.Markdown NuGet package references all required native libraries.

Prerequisites

Install the .NET SDK (6.0 or later) for your distribution. See Install .NET on Linux for instructions.

Install the Package

Create a new project or navigate to an existing one, then add the package:

dotnet new console -n MarkdownDemo
cd MarkdownDemo
dotnet add package GroupDocs.Markdown

Run Your Application

dotnet run

Docker

GroupDocs.Markdown runs in Docker containers with no additional dependencies beyond the .NET runtime.

Example Dockerfile

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /app
COPY . .
RUN dotnet publish -c Release -o /publish

FROM mcr.microsoft.com/dotnet/runtime:8.0
WORKDIR /app
COPY --from=build /publish .
ENTRYPOINT ["dotnet", "MarkdownDemo.dll"]

Build and Run

docker build -t markdown-demo .
docker run --rm -v $(pwd)/files:/app/files markdown-demo

Supported Distributions

GroupDocs.Markdown for .NET works on any Linux distribution that supports .NET 6.0+, including:

  • Ubuntu 20.04+
  • Debian 11+
  • CentOS 8+, RHEL 8+
  • Fedora 36+
  • Alpine 3.16+
  • Amazon Linux 2023