Commit 735eb6ea authored by Michael Shigorin's avatar Michael Shigorin

mediacheck: purge more packages

No use to hunt make or diff file-by-file. Well this chroot should have been more lean in the first place (or a few files in initrd) but life is short so better use/baby/steps.
parent 8abdb740
#!/bin/sh #!/bin/sh
# everything needed should have been done within initrd when this boots # everything needed should have been done within initrd when this boots
rpm -e --nodeps apt libapt rpm librpmbuild librpm 2>/dev/null ||: list="$(rpm -qa apt diffutils libapt librpm* make rpm shadow-utils udev* vim*)"
[ -z "$list" ] || rpm -e --nodeps $list 2>/dev/null ||:
rm -rf /var/lib/apt /var/cache/apt /var/lib/rpm rm -rf /var/lib/apt /var/cache/apt /var/lib/rpm
rm -rf /lib/modules rm -rf /lib/modules
rm -rf /usr/share rm -rf /usr/share
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment