-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubupdate
More file actions
executable file
·55 lines (42 loc) · 1 KB
/
ubupdate
File metadata and controls
executable file
·55 lines (42 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# This script is used to update the Ubuntu system
# Update the system
function update_system() {
echo -e "\nUpdating the system"
sudo apt-get update
sudo apt-get upgrade -y
snap refresh
}
function update_other() {
echo -e "\nUpdating: Liam's bashscripts\n"
git -C ~/bin/bashscripts pull
echo -e "\nUpdating: Rust\n"
rustup update
echo -e "\nUpdating: Firmware\n"
fwupdmgr refresh
fwupdmgr get-updates
echo -e "\nUpdating: Neovim Plugins\n"
nvim --headless +PlugUpdate +PlugUpgrade +qa
nvim --headless +CocUpdate +qa
nvim --headless +TSUpdate +qa
echo -e "\nUpdating: Tmux Plugins\n"
~/.tmux/plugins/tpm/bin/update_plugins all
# echo -e "\nUpdating: Boot Loader\n"
# sudo bootctl update
echo -e "\nUpdating: Anaconda\n"
conda update --all
conda update --all -n analysis
echo -e "\nUpdating: NPM\n"
npm update -g
}
function clean() {
echo -e "\nCleaning the system"
sudo apt-get autoremove -y
sudo apt-get autoclean
}
function main() {
update_system
update_other
clean
}
main