pixi-make-offline-channel

Mirror selected Conda packages with transitive dependencies into an offline channel.

7|1|Updated Jul 10, 2025
One-click install
npx skills add https://github.com/igamenovoer/magic-context --skill pixi-make-offline-channel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixi-make-offline-channel
Source: https://github.com/igamenovoer/magic-context/tree/main/skills/tools/pixi/pixi-make-offline-channel
Command: npx skills add https://github.com/igamenovoer/magic-context --skill pixi-make-offline-channel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams create a self-hosted, offline-installable Conda channel that contains only a selected subset of packages, while ensuring all transitive dependencies are included for reliable offline installations.

Core Features & Use Cases

  • Offline packaging: Build a local mirror that can be consumed by conda via file:// or HTTP.
  • Deterministic resolution: Use Pixi's lockfile (pixi.lock) to lock versions for reproducible environments.
  • Channel indexing: Generate repodata with rattler-index so the channel is fully installable.

Quick Start

Set up a temporary builder project with pixi init, add target packages using pixi add, fetch artifacts with a custom script that reads pixi.lock and downloads files into a channel layout, run pixi run rattler-index local-channel, and verify with conda create -n test-offline -c file://$(pwd)/local-channel pandas --offline --override-channels

Frequently Asked Questions about pixi-make-offline-channel

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an offline Conda channel for air-gapped environments?

To create an offline Conda channel, you can mirror a selected subset of packages along with all transitive dependencies. This enables reliable offline installations via file:// or HTTP access in air-gapped workflows.

How do I ensure all transitive dependencies are included when mirroring a Conda channel?

Ensuring all transitive dependencies are included relies on Pixi's lockfile, pixi.lock, for deterministic resolution. A custom script reads this lockfile to download the exact required artifacts into the local channel layout.

Can I use Pixi to lock package versions for a local offline Conda mirror?

Yes, you can use Pixi to lock package versions for a local offline Conda mirror. The workflow uses a temporary builder project with pixi init and pixi add to generate a deterministic pixi.lock file for reproducible environments.

How do I generate repodata for a self-hosted Conda channel?

You generate repodata for a self-hosted Conda channel using rattler-index. Running pixi run rattler-index local-channel creates the necessary index files so the channel is fully installable and consumable by conda.

How do I verify that my offline Conda channel works correctly?

You verify the offline Conda channel by running conda create -n test-offline -c file://$(pwd)/local-channel <package> --offline --override-channels. This confirms the channel and its transitive dependencies are correctly indexed and accessible.

What is the best way to mirror only a subset of Conda packages for offline use?

The best way to mirror a subset of Conda packages is using Pixi's deterministic lockfile resolution. This approach targets only selected packages and their transitive dependencies, avoiding the need to mirror an entire remote channel.