def package_uninstall(module, name, src, category):
    adminfile = create_admin_file()
    if category:
        cmd = [ 'pkgrm', '-na', adminfile, '-Y', name ]
    else:
        cmd = [ 'pkgrm', '-na', adminfile, name]
    (rc, out, err) = run_command(module, cmd)
    os.unlink(adminfile)
    return (rc, out, err)