fix package removal process and only attempt removing installed pkgs

use precise nvr list when installing