Which command must you use to undo the last two yum transactions?

Examine this command and its output:
#yum history list Loaded plugins: security ID
Login user Data and time Action(s)
Altered
3
<oracle>
2014-07-2913:34
Install
3
2
<oracle>
2014-07-2913:33
Install
7
1
<oracle>
2014-07-2913:33
Install
1
history list
Which command must you use to undo the last two yum transactions?

Examine this command and its output:
#yum history list Loaded plugins: security ID
Login user Data and time Action(s)
Altered
3
<oracle>
2014-07-2913:34
Install
3
2
<oracle>
2014-07-2913:33
Install
7
1
<oracle>
2014-07-2913:33
Install
1
history list
Which command must you use to undo the last two yum transactions?

A.
# yum history rollback 2

B.
# yum history rollback 3

C.
# yum history undo last-1

D.
# yum history undo last-3



Leave a Reply 4

Your email address will not be published. Required fields are marked *


deyo

deyo

B but not 100%

Chu Ha Khanh

Chu Ha Khanh

there is no rollback option.
I think last-1
C

Chu Ha Khanh

Chu Ha Khanh

tested rollback will roll to the system state at session ID. I think command should be
yum history rollback 1
so should be A

alex wang

alex wang

yum history rollback 1
maybe is A

The undo/redo/rollback commands take either a single transaction id or the keyword last and an offset from the last transaction (Eg. if you’ve done 250 transactions, “last” refers to transaction 250, and “last-4” refers to transaction 246).

The undo/redo commands act on the specified transaction, undo’ing or repeating the work of that transaction. While the roll-back command will undo all transactions up to the point of the specified transaction. For example, if you have 3 transactions, where package A; B and C where installed respectively. Then “undo 1” will try to remove package A, “redo 1” will try to install package A (if it is not still installed), and “rollback 1” will try to remove packages B and C. Note that after a “rollback 1” you will have a fourth transaction, although the ending rpmdb version (see: yum version) should be the same in transactions 1 and 4