def test_install_invalid_archive(tmp_path):
    data = b'data'
    file_path = (tmp_path / 'test.tar')
    with open(file_path, 'wb') as f:
        f.write(data)
    with pytest.raises(click.exceptions.Exit):
        install(file_path, ['https://example.com'], cache=False, force=False, start_on_boot=False)
    assert (os.listdir(tmp_path) == ['test.tar'])
def test_install_invalid_archive(tmp_path):
    data = b'data'
    file_path = (tmp_path / 'test.tar')
    with open(file_path, 'wb') as f:
        f.write(data)
    with pytest.raises(click.exceptions.Exit):
        install(file_path, ['https://example.com'], cache=False, force=False, start_on_boot=False)
    assert (os.listdir(tmp_path) == ['test.tar'])