All Projects → simon04 → Aur Out Of Date

simon04 / Aur Out Of Date

Licence: gpl-3.0
Determines out-of-date AUR packages w.r.t. upstream version

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Aur Out Of Date

Aurutils
Helper tools for the AUR.
Stars: ✭ 695 (+2006.06%)
Mutual labels:  archlinux, aur
arch-pkgs
Management repo for my Arch Linux systems. Mirror of https://gitlab.com/mdaffin/arch-pkgs
Stars: ✭ 79 (+139.39%)
Mutual labels:  aur, archlinux
toolbox
Unified kit with all the scripts required for maintaining the repository 🧰
Stars: ✭ 60 (+81.82%)
Mutual labels:  aur, archlinux
abs
PKGBUILDs for the Arch User Repository
Stars: ✭ 38 (+15.15%)
Mutual labels:  aur, archlinux
Pacaur
[unmaintained] An AUR helper that minimizes user interaction
Stars: ✭ 818 (+2378.79%)
Mutual labels:  archlinux, aur
aurblobs
Automatically create binary repositories from AUR packages
Stars: ✭ 14 (-57.58%)
Mutual labels:  aur, archlinux
cargo-aur
Prepare Rust projects to be released on the Arch Linux User Repository
Stars: ✭ 49 (+48.48%)
Mutual labels:  aur, archlinux
Pacback
Advanced Version Control for Arch Linux
Stars: ✭ 146 (+342.42%)
Mutual labels:  archlinux, aur
Deepin Wine Tim Arch
Tencent TIM on Deepin Wine5(com.qq.office.deepin) For Archlinux
Stars: ✭ 255 (+672.73%)
Mutual labels:  archlinux, aur
PKGBUILD
PKGBUILDs; almost all on the AUR
Stars: ✭ 16 (-51.52%)
Mutual labels:  aur, archlinux
Yay
Yet another Yogurt - An AUR Helper written in Go
Stars: ✭ 7,100 (+21415.15%)
Mutual labels:  archlinux, aur
Octopi
A powerful Pacman (Package Manager) front end using Qt libs
Stars: ✭ 331 (+903.03%)
Mutual labels:  archlinux, aur
Rua
Build tool for Arch Linux providing control, review and jailed build options
Stars: ✭ 224 (+578.79%)
Mutual labels:  archlinux, aur
Trizen
Lightweight AUR Package Manager
Stars: ✭ 696 (+2009.09%)
Mutual labels:  archlinux, aur
Ansible Aur
Ansible module to manage packages from the AUR
Stars: ✭ 149 (+351.52%)
Mutual labels:  archlinux, aur
gitkraken
Arch User Repository Gitkraken
Stars: ✭ 113 (+242.42%)
Mutual labels:  aur, archlinux
Asus Fan Control
🌀 Fan control for ASUS devices running Linux.
Stars: ✭ 120 (+263.64%)
Mutual labels:  archlinux, aur
Cylon
A CLI TUI menu driven bash shell script supporting updates, maintenance, backups and system checks for an Arch based Linux distro
Stars: ✭ 121 (+266.67%)
Mutual labels:  archlinux, aur
lilac
Lilac is the build bot for archlinuxcn
Stars: ✭ 87 (+163.64%)
Mutual labels:  packaging, archlinux
Bauh
Graphical user interface for managing your Linux applications. Supports AppImage, Arch (repositories/AUR), Flatpak, Snap and native Web applications.
Stars: ✭ 280 (+748.48%)
Mutual labels:  archlinux, aur

aur-out-of-date

Iterates through a user's AUR (Arch User Repository) packages, and determines out-of-date packages w.r.t. their upstream version.

Installation

$ go get github.com/simon04/aur-out-of-date

Since modern Go features (such as modules) are used, at least Go 1.13 is required.

The tool is also available in AUR: aur-out-of-date

Usage

