'List all packages available in the system.'

def list_all(self):

    logging.debug('Listing    all    system    packages    (may    take    a    while)')
    installed_packages = []
    cmd_result = utils.run('dpkg    -l', verbose=False)
    out = cmd_result.stdout.strip()
    raw_list = out.splitlines()[5:]
    for line in raw_list:
        parts = line.split()
        if (parts[0] == 'ii'):
            installed_packages.append(('%s-%s' % (parts[1], parts[2])))
    return installed_packages
