dotfiles/yaourt/export.py

13 lines
332 B
Python
Raw Normal View History

2016-03-19 20:06:06 +00:00
#!/usr/bin/env python3
import os, json
2016-05-06 17:04:10 +01:00
# Update pre-installed packages and repo lists
2016-03-19 20:06:06 +00:00
os.system('sudo yaourt -Syau')
2016-05-06 17:04:10 +01:00
# Install extra packages
2016-03-19 20:06:06 +00:00
packages = " ".join(json.load(open('packages.json')))
2016-03-20 19:38:55 +00:00
os.system("sudo yaourt -S {} ".format(packages))
2016-05-06 17:04:10 +01:00
# Symlink yaourtrc file
os.system('ln -s ~/.dotfiles/yaourt/.yaourtrc ~/.yaourtrc')