pixi-pack is a tool that packages Pixi environments into compressed archives that can be shipped to target machines. The corresponding pixi-unpack tool recreates the environment without requiring Pixi, conda, or micromamba.
Installation
Install globally
Install both tools using Pixi’s global installation:Or download pre-built binaries from the releases page.
If you have
pixi, pixi-pack, and pixi-unpack installed globally, you can also use the shorter commands pixi pack and pixi unpack.Creating a Pack
Package an environment for distribution:environment.tar file containing all conda packages required for the environment:
Unpacking an Environment
Extract and recreate the environment on the target system:./env/- The conda environmentactivate.sh(oractivate.baton Windows) - Activation script
Cross-Platform Packs
Create packs for different platforms without running on that platform:Self-Extracting Binaries
Create standalone executables that unpack without requiringpixi-unpack:
Custom pixi-unpack Source
Specify a custom location for thepixi-unpack executable:
The produced executable is a shell script containing both the
pixi-unpack binary and the packed environment.Advanced Features
Inject Additional Packages
Add packages not specified inpixi.lock:
PyPI Support
Pack PyPI wheel packages into your environment:Mirror and S3 Configuration
Use custom mirrors or S3 buckets:config.toml
Concurrency Control
Limit parallel downloads:config.toml
Package Caching
Cache downloaded packages for faster subsequent operations:- Reuse packages across multiple packs
- Reduce bandwidth usage
- Speed up CI/CD pipelines
- Handle large packages efficiently
Unpacking Without pixi-pack
Ifpixi-pack is unavailable on the target system, use conda or micromamba:
The
environment.yml and repodata.json files are only for this compatibility mode. pixi-unpack does not use them.Use Cases
Production Deployment
Package development environments for production deployment without internet access on target servers.
Air-Gapped Systems
Distribute software to air-gapped or restricted network environments.
Reproducibility
Ensure exact dependency versions across different machines and time periods.
CI/CD Optimization
Cache and reuse packages across pipeline runs to reduce build times.