Skip to content

Instantly share code, notes, and snippets.

@cgwalters
Created December 13, 2017 04:23
Show Gist options
  • Save cgwalters/ddd4c36a5fc514d252c2bac3382342be to your computer and use it in GitHub Desktop.
Save cgwalters/ddd4c36a5fc514d252c2bac3382342be to your computer and use it in GitHub Desktop.

rpm-ostree cancel

It's interesting that most package management tools are command lines (as opposed to daemons with a client, or shared libraries). Instead there's e.g. PackageKit or apt-daemon which layer on top.

Being a command line is good for a lot of scenarios; for example docker build and RUN yum -y .... But ironically, managing the host system is really where you want a daemon by default.

For example, have you ever been logged into a server running yum/apt or equivalent, doing an upgrade, and lost your ssh connection and wished you'd remembered to use screen/tmux?

With a command line only package manager things get into a bad state; you don't have a good way to tell the existing instance to cancel.

But with rpm-ostree everything (as long as you don't livefs) is transactional, and we now complete the picture with support for cancel.

Name: post-that-hangs
Version: 1.0
Release: 1
Summary: %{name}
License: MIT

%description
%{summary}

%post
echo entering %{name}
while true; do sleep 1; done

%files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment