-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackages.yaml
More file actions
195 lines (189 loc) · 5.12 KB
/
Copy pathpackages.yaml
File metadata and controls
195 lines (189 loc) · 5.12 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
$schema: https://github.com/devbaraus/settupper/blob/main/src/packages.schema.json
version: 1
groups:
- id: dev-tools
name: Development Tools
- id: editors
name: Editors
- id: runtimes
name: Runtimes
apps:
- id: fish
name: Fish Shell
group: shell
description: Modern interactive shell with autocomplete and syntax highlighting
check:
default:
- command -v fish
actions:
install:
fedora:
- sudo dnf install fish -y
- chsh -s $(which fish)
update:
fedora:
- sudo dnf upgrade -y fish
uninstall:
fedora:
- sudo dnf remove -y fish
- id: git
name: Git
group: dev-tools
description: Version control tool
check:
default:
- command -v git
windows:
- where git
actions:
install:
ubuntu:
- sudo apt-get update
- sudo apt-get install -y git
# fedora:
# - sudo dnf install -y git
macos:
- brew install git
windows:
- winget install --id Git.Git -e --source winget
update:
ubuntu:
- sudo apt-get install --only-upgrade -y git
fedora:
- sudo dnf upgrade -y git
macos:
- brew upgrade git
windows:
- winget upgrade --id Git.Git -e
uninstall:
ubuntu:
- sudo apt-get remove -y git
fedora:
- sudo dnf remove -y git
macos:
- brew uninstall git
windows:
- winget uninstall --id Git.Git -e
- id: vscode
name: VS Code
group: editors
description: Code editor
check:
default:
- command -v code
windows:
- where code
actions:
install:
ubuntu:
- sudo snap install code --classic
fedora:
- sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
- sudo sh -c 'printf "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc\n" > /etc/yum.repos.d/vscode.repo'
- sudo dnf install -y code
macos:
- brew install --cask visual-studio-code
windows:
- winget install --id Microsoft.VisualStudioCode -e --source winget
update:
ubuntu:
- sudo snap refresh code
fedora:
- sudo dnf upgrade -y code
macos:
- brew upgrade --cask visual-studio-code
windows:
- winget upgrade --id Microsoft.VisualStudioCode -e
uninstall:
ubuntu:
- sudo snap remove code
fedora:
- sudo dnf remove -y code
macos:
- brew uninstall --cask visual-studio-code
windows:
- winget uninstall --id Microsoft.VisualStudioCode -e
- id: kernel-headers
name: Kernel Headers
group: dev-tools
description: Linux kernel headers (requires reboot)
reboot_on:
install: true
update: true
check:
default:
- test -d /usr/src/linux-headers-$(uname -r)
actions:
install:
ubuntu:
- sudo apt-get update
- sudo apt-get install -y linux-headers-$(uname -r)
fedora:
- sudo dnf install -y kernel-devel kernel-headers
update:
ubuntu:
- sudo apt-get install --only-upgrade -y linux-headers-$(uname -r)
fedora:
- sudo dnf upgrade -y kernel-devel kernel-headers
uninstall:
ubuntu:
- sudo apt-get remove -y linux-headers-$(uname -r)
fedora:
- sudo dnf remove -y kernel-devel kernel-headers
- id: nodejs
name: Node.js
group: runtimes
description: Runtime JavaScript
check:
default:
- command -v node
windows:
- where node
actions:
install:
ubuntu:
- sudo apt-get update
- sudo apt-get install -y nodejs npm
fedora:
- sudo dnf install -y nodejs npm
macos:
- brew install node
windows:
- winget install --id OpenJS.NodeJS -e --source winget
update:
ubuntu:
- sudo apt-get install --only-upgrade -y nodejs npm
fedora:
- sudo dnf upgrade -y nodejs npm
macos:
- brew upgrade node
windows:
- winget upgrade --id OpenJS.NodeJS -e
uninstall:
ubuntu:
- sudo apt-get remove -y nodejs npm
fedora:
- sudo dnf remove -y nodejs npm
macos:
- brew uninstall node
windows:
- winget uninstall --id OpenJS.NodeJS -e
- id: nvm
name: NVM
group: runtimes
description: Node Version Manager
depends_on:
- git
check:
default:
- test -d "$HOME/.nvm"
actions:
install:
default:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
update:
default:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
uninstall:
default:
- rm -rf "$HOME/.nvm"