moved update-scripts from common repo
This commit is contained in:
parent
0bcdd04b48
commit
0814a84bf2
9
update-scripts/backup-system.sh
Executable file
9
update-scripts/backup-system.sh
Executable 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
11
update-scripts/update-all.sh
Executable 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"
|
8
update-scripts/update-flatpak.sh
Executable file
8
update-scripts/update-flatpak.sh
Executable 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
12
update-scripts/update-mamba.sh
Executable 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
14
update-scripts/update-system.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user