common: Using clear_packages_cache instead of rm

Much more cleaner
pxe: Using generic packages functions

This is part of task #3579. It's much more easier to use functions from
packages to get a generic package installation process.

This way pxe target got built