/pug

Automatically Gist-synchronises Pacman & AUR installed package lists.

Primary LanguageShell

Pug

License Tools (Gist) Vote for pug

"Pug is a ALPM-hook to automatically save installed Pacman & AUR package lists into Gist files."

Inspired by plist-gist and pacmanity.

Perks

  • Painless: Backup and easily restore package lists
  • Elegant: Same text coloration than pacman
  • Smart: Gist revision after each command if change

Gist revisions

Requirements

  • pacman - A library-based package manager with dependency support
  • gist - Potentially the best command line gister

Installation

The install process will ask your Github login to create Gist files and generate an OAuth2 access token.
pug uses that token to update your Gists as needed.

Stable release package (AUR)

$ pacaur -S pug

Git package (AUR)

$ pacaur -S pug-hook-git

Manually

$ git clone https://github.com/Ventto/pug.git
$ cd pug
$ sudo make install (default: INSTALLGIST=1, gists creation)
# Or Uninstall
$ sudo make uninstall

Restore

Quickly install the package lists from Gists.

  • Install Pacman package list:
$ wget -O pacman-list.pkg [URL]
$ pacman -S - < pacman-list.pkg
  • Install AUR packag list:
$ wget -O aur-list.pkg [URL]
$ xargs <aur-list.pkg pacaur -S --noedit