Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.
/ aur-thumbsup Public archive

A tool to manage voting for favorite AUR packages (including systemd service for auto vote)

License

Notifications You must be signed in to change notification settings

bpetlert/aur-thumbsup

Repository files navigation

AUR-Thumbsup 👍

Release AUR:aur-thumbsup License: MIT

A tool to manage voting for favorite AUR packages (including systemd service for auto vote for installed packages)

How Does Auto-Vote Works

aur-thumbsup will vote/unvote only for non-official installed packages. It starts by querying all installed packages that do not exist in official repositories (core, extra, community, and multilib) and then filter out any packages that do not exist in AUR. Finally, vote for any packages that not yet vote and unvote any packages that are not installed anymore.

Installation

Arch Linux

It is available on AUR as aur-thumbsup. To build and install arch package from GIT source:

$ git clone https://github.com/bpetlert/aur-thumbsup.git
$ cd aur-thumbsup
$ makepkg -p PKGBUILD.local
$ pacman -U aur-thumbsup-xxxx-1-x86_64.pkg.tar

Configuration

Setup user and password for aur-thumbsup service:

$ aur-thumbsup create-config /etc/aur-thumbsup.toml
AUR user name:
Password:
Created `/etc/aur-thumbsup.toml`

Then enable/start aur-thumbsup.timer

$ systemctl enable aur-thumbsup.timer
$ systemctl start aur-thumbsup.timer

To change the options of aur-thumbsup timer, run systemctl edit aur-thumbsup.timer

/etc/systemd/system/aur-thumbsup.timer.d/override.conf
[Timer]
OnCalendar=
OnCalendar=daily

Use as Cli

To run aur-thumbsup as a user, it requires to create configuration file for user. Use aur-thumbsup create-config to create default configuration file: ~/.config/aur-thumbsup.toml. Support sub-commands are:

  • autovote Vote/Unvote for installed packages

  • check Check for voted packages

  • check-config Check configuration file

  • create-config Create configuration file

  • list List all voted packages

  • unvote Unvote packages

  • unvote-all Unvote for all installed packages

  • vote Vote for packages

Example Usages

List

Check

Vote

License