Clean up unused packages after installation

Fixes #166.
This commit is contained in:
Rohan Garg 2014-11-27 11:02:42 +01:00
parent 5b864c5dc3
commit ac5cecee19

View File

@ -55,6 +55,7 @@ class PackageManager:
check_chroot_call(["urpme"] + pkgs) check_chroot_call(["urpme"] + pkgs)
elif self.backend == "apt": elif self.backend == "apt":
check_chroot_call(["apt-get", "--purge", "-q", "-y", "remove"] + pkgs) check_chroot_call(["apt-get", "--purge", "-q", "-y", "remove"] + pkgs)
check_chroot_call(["apt-get", "--purge", "-q", "-y", "autoremove"])
elif self.backend == "pacman": elif self.backend == "pacman":
check_chroot_call(["pacman", "-R"] + pkgs) check_chroot_call(["pacman", "-R"] + pkgs)