Skip to content

Instantly share code, notes, and snippets.

@killertofus
Last active August 26, 2025 20:22
Show Gist options
  • Select an option

  • Save killertofus/f40a03c262c19a78aa917197e818e49a to your computer and use it in GitHub Desktop.

Select an option

Save killertofus/f40a03c262c19a78aa917197e818e49a to your computer and use it in GitHub Desktop.
import git # sudo pacman -S python-gitpython
import tempfile
x = input('Enter a package to download: ')
y= tempfile.tempdir = '/tmp/' + x
repo = git.Repo.clone_from('https://github.com/archlinux/aur', y, branch=x, single_branch=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment