%post # This will trigger on install if [ "$1" -eq "1" ]; then echo "I am a honkeycorn: 1" fi # this will trigger on upgrade if [ "$1" -eq "2" ]; then echo "I am a honkeycorn: 2" fi # 0 triggers in %postun