particle-os-tools/docs/apt-layer/rpm-ostree/man-pages/README.md
robojerk a23b4e53fd
Some checks failed
Compile apt-layer (v2) / compile (push) Has been cancelled
feat: Integrate apt-layer.sh with apt-ostree.py daemon via D-Bus
- Added 20-daemon-integration.sh scriptlet for D-Bus and daemon lifecycle management
- Updated 99-main.sh with new daemon subcommands (start, stop, status, install, uninstall, test, layer, deploy, upgrade, rollback)
- Enhanced help and usage text for daemon integration
- Fixed bash syntax errors in daemon integration scriptlet
- Updated compile.sh to include daemon integration in build process
- Updated .gitignore to exclude src/rpm-ostree/ reference source
- Updated CHANGELOG.md and TODO.md to document daemon integration milestone
- Removed src/rpm-ostree/ from git tracking (reference only, not committed)
2025-07-15 17:08:15 -07:00

5.8 KiB

Man Pages

This section contains the manual pages for rpm-ostree and related components. These man pages provide detailed command-line reference documentation for all rpm-ostree tools and configuration files.

Overview

The man pages provide comprehensive reference documentation for:

  • Command-line tools: Complete syntax and options for all rpm-ostree commands
  • Configuration files: Detailed configuration options and examples
  • System services: Service units and their configuration
  • File formats: Configuration file syntax and structure

Available Man Pages

Command-Line Tools

Configuration Files

System Services

Man Page Sections

Section 1: User Commands

Commands that can be executed by any user:

  • rpm-ostree(1): Main command-line interface

Section 5: File Formats

Configuration files and their formats:

  • rpm-ostreed.conf(5): Daemon configuration

Section 8: System Administration

System administration commands and services:

  • rpm-ostree-countme.service(8): Usage statistics service
  • rpm-ostreed-automatic.service(8): Automatic updates service
  • rpm-ostreed-automatic.timer(8): Automatic updates timer

Usage Examples

Quick Reference

# Show system status
rpm-ostree status

# Upgrade system
rpm-ostree upgrade --reboot

# Install package
rpm-ostree install package-name --reboot

# Rollback to previous deployment
rpm-ostree rollback --reboot

# Check for updates
rpm-ostree upgrade --check

Configuration Examples

# /etc/rpm-ostreed.conf
[Daemon]
AutomaticUpdatePolicy=check
IdleExitTimeout=60
LockLayering=false
Recommends=true

Service Management

# Enable automatic updates
systemctl enable rpm-ostreed-automatic.timer --now

# Check service status
systemctl status rpm-ostreed-automatic.service

# View service logs
journalctl -u rpm-ostreed-automatic.service

Command Categories

System Management

  • status: Display system status and deployments
  • upgrade: Download and deploy system updates
  • rollback: Rollback to previous deployment
  • deploy: Deploy specific version or commit

Package Management

  • install: Install packages into layered deployment
  • uninstall: Remove packages from layered deployment
  • search: Search for available packages
  • override: Override base packages

System Configuration

  • kargs: Manage kernel arguments
  • initramfs: Manage initramfs generation
  • initramfs-etc: Add files to initramfs
  • reload: Reload daemon configuration

Advanced Operations

  • rebase: Switch to different base image
  • apply-live: Apply changes to running system
  • usroverlay: Mount writable overlay on /usr
  • cleanup: Clean up deployments and cache

Database Operations

  • db: Query RPM database in deployments
  • refresh-md: Refresh repository metadata

Configuration Reference

Daemon Configuration

The rpm-ostreed.conf file controls daemon behavior:

  • AutomaticUpdatePolicy: Controls automatic update behavior
  • IdleExitTimeout: Time before daemon exits when idle
  • LockLayering: Disable package layering operations
  • Recommends: Install weak dependencies during layering

Automatic Updates

The automatic update system consists of:

  • rpm-ostreed-automatic.service: Service that performs updates
  • rpm-ostreed-automatic.timer: Timer that triggers updates
  • Configuration: Controlled via rpm-ostreed.conf

External References

Internal References

Man Page Format

Each man page follows the standard Unix man page format:

Structure

  1. Name: Command or file name and brief description
  2. Synopsis: Command syntax or file format
  3. Description: Detailed explanation
  4. Options: Command-line options and arguments
  5. Examples: Usage examples
  6. Files: Related files and directories
  7. See Also: Related commands and documentation

Formatting

  • Bold text: Commands, options, and file names
  • Italic text: Variables and placeholders
  • Code blocks: Examples and configuration snippets
  • Lists: Options and parameters

Contributing

Adding New Man Pages

  1. Create file: Add new man page file with appropriate section number
  2. Follow format: Use standard man page structure
  3. Include examples: Provide practical usage examples
  4. Cross-reference: Link to related documentation

Updating Existing Man Pages

  1. Check accuracy: Verify all information is current
  2. Add examples: Include practical usage examples
  3. Update references: Ensure all links are valid
  4. Test commands: Verify all examples work correctly

These man pages provide comprehensive reference documentation for all rpm-ostree components. They serve as the authoritative source for command-line usage and configuration.