Changes in the DNF hook API compared to YUM

This table provides what alternative hooks are available in DNF compared to YUM.

Hook Number YUM hook DNF hook
1 config init
2 postconfig init
3 init init
4 predownload  
5 postdownload  
6 prereposetup  
7 postreposetup sack
8 exclude resolved
9 preresolve  
10 postresolve resolved but no re-resolve
11 pretrans pre_transaction
12 postrans transaction
13 close transaction
14 clean  

Feel free to file an RFE for missing functionality if you need it.