Add mock configuration for building against the local dnf repository
[utils/utils.git] / system-update
CommitLineData
273c3903
MM
1#!/bin/bash
2# system-update [--no-best]
3#
4# Update the system using Matt's RPM tools.
5# https://mattmccutchen.net/utils/#rpm
6
7best=true
8for arg in "$@"; do
9 case "$arg" in
10 (--no-best) best=false;;
11 (*) echo >&2 "Unsupported argument $arg"; exit 1;;
12 esac
13done
14
15# Obviously, if we get many more variations, we'll factor this out...
16if $best; then
17 dnf distro-sync --best && dnf autoremove && rpm-audit && rpmconf-matt && rpm-overrides-matt
18else
19 # No point in trying to audit
20 dnf distro-sync && dnf autoremove && rpmconf-matt && rpm-overrides-matt
21fi