Backport fixes from PR #1611
This patch includes all the fixes in the commits pushed in:
These fixes cover some commands and aliases such as `install-n` and some
similar `*-n` commands, also `localinstall` and `list-updateinfo`, in a
way that they were behaving like the main command rather than the
specific altered behavior from the aliased command.
Tested this patched RPM on a CentOS 8 box and confirmed it fixed all the
commands by testing it using the same test commands used in the upstream