#!/bin/sh set -e # with apt-eatmydata strace -ff -oapt-eatmydata.trace apt-get install -y hello ! grep ^fsync apt-eatmydata.trace* apt-get -y remove apt-eatmydata || dpkg --compare-versions "$(dpkg-query -W -f='${Version}\n' apt)" lt "2.9.22" && apt-get -y remove apt-eatmydata # without apt-eatmydata strace -ff -oapt-eatmydata.trace apt-get install --reinstall hello grep ^fsync apt-eatmydata.trace*