Esempio n. 1
0
def nopackage(pkg_name):
    """
    Require a arch package to be uninstalled.

    Example::

        from fabtools import require

        require.arch.nopackage('apache2')
    """
    if is_installed(pkg_name):
        uninstall(pkg_name)
Esempio n. 2
0
def nopackages(pkg_list):
    """
    Require several arch packages to be uninstalled.

    Example::

        from fabtools import require

        require.arch.nopackages([
            'perl',
            'php5',
            'ruby',
        ])
    """
    pkg_list = [pkg for pkg in pkg_list if is_installed(pkg)]
    if pkg_list:
        uninstall(pkg_list)
Esempio n. 3
0
def uninstall_couchdb():
    arch.uninstall("couchdb")
    print(green("CouchDB %s successfully uninstalled" % version))
Esempio n. 4
0
def uninstall_postfix():
    arch.uninstall("postfix")
Esempio n. 5
0
def uninstall_nodejs():
    arch.uninstall("nodejs")
    print(green("Node successfully uninstalled"))