-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.update.archlinux.sh
More file actions
executable file
·87 lines (81 loc) · 3.37 KB
/
system.update.archlinux.sh
File metadata and controls
executable file
·87 lines (81 loc) · 3.37 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
clear
echo "This script will do a full system update, including the AUR, using pacman. Please Stand-by."
echo
echo "Please do aurget -Syu --deps if needed or cower -f -c -t ~/local.repository/aur -d -u."
echo "please remark that:"
echo " i) aurget is being deprecated. use cower as much as possible."
echo " ii) i've setup a cower alias @bashrc, so just use -d and -u options."
echo " iii) after enter the folders at local.repository/aur and do makepkg -s, followed by sudo pacman -U *.tar.xz."
echo "One last thought, remember that after an update it might be necessary to update all software that uses it as dependency."
while :
do
clear
cat << EOF
This script will do a full system update, including the AUR, using pacman. Please Stand-by.
Please do aurget -Syu --deps if needed or cower -f -c -t ~/local.repository/aur -d -u.
Please remark that:
i) aurget is being deprecated. use cower as much as possible.
ii) i've setup a cower alias @bashrc, so just use -d and -u options.
iii) after enter the folders at local.repository/aur and do makepkg -s, followed by sudo pacman -U *.tar.xz.
One last thought, remember that after an update it might be necessary to update all software that uses it as dependency.
LocalMachine:
1) Show how many packages are installed
2) Run pacgraph
3) Show disk usage
4) Update mirror list with reflector
5) Full system update
6) Check for available AUR updates with cower
7) Update local.repository/aur with cower
8) Run pacdiff
9) List all explicitly installed packages
10) List all packages no longer required as dependencies (orphans)
21) Remove a package and all its orphan dependencies (sudo pacman -Rs package)
30) Clear pacman cache
41) Sanity check on /etc/passwd
42) Sanity check on /etc/group
Birmingham.twilightparadox.com
50) ssh local machine
Telheiras.twilightparadox.com
60) ssh Pippin (seedbox)
61) ssh Merriadoc (IRC and IM)
62) ssh Frodo (laptop)
63) ssh WD network storage (network storage)
64) ssh Bilbo (htpc)
65) ssh Samwise (netbook)
Palmela.twilightparadox.com
70) ssh ze's pc
Sisaqua.twilightparadox.com
80) ssh rosie (desktop)
99) exit
EOF
read input_1
case $input_1 in
1) echo "This system has"; sudo pacman -Q|wc -l; echo "packages installed.";;
2) pacgraph; feh pacgraph.png;;
3) df;;
4) echo "Please wait while we download mirrorlist, scan and sort mirrors."; sudo reflector -l 12 --sort rate --save /etc/pacman.d/mirrorlist; echo "Mirror selection complete.";;
5) sudo pacman -Syy; sudo pacman -S linux-headers --needed && sudo pacman -Syu; echo "Update complete.";;
6) cower -u;;
7) cower -u -d -c -f -t ~/local.repository/aur; echo "Local Repository updated. Please use makepkg -s to build these packages.";;
8) sudo pacdiff -l -f ~/pacgraph ; echo "Done.";;
9) sudo pacman -Qie|less;;
10) sudo pacman -Qdt|less;;
21) echo "Unimplemented.";;
30) sudo pacman -Scc;;
41) sudo pwck;;
42) sudo grpck;;
50) ssh -p 22 birmingham.twilightparadox.com;;
60) ssh -p 54329 telheiras.twilightparadox.com;;
61) ssh -p 54330 telheiras.twilightparadox.com;;
62) ssh -p 54332 telheiras.twilightparadox.com;;
63) ssh -p 54331 telheiras.twilightparadox.com;;
64) ssh -p 22 telheiras.twilightparadox.com;;
65) ssh -p 54333 telheiras.twilightparadox.com;;
70) ssh -p 22 palmela.twilightparadox.com;;
80) ssh -p 54335 sisaqua.twilightparadox.com;;
99) exit ;;
*) wrong insert;;
esac
read foo
done