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
<PackageReference Include="Soenneker.Compression.Tar" Version="11.0.138" />
<PackageVersion Include="Soenneker.Compression.Tar" Version="11.0.138" />
<PackageReference Include="Soenneker.Compression.Tar" />
paket add Soenneker.Compression.Tar --version 11.0.138
#r "nuget: Soenneker.Compression.Tar, 11.0.138"
#:package Soenneker.Compression.Tar@11.0.138
#addin nuget:?package=Soenneker.Compression.Tar&version=11.0.138
#tool nuget:?package=Soenneker.Compression.Tar&version=11.0.138
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- SharpCompress (>= 0.50.9)
- Soenneker.Extensions.ValueTask (>= 11.0.136)
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 |
Update dependency SharpCompress to 0.50.9 (#488)