8000 GitHub - ublue-os/uupd
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ublue-os/uupd

Repository files navigation

u(niversal )upd(ate)

Small update program written in golang intended for use in Universal Blue, updates flatpak apps, distrobox, brew, bootc and rpm-ostree (as a fallback)

Includes systemd timers and services for auto update

Installation

This program is now in the ublue-os/packages COPR

You can install it on Fedora by running:

Note dnf can be substituted for rpm-ostree or dnf5. The dnf COPR plugin must also be installed for the dnf copr command.

$ sudo dnf copr enable ublue-os/packages
$ sudo dnf install uupd

Note If you are on an image derived from uBlue main, you will need to remove or disable automatic updates with rpm-ostreed, to do this, you need to remove or change this line in the config file: AutomaticUpdatePolicy=stage (set to none if you don't want to remove the line)

Command Line

To run a complete system update, it's recommended to use systemd:

$ systemctl start uupd.service

This allows for passwordless system updates (user must be in wheel group)

Run updates from command line (not recommended)

$ sudo uupd

CLI Options

$ uupd --help

Configuration

Automatic updates are ran from the systemd service, to edit the service file you can run sudo systemctl edit uupd.service from the cmdline and use environment variables:

Environment="UUPD_BATTERY_MIN_PERCENT=20" # Sets the minimum battery percentage required for the update process
Environment="UUPD_NETWORK_MAX_BYTES=500000" # Configures the maximum amount of bytes received allowed before check fails
Environment="UUPD_MEMORY_MAX_PERCENT=90" # Maximum memory usage allowed before check fails
Environment="UUPD_CPU_MAX_LOAD_PERCENT=50" # Maximum cpu load allowed before check fails

Troubleshooting

You can check the uupd logs by running this command:

$ journalctl -exu 'uupd.service'

How do I build this?

  1. just build will build this project and place the binary in output/uupd
  2. sudo ./output/uupd will run an update
  3. You can install this to the system by copying the rules

Devcontainer Usage

  1. When prompted, reopen the repository in Container
  2. Follow above building instructions
  3. Download uupd from container to host and run on your host

FAQ

Q: How do I add my own custom update script?

A: This is meant purely for updating the 'system' components of a Universal Blue image (Distrobox, Flatpak, Bootc, and Brew), anything outside of updating these core components is out of scope

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 11

0