[Cleanup] Cleaned up the rpm implementation to be slightly more efficient when not used.
[Fix] Fixed a bug related to listing packages