Fix and use r_proc_pkgs for removing packages.