def METHOD_NAME(url: str, dest: str = "."):
    subprocess.Popen(f"wget -N {url} -P /tmp".split()).wait()
    file_name = url.split("/")[-1]
    file_path = f"/tmp/{file_name}"
    assert os.path.exists(file_path)
    bin_path = None
    if file_name.endswith(".bin"):
        os.chmod(file_path, os.stat(file_path).st_mode | stat.S_IEXEC)
        subprocess.Popen(f"{file_path} -d {dest}".split()).wait()
        bin_path = f"{dest}/bin"
    elif file_name.endswith(".tgz"):
        with tarfile.open(f"/tmp/{file_name}") as tar:
            tar.extractall(dest)
            rel_bin_path = next(
                member.name for member in tar.getmembers() if "bin" in member.name)
            bin_path = os.path.join(dest, rel_bin_path)
    elif file_name.endswith(".jar"):
        shutil.copyfile(file_path, os.path.join(dest, file_name))
    if bin_path is not None:
        append_bashrc(f"export PATH:$PATH:{bin_path}")