No description
Find a file
2019-03-27 03:08:19 -05:00
archlinux Create cargo project and performance improvements. 2019-03-26 23:00:02 -05:00
bin Add binary file to new project. 2019-03-26 23:14:56 -05:00
src Use references in output syntax 2019-03-27 00:07:18 -05:00
.gitignore Create cargo project and performance improvements. 2019-03-26 23:00:02 -05:00
Cargo.lock Version bumped to 0.1.1 2019-03-27 03:08:19 -05:00
Cargo.toml Version bumped to 0.1.1 2019-03-27 03:08:19 -05:00
README.md Create cargo project and performance improvements. 2019-03-26 23:00:02 -05:00
upcheck.service Fix Dbus error when using the systemd service. 2019-03-27 02:59:19 -05:00
upcheck.timer Fix Dbus error when using the systemd service. 2019-03-27 02:59:19 -05:00

upcheck

Checker for ArchLinux available updates and send it via notify-rust.

How to install and get it working?

First install pacman-contrib from ArchLinux repos:

# pacman -Syu --needed pacman-contrib

Using AUR package:

Install the upcheck package.

Manually for user only:

Installation is easy, put the bin/upcheck binary in $HOME/.local/bin/, then put the upcheck.service and upcheck.timer into $HOME/.config/systemd/user/. Edit the upcheck.service file in the ExecStart= section pointing to the upcheck executable path and finally enable/start upcheck.timer with the command systemctl --user enable upcheck.timer && systemctl --user start upcheck.timer

Important note: you need a notifications server if you aren't using Cinnamon, Deepin, Enlightenment, GNOME, GNOME Flashback or KDE Plasma.

Building yourself

If you don't want to use the provided binary, you can compile it following the next commands:

# pacman -S rust
$ git clone https://gitlab.com/edu4rdshl/upcheck.git
$ cd upcheck
$ cargo build --release
$ cp target/release/upcheck $HOME/.local/bin/

Then continue with "How to install and get it working" skipping the binary section.

How it works?

It use the checkupdates bash script provided by the pacman-contrib package. First, it exec the command checkupdates and save the output in a variable, if the variable is not an empty string, mean that there are available updates and then send the variable content using the notify-rust crate.

What is the purpose?

It doesn't have any special purpose, it was created only trying to avoid the user manual interaction of checking available updates everytime and show it when are available.

How can I change the execution frequency time?

Modify the upcheck.timer unit and change the OnUnitActiveSec= option to what you want. See man 7 systemd.time for the time specifications.

That is all.