Soenneker.Compression.Tar 11.0.138

Prefix Reserved
dotnet add package Soenneker.Compression.Tar --version 11.0.138
                    
NuGet\Install-Package Soenneker.Compression.Tar -Version 11.0.138
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Compression.Tar" Version="11.0.138" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Compression.Tar" Version="11.0.138" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Compression.Tar" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Compression.Tar --version 11.0.138
                    
#r "nuget: Soenneker.Compression.Tar, 11.0.138"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Compression.Tar@11.0.138
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Compression.Tar&version=11.0.138
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Compression.Tar&version=11.0.138
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Compression.Tar

Extracts TAR archives into a directory with path-containment and link checks.

Install

dotnet add package Soenneker.Compression.Tar

Registration

using Soenneker.Compression.Tar.Registrars;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
services.AddTarUtilAsSingleton();

Use AddTarUtilAsScoped() instead when its lifetime should follow a dependency-injection scope.

Usage

using Soenneker.Compression.Tar.Abstract;

public sealed class ArchiveImporter(ITarUtil tarUtil)
{
    public ValueTask Extract(string archivePath, string destinationPath, CancellationToken cancellationToken = default)
    {
        return tarUtil.Extract(archivePath, destinationPath, cancellationToken);
    }
}

Extract creates the destination directory if necessary and writes regular archive entries beneath it. It rejects symbolic and hard links, paths that resolve outside the destination, and multiple entries that resolve to the same output path.

Practical notes

  • This package extracts TAR archives; it does not create them.
  • The destination is caller-owned. If extraction fails or is cancelled, files already written are left in place.
  • Existing-file behavior is controlled by SharpCompress. Use an empty destination when replacement semantics matter.
  • Path checks do not protect against oversized or highly compressible archives. Apply application-specific file-count, size, and storage limits before accepting untrusted content.
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Compression.Tar:

Package Downloads
Soenneker.Compression.Tar.XZ

A utility library dealing with Tar and XZ (tar.xz) extraction/archiving and (de)compression

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.138 204 11/13/2026
11.0.137 133 11/11/2026
11.0.136 106 11/11/2026
11.0.135 115 11/10/2026
11.0.134 225 11/3/2026
11.0.133 305 10/27/2026
11.0.132 150 10/26/2026
11.0.131 194 10/26/2026
4.0.130 120 10/26/2026
4.0.129 165 10/20/2026
4.0.128 157 10/15/2026
4.0.127 107 10/14/2026
4.0.126 173 10/14/2026
4.0.124 126 10/14/2026
4.0.123 104 10/14/2026
4.0.118 126 10/13/2026
4.0.117 139 10/12/2026
4.0.115 142 10/12/2026
4.0.114 183 10/11/2026
4.0.113 172 10/11/2026
Loading failed

Update dependency SharpCompress to 0.50.9 (#488)