-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathupdate-packages
More file actions
executable file
·48 lines (37 loc) · 990 Bytes
/
update-packages
File metadata and controls
executable file
·48 lines (37 loc) · 990 Bytes
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
#!/usr/bin/env bash
#
# Update software packages via some package managers.
cd -- "${XDG_OPT_HOME:?}" ||
exit 1
printf -v horiz %80s
.hd() {
printf '%s\n' "${horiz// /-}" "$1" "${horiz// /-}" 1>&2
}
.hd 'apt and snap'
command -- sudo sh -c '
command -- apt-get update;
#apt-get -y dist-upgrade
command -- apt-get -y upgrade
#apt-get autoremove --purge;
#apt-get autoclean;
exec snap refresh;
'
# .hd cabal\ packages;
# cabal v1-update;
# cabal v1-install world --upgrade-dependencies --force-reinstalls;
# .hd composer\ packages;
# composer global update;
# .hd cpan\ modules;
# cpan-outdated -p --exclude-core |
# cpanm -iv --self-contained;
# .hd go\ packages;
# go get -v -u "$GOPATH/...";
.hd latch
command -- /home/latch/bin/latch mr mirror
# .hd npm\ modules;
# npm update -g;
# .hd python3;
# python3 -m pip freeze --user |
# sed 's:==.*::' |
# xargs python3 -m pip install --user --upgrade;
# vim: set ft=zsh :