Você pode controlar isso com a opção history_list_view
Por exemplo (para um comando de um tiro) ...
sudo yum --setopt=history_list_view=commands history list all
Os bits relevantes das páginas do manual yum e yum.conf são ...
yum
In "history list" you can change the behaviour of the 2nd column via the configuration option history_list_view.
yum.conf
history_list_view Which column of information to display in the "yum history list" command. There are currently three options: users, cmds (or commands), auto.
Older versions of yum acted like "users", which always outputs the user who initiated the yum transaction. You can now specify "commands" which will instead always output the command line of the transaction. You can also specify "single-user-commands" which will display the users if there are more than one, otherwise it will display the command line.