def METHOD_NAME(install_list_path, debian_pkg_names, apt_cache):
    debian_pkg_versions = get_binary_package_versions(apt_cache, debian_pkg_names)
    with open(install_list_path, 'w') as out_file:
        for pkg, pkg_version in sorted(debian_pkg_versions.items()):
            out_file.write('%s=%s\n' % (pkg, pkg_version))