#!/bin/sh set -e if [ "$1" = "purge" ]; then rm -rf /var/lib/rpm /usr/src/rpm rm -f /etc/rpm/macros rmdir /etc/rpm 2>/dev/null || true rm -rf /usr/lib/rpm/*-rpm-linux fi