Go to file
Colin Walters 2bc8d7cccb upgrader: Prune pkgcache repo
Until now, we weren't pruning the pkgcache repo at all.  I ran out of
space in the root partition in my CAHC vagrant test box, so it's time
to fix this.

The basic algorithm is to walk over the full rpmdb contents of each
root, generate a set of "currently referenced" cached refs, then delete
any refs in the pkgcache repo which aren't included.  Then, do a prune
of the pkgcache repo.

While we're here, factor out a `sysroot_upgrader_cleanup()` function
which does all of the cleanup.  The idea is at some point we need to
introduce an `rpm-ostree cleanup` command or so which calls this, to
handle the case where the system is interrupted post-deploy but
pre-clean.

Closes: https://github.com/projectatomic/rpm-ostree/issues/428

Closes: #437
Approved by: jlebon
2016-08-30 19:53:24 +00:00
api-doc build: Use git.mk, make git status clean 2016-03-10 14:36:44 -05:00
buildutil build: Import attributes.m4 copy from systemd, update warnings 2016-08-08 14:26:28 +00:00
design design/package-layering: New file 2014-06-18 08:48:03 -04:00
docs docs: Separate README.md and docs index, elaborate more 2016-07-16 02:16:09 +00:00
libdnf@b69552b3b3 Update to latest libdnf 2016-08-11 19:26:06 +00:00
libglnx@4ae5e3beaa compose: Port bits of postprocessing to fd-relative 2016-08-08 18:11:42 +00:00
man man page: add pkg-add and pkg-delete 2016-06-03 19:13:13 +00:00
packaging build: Update .gitignore 2016-03-26 14:22:41 +00:00
scripts compose: Add check-passwd/group JSON options, fails compose if uids/gids change 2014-12-18 16:59:33 -05:00
src upgrader: Prune pkgcache repo 2016-08-30 19:53:24 +00:00
tests vmcheck: add a test for RPM scripts 2016-08-17 21:28:01 +00:00
tests-container tests-container: New experimental testing code path 2016-03-11 08:38:06 -05:00
vagrant vagrant/Makefile: drop sudo and depend on buildimg 2016-07-15 19:14:19 +00:00
.gitmodules gitmodules: Update for rename 2016-08-04 22:10:59 +00:00
.travis.yml Add a stub travis file to enable Homu 2016-03-15 19:34:19 +00:00
autogen.sh autogen.sh: tweak program checking logic 2015-09-11 10:24:44 -04:00
configure.ac Release 2016.7 2016-08-13 14:34:38 +00:00
CONTRIBUTING.md docs: fix ostree and CONTRIBUTING.md links 2016-07-12 15:46:53 +00:00
COPYING COPYING: Update to latest LGPLv2+ 2014-03-10 16:40:16 -04:00
git.mk build: Use git.mk, make git status clean 2016-03-10 14:36:44 -05:00
HACKING.md Switch to using libhif as a git submodule 2016-06-30 14:27:55 +00:00
LICENSE Add a LICENSE symlink 2016-04-28 13:09:22 +00:00
Makefile-daemon.am Switch to using libhif as a git submodule 2016-06-30 14:27:55 +00:00
Makefile-decls.am Switch to using libhif as a git submodule 2016-06-30 14:27:55 +00:00
Makefile-lib-defines.am lib: Add RpmOstreePackage 2015-04-16 13:26:58 -04:00
Makefile-lib.am Update for libhif -> libdnf 2016-08-04 01:10:08 +00:00
Makefile-libdnf.am Update for libhif -> libdnf 2016-08-04 01:10:08 +00:00
Makefile-libpriv.am lib: Extract bwrap-executing internal API 2016-08-12 23:34:33 +00:00
Makefile-man.am build: Use git.mk, make git status clean 2016-03-10 14:36:44 -05:00
Makefile-rpm-ostree.am Switch to using libhif as a git submodule 2016-06-30 14:27:55 +00:00
Makefile-tests.am vmcheck: add a test for RPM scripts 2016-08-17 21:28:01 +00:00
Makefile.am Update for libhif -> libdnf 2016-08-04 01:10:08 +00:00
mkdocs.yml docs: Start using mkdocs 2016-03-09 11:10:58 -05:00
README.md docs: Separate README.md and docs index, elaborate more 2016-07-16 02:16:09 +00:00
TODO upgrader: Prune pkgcache repo 2016-08-30 19:53:24 +00:00
Vagrantfile libvm.sh: add vm_setup and vm_rsync 2016-07-15 19:14:19 +00:00

rpm-ostree Overview

rpm-ostree is a hybrid image/package system. It uses OSTree as a base image format, and supports RPM on both the client and server side using libhif.

For more information, see the online manual: Read The Docs (rpm-ostree)

Features:

  • Atomic upgrades and rollback for host system updates
  • A server side tool to consume RPMs and commit them to an OSTree repository
  • A system daemon to consume OSTree commits as updates

Projects using rpm-ostree

Project Atomic uses rpm-ostree to provide a minimal host for Docker formatted Linux containers. Replicating a base immutable OS, then using Docker for applications.

Manual

For more information, see the online manual: Read The Docs (rpm-ostree)