Per impostazione predefinita, quando esegui il comando yum history, vedresti solo l'ora e le azioni (aggiornamento, installazione ecc.) Per i pacchetti yum.
# yum history ..... ID | Login user | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 22 | [user1] | 2017-07-19 21:45 | I, U | 279 EE 21 | [oracle] | 2017-07-08 14:36 | Install | 1 20 | [oracle] | 2017-07-08 14:36 | Install | 1 EE 19 | [oracle] | 2017-07-08 14:35 | Install | 1 EE 18 | [oracle] | 2017-07-08 00:32 | Install | 1
Per visualizzare anche i comandi yum eseguiti nell'output dobbiamo aggiungere history_list_view=cmds voce in /etc/yum.conf file. Per impostazione predefinita, questo parametro non viene aggiunto nel file di configurazione yum.
# vi /etc/yum.conf history_list_view=cmds
Se ora controlli, puoi trovare comandi come "installa, aggiorna" nella seconda colonna. Avresti anche le opzioni utilizzate con il comando come –exclude.
# yum history .... ID | Command line | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 22 | --exclude=kernel*,*relea | 2017-07-19 21:45 | I, U | 279 EE 21 | install oracleasmlib-2.0 | 2017-07-08 14:36 | Install | 1 20 | install kmod-oracleasm-2 | 2017-07-08 14:36 | Install | 1 EE 19 | install oracleasm-suppor | 2017-07-08 14:35 | Install | 1 EE 18 | install compat-libcap* - | 2017-07-08 00:32 | Install | 1