

def uninstall(packages, purge=False, options=None):
    '\n    Remove one or more packages.\n\n    If *purge* is ``True``, the package configuration files will be\n    removed from the system.\n\n    Extra *options* may be passed to ``apt-get`` if necessary.\n    '
    manager = MANAGER
    command = ('purge' if purge else 'remove')
    if (options is None):
        options = []
    if (not isinstance(packages, basestring)):
        packages = ' '.join(packages)
    options.append('--assume-yes')
    options = ' '.join(options)
    cmd = ('%(manager)s %(command)s %(options)s %(packages)s' % locals())
    run_as_root(cmd, pty=False)

dataset/ETHPy150Open ronnix/fabtools/fabtools/deb.py uninstall/original