deb packages installation refactored with helper method

A helper method was developed to install a deb package only if is not
already installed.