properly populates install and remove pkgs lists