apt-ostree/debian
robojerk 566f85beda
Some checks failed
Comprehensive CI/CD Pipeline / Build and Test (push) Failing after 6m6s
Comprehensive CI/CD Pipeline / Security Audit (push) Failing after 7s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 1m52s
Comprehensive CI/CD Pipeline / Status Report (push) Has been skipped
Major cleanup and optimization: Remove unused dependencies, clean build artifacts, and improve project structure
- Remove 7 unused dependencies: apt-pkg-native, pkg-config, walkdir, lazy_static, futures, async-trait, cap-std
- Delete dead code: Remove unused parallel.rs module
- Clean build artifacts: Remove debian/cargo/, debian/.debhelper/, and other build files
- Update .gitignore: Comprehensive patterns for build artifacts, test files, and temporary files
- Move documentation: Relocate project docs to docs/ directory
- Remove test artifacts: Clean up test files and package archives
- Update Cargo.toml: Streamline dependencies and remove unused features
- Verify build: Ensure project still compiles after cleanup

This commit significantly reduces project size and improves build efficiency.
2025-08-19 10:51:37 -07:00
..
apt-ostree Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
apt-ostreed fix: Resolve compilation errors in parallel and cache modules 2025-08-16 15:10:00 -07:00
man Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
source feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
apt-ostree.1 feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
apt-ostree.bash-completion feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
apt-ostree.conffiles Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
apt-ostree.lintian-overrides feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
apt-ostree.postinst Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
apt-ostree.postrm Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
apt-ostree.postrm.debhelper Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
apt-ostree.prerm Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
apt-ostree.substvars fix: Resolve compilation errors in parallel and cache modules 2025-08-16 15:10:00 -07:00
apt-ostree.triggers Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
apt-ostree.zsh-completion feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
apt-ostreed.postrm.debhelper fix: Resolve compilation errors in parallel and cache modules 2025-08-16 15:10:00 -07:00
build.sh feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
changelog Major apt-ostree refactor: Simplified architecture, Debian Trixie compatibility 2025-08-13 13:11:26 -07:00
compat Build apt-ostree Debian package with libostree 2025.2 compatibility 2025-07-22 05:45:32 +00:00
control Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
copyright feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
debhelper-build-stamp Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
files Fix YAML linting issues and update system requirements to Debian 13+ 2025-08-18 11:39:58 -07:00
local-options feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
README.Debian feat: Implement comprehensive Debian packaging improvements and enhanced CI workflow 2025-08-15 14:05:37 -07:00
rules Fix Rust compiler SIGSEGV during Debian builds 2025-08-18 12:14:48 -07:00

apt-ostree for Debian
====================

This is the Debian packaging for apt-ostree, a tool for managing atomic,
immutable deployments on Debian and Ubuntu systems using OSTree as the backend.

Building the Package
-------------------

To build the Debian package:

1. Install build dependencies:
   ```bash
   sudo apt-get install build-essential devscripts debhelper dh-cargo
   sudo apt-get install libostree-dev libglib2.0-dev libcurl4-gnutls-dev
   sudo apt-get install libssl-dev libsystemd-dev libmount-dev libselinux1-dev
   sudo apt-get install libapt-pkg-dev
   ```

2. Install Rust toolchain:
   ```bash
   curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
   source ~/.cargo/env
   ```

3. Build the package:
   ```bash
   # Using the build script (recommended)
   ./debian/build.sh
   
   # Or manually
   dpkg-buildpackage -us -uc -b
   ```

4. Install the package:
   ```bash
   sudo dpkg -i ../apt-ostree_*.deb
   sudo apt-get install -f  # Install any missing dependencies
   ```

Package Structure
----------------

The package installs the following components:

- Binary: `/usr/bin/apt-ostree`
- Man page: `/usr/share/man/man1/apt-ostree.1`
- Bash completion: `/usr/share/bash-completion/completions/apt-ostree`
- Zsh completion: `/usr/share/zsh/vendor-completions/_apt-ostree`
- Configuration: `/etc/apt-ostree/config.toml`
- Data directory: `/var/lib/apt-ostree`
- Log directory: `/var/log/apt-ostree`

Configuration
------------

After installation, apt-ostree will create a default configuration file at
`/etc/apt-ostree/config.toml`. You can modify this file to customize the
behavior of apt-ostree.

Dependencies
-----------

apt-ostree requires the following system packages:

- ostree (>= 2025.2)
- systemd
- libapt-pkg7.0 (>= 3.0.0)
- libostree-1-1 (>= 2025.2)

Development
----------

For development builds, you can use the local options:

```bash
# Enable debug mode
export DH_VERBOSE=1
export APT_OSTREE_LOG_LEVEL=debug

# Build with debug symbols
export CARGO_PROFILE_RELEASE_DEBUG=1

# Build the package
dpkg-buildpackage -us -uc -b
```

Troubleshooting
--------------

If you encounter build issues:

1. Ensure all build dependencies are installed
2. Check that Rust toolchain is properly configured
3. Verify OSTree development libraries are available
4. Check build logs in `debian/cargo/target/`

For runtime issues:

1. Check the configuration file at `/etc/apt-ostree/config.toml`
2. Verify OSTree is properly configured on the system
3. Check logs in `/var/log/apt-ostree/`
4. Ensure proper permissions on OSTree directories

Reporting Bugs
-------------

Please report bugs to the project issue tracker:
https://github.com/robojerk/apt-ostree/issues

Include the following information:
- Debian/Ubuntu version
- apt-ostree version
- Error messages and logs
- Steps to reproduce the issue

Maintainer Information
----------------------

This package is maintained by Robojerk <robojerk@example.com>.

For Debian-specific issues, please contact the maintainer or file a bug
report against the apt-ostree package in the Debian bug tracking system.