$ aur-out-of-date
Usage of aur-out-of-date:
  -config string
        Config file (default "$XDG_CONFIG_HOME/aur-out-of-date/config.json")
  -devel
        Check -git/-svn/-hg packages
  -flag
        Flag out-of-date on AUR
  -json
        Generate JSON Text Sequences (RFC 7464)
  -local
        Local .SRCINFO files
  -pkg
        AUR package name(s)
  -statistics
        Print summary statistics
  -update
        Update pkgver/pkgrel in local PKGBUILD files
  -user string
        AUR username

AUR packages can be obtained …

  • for a given AUR user (using -user simon04; specify -devel to include VCS packages), or
  • from a list of packages via AUR RPC (using -pkg package1 package2 …), or
  • from local .SRCINFO files (using -local packages/*/.SRCINFO).
$ aur-out-of-date -user simon04
[OUT-OF-DATE] [python-mwclient] Package python-mwclient should be updated from 0.8.6-1 to 0.8.7-1
[OUT-OF-DATE] [nodejs-osmtogeojson] Package nodejs-osmtogeojson should be updated from 2.2.12-1 to 3.0.0
[OUT-OF-DATE] [spectre-meltdown-checker] Package spectre-meltdown-checker should be updated from 0.31-1 to 0.32

$ aur-out-of-date -user simon04 -devel
[UP-TO-DATE]  [ocproxy-git] Package ocproxy-git 1.60.r8.g8f15425-3 matches upstream version 1.60

$ aur-out-of-date -pkg caddy dep aur-out-of-date
[UP-TO-DATE]  [aur-out-of-date] Package aur-out-of-date 0.4.0-1 matches upstream version 0.4.0
[UP-TO-DATE]  [caddy] Package caddy 0.10.10-3 matches upstream version 0.10.10
[UP-TO-DATE]  [dep] Package dep 0.3.2-2 matches upstream version 0.3.2

$ aur-out-of-date -local packages/*/.SRCINFO

The output can be switched to a machine-readable format – JavaScript Object Notation (JSON) Text Sequences – using -json.

$ aur-out-of-date -json -pkg nodejs-osmtogeojson spectre-meltdown-checker
{"type":"package","name":"nodejs-osmtogeojson","message":"Package nodejs-osmtogeojson should be updated from 2.2.12-1 to 3.0.0","version":"2.2.12-1","upstream":"3.0.0","status":"OUT-OF-DATE"}
{"type":"package","name":"spectre-meltdown-checker","message":"Package spectre-meltdown-checker 0.35-1 matches upstream version 0.35","version":"0.35-1","upstream":"0.35","status":"UP-TO-DATE"}

Summary statistics can be enabled using -statistics.

The option -flag flags out-of-date packages on AUR after a user prompt: "Should the package … be flagged out-of-date?"

The tool aur-out-of-date exists with code 4 if at least one out-of-date package has been found.

Principle

For each package, the upstream URL and/or source URL is matched against supported platforms. For those platforms the latest release is obtained via an API/HTTP call.

Configuration

The tool reads a configuration file from $XDG_CONFIG_HOME/aur-out-of-date/config.json.

{
  "ignore": {
    "foo": ["*"],
    "osmtogeojson": ["3.0.0-beta.3", "3.0.0-rc.1"]
  },
  "scripts": {
    "bar": "echo 42",
    "aurweb": "curl -s https://aur.archlinux.org/ | grep aurweb.git/log | grep -oE 'v[1-9][.0-9]+' | head -n1"
  }
}

Ignoring versions

The ignore key configuration file allows to ignore certain package versions from being reported as out-of-date. The string "*" acts as a placeholder for all versions.

Running aur-out-of-date -pkg osmtogeojson yields:

[UNKNOWN] [osmtogeojson][3.0.0b3-2] ignoring package upgrade to 3.0.0-beta.3

Using custom version script

You may specify a custom version script via scripts. The given script is executed as /bin/sh -c $SCRIPT, and its output is used as upstream version.

[UP-TO-DATE] [bar] Package bar 42-1 matches upstream version 42

Related projects

License

GNU General Public License v3.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].