Add packagestates file generation
Generate package states after update and install command