get pkg version before install it