File: rpm.postrm

package info (click to toggle)
rpm 4.14.2.1+dfsg1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 17,592 kB
  • sloc: ansic: 68,414; sh: 31,370; makefile: 884; cpp: 569; python: 485; perl: 222; sed: 16
file content (12 lines) | stat: -rwxr-xr-x 201 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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

#DEBHELPER#