#!/bin/sh set -e # The output is already sorted dpkg-query --show > /etc/package-list