def METHOD_NAME(self):
    smg = SoftwareManager()
    self.cpu_family = cpu.get_family()
    self.dist = distro.detect()
    if self.dist.name in ['centos', 'fedora', 'rhel', 'SuSE']:
        pkgs = ['pcp', 'pcp-pmda-perfevent']
    elif self.dist.name in ['Ubuntu', 'debian']:
        pkgs = ['pcp']
    else:
        self.cancel("PCP is not supported on %s" % self.dist.name)
    for pkg in pkgs:
        if not smg.check_installed(pkg) and not smg.install(pkg):
            self.cancel("Package %s is missing/could not be installed"
                        % pkg)