moved update-scripts from common repo

This commit is contained in:
zorc 2023-10-31 22:10:39 +01:00 committed by Damian Goeldi
parent 84032a31d0
commit 2d4cd76a7b
5 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -eEuxo pipefail
sudo timeshift --list
sudo timeshift --create --tags D
sudo timeshift --list

11
update-scripts/update-all.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -eEuxo pipefail
script_dir="$(realpath -e "$(dirname "${BASH_SOURCE[0]}")")"
"${script_dir}/update-system.sh"
"${script_dir}/update-flatpak.sh"
"${script_dir}/update-mamba.sh"

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eEuxo pipefail
sudo flatpak update
flatpak uninstall --unused --delete-data

12
update-scripts/update-mamba.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -eEuxo pipefail
for env in $(mamba env list | awk '/^[a-z]/ { print $1 }'); do
mamba update -n "${env}" --all
mamba update -n "${env}" python
done
mamba clean --all

14
update-scripts/update-system.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -eEuxo pipefail
sudo apt clean
sudo apt update
sudo apt full-upgrade
sudo apt autopurge
sudo apt purge $(dpkg -l | awk '/^rc/ { print $2 }')
sudo fwupdmgr refresh --force
sudo fwupdmgr update