Getting Started with omnipkg¶
This guide will walk you through installing omnipkg and performing the initial setup.
Getting Started with omnipkg¶
Welcome to omnipkg - the package manager that breaks the fundamental laws of Python environments.
🚀 Quick Install (30 Seconds)¶
✨ See It In Action (10 Seconds)¶
Run the interactive demo to experience omnipkg’s revolutionary features:
Choose from 33+ demos including: - 🌀 Multiverse Orchestration - 3 Python versions, 1 script, <600ms - ⚡ Auto-Healing - 7.76× faster than UV at fixing broken environments - 🔥 Hot-Swapping - Switch NumPy versions mid-script in <1ms - 💥 Concurrent Execution - Run Python 3.9/3.10/3.11 simultaneously
🎯 What Makes omnipkg Revolutionary?¶
Before omnipkg:¶
# Traditional approach - FAILS
pip install torch==2.0.0
pip install torch==2.7.1
# ERROR: Cannot install torch==2.0.0 - conflicts with torch==2.7.1
With omnipkg:¶
# omnipkg approach - WORKS
omnipkg install torch==2.0.0 torch==2.7.1
# ✅ torch==2.7.1 active
# 🫧 torch==2.0.0 bubbled (isolated)
Both versions coexist. Switch between them instantly:
from omnipkg.loader import omnipkgLoader
# Use PyTorch 2.0
with omnipkgLoader("torch==2.0.0"):
import torch
print(torch.__version__) # 2.0.0
# Use PyTorch 2.7.1
with omnipkgLoader("torch==2.7.1"):
import torch
print(torch.__version__) # 2.7.1
📋 Prerequisites¶
Required¶
- Python 3.7 - 3.14 (any version works)
- pip/uv (for installation)
Optional (Auto-Fallback to SQLite)¶
- Redis (for 10× faster metadata lookups)
omnipkg works perfectly with SQLite by default. Redis is optional for enhanced performance.
Installing Redis (Optional)¶
Verify Redis (optional):
🔧 First-Time Setup¶
omnipkg automatically configures itself on first run:
You’ll be prompted for: 1. Bubble Storage Path (where isolated versions live) 2. Redis Connection (optional - uses SQLite if unavailable) 3. Language Preference (24 languages supported)
All settings are saved to ~/.config/omnipkg/config.json
🎓 Learn by Example¶
Example 1: Multi-Version Installation¶
# Install multiple NumPy versions
omnipkg install numpy==1.24.3 numpy==1.26.4 numpy==2.0.0
# Check what's active
omnipkg list numpy
# ✅ numpy==2.0.0 (active)
# 🫧 numpy==1.26.4 (bubble)
# 🫧 numpy==1.24.3 (bubble)
Example 2: Python Hot-Swapping¶
# Adopt Python interpreters
omnipkg python adopt 3.9
omnipkg python adopt 3.11
# Switch between them
omnipkg swap python 3.9
python --version # Python 3.9.x
omnipkg swap python 3.11
python --version # Python 3.11.x
Example 3: Auto-Healing Scripts¶
# This script requires old NumPy but you have 2.0 installed
omnipkg run legacy_tensorflow_model.py
# omnipkg automatically:
# 1. Detects NumPy 2.0 incompatibility
# 2. Creates numpy==1.24.3 bubble
# 3. Re-runs script successfully
# ✅ Done in <1 second (7.76× faster than UV)
Example 4: Environment Protection¶
# Disaster: pip/uv accidentally downgrades a package
pip install some-package
# (downgrades critical dependencies)
# No problem - revert instantly
omnipkg revert
# ✅ Environment restored to last known good state
🌐 Interactive Web Bridge¶
omnipkg includes a web interface for running commands from your browser:
Visit http://localhost:5000 and run commands interactively with live output!
📖 Next Steps¶
| Learn About | Description |
|---|---|
| CLI Commands | Complete command reference |
| Python Hot-Swapping | Master multi-interpreter switching |
| Runtime Switching | Dynamic package version swapping |
| Daemon System | Background worker for instant healing |
| Demos | 33+ interactive demonstrations |
💡 Pro Tips¶
- Start with demos:
omnipkg demoshows you what’s possible - Use
omnipkg run: Automatically heals script errors - Enable Redis: 10× faster metadata lookups (optional)
- Snapshot often:
omnipkg statuscreates auto-snapshots - Check health:
omnipkg doctordiagnoses issues
🆘 Need Help?¶
# Global help
omnipkg --help
# Command help
omnipkg install --help
# Diagnose issues
omnipkg doctor
# Check environment
omnipkg status
🐛 Troubleshooting¶
“Redis not found” warning¶
✅ This is fine! omnipkg automatically uses SQLite. Redis is optional for performance.
Permission errors on Ubuntu 24.04+¶
# Ubuntu 24.04+ requires this flag
pip install --break-system-packages omnipkg
# Or use a virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip install omnipkg
Package conflicts¶
Ready to break free from dependency hell?