Crates.io | system-updater |
lib.rs | system-updater |
version | 0.1.0 |
source | src |
created_at | 2023-08-13 15:06:09.030536 |
updated_at | 2023-08-13 15:06:09.030536 |
description | A tool to help keeping your system up to date. |
homepage | |
repository | https://framagit.org/Zykino/system-updater |
max_upload_size | |
id | 943374 |
size | 75,575 |
A tool to help keeping your system up to date.
This tool will remember the applications you installed and update them all (even from a git repo). To do that you will need to configure all the commands you want to run when upgrating your system (see the example_config
folder).
See also topgrade for a solution that auto-detect everything it can.
The configuration folder is at the standard path for configuration on your system and the commads should be in the packagers subfolder.
Example on linux it is at ~/.config/systemupdater/packagers/
Just start the program, no option needed in you day to day usage.
sup
Each packager file is executed in alphabetical order. To help maintain a coherent order of execution we use the following scheme: <RANK>-<NAME>
.
Where <RANK>
is a number corresponding to the moment the packager should be executed. And <NAME>
the human name you want to call it.
The current default <RANK>
are categorized as follow:
apt
, …)flatpak
, …)Note: For now the ranks are only a suggestion, in the future we expect to be able to start all the one with the same <RANK>
in parallel. Hence the space between steps: you may not want to run multiples CPU intensive packager in the same time.
cargo install --locked system-updater
You will also need some configurations so the program knows what to execute. You can find the latest config examples in the git repo.
cd /tmp
curl -O "https://framagit.org/Zykino/system-updater/-/archive/master/system-updater-master.tar.gz?path=example_packagers"
tar -xzf system-updater-master.tar.gz\?path=example_packagers
# On most systems:
mv system-updater-master-example_packagers/example_packagers/ $HOME/.config/systemupdater/packagers
which
(the crate?) if the command exist before trying to execute it? (especially with admin rights)This is unordered. Following my motivations and PR?
--no-continue -K
argument to stop at the first errorsudo
and equivalent, add a config to say "needAdminRights" or "execute as" == sudo <username>
sudo
’s password)--dump
option? Something else?Updater
’s struct