@fredlackey/devutils 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
  3. package/src/commands/install.js +374 -36
  4. package/src/installs/adobe-creative-cloud.js +527 -25
  5. package/src/installs/adobe-creative-cloud.md +605 -0
  6. package/src/installs/appcleaner.js +303 -26
  7. package/src/installs/appcleaner.md +699 -0
  8. package/src/installs/apt-transport-https.js +390 -0
  9. package/src/installs/apt-transport-https.md +678 -0
  10. package/src/installs/atomicparsley.js +624 -26
  11. package/src/installs/atomicparsley.md +795 -0
  12. package/src/installs/aws-cli.js +779 -26
  13. package/src/installs/aws-cli.md +727 -0
  14. package/src/installs/balena-etcher.js +688 -26
  15. package/src/installs/balena-etcher.md +761 -0
  16. package/src/installs/bambu-studio.js +912 -26
  17. package/src/installs/bambu-studio.md +780 -0
  18. package/src/installs/bash-completion.js +554 -23
  19. package/src/installs/bash-completion.md +833 -0
  20. package/src/installs/bash.js +399 -26
  21. package/src/installs/bash.md +993 -0
  22. package/src/installs/beyond-compare.js +585 -26
  23. package/src/installs/beyond-compare.md +813 -0
  24. package/src/installs/build-essential.js +511 -26
  25. package/src/installs/build-essential.md +977 -0
  26. package/src/installs/ca-certificates.js +618 -0
  27. package/src/installs/ca-certificates.md +937 -0
  28. package/src/installs/caffeine.js +490 -26
  29. package/src/installs/caffeine.md +839 -0
  30. package/src/installs/camtasia.js +577 -25
  31. package/src/installs/camtasia.md +762 -0
  32. package/src/installs/chatgpt.js +458 -26
  33. package/src/installs/chatgpt.md +814 -0
  34. package/src/installs/chocolatey.js +447 -0
  35. package/src/installs/chocolatey.md +661 -0
  36. package/src/installs/chrome-canary.js +472 -26
  37. package/src/installs/chrome-canary.md +641 -0
  38. package/src/installs/chromium.js +645 -26
  39. package/src/installs/chromium.md +838 -0
  40. package/src/installs/claude-code.js +558 -26
  41. package/src/installs/claude-code.md +1173 -0
  42. package/src/installs/curl.js +361 -26
  43. package/src/installs/curl.md +714 -0
  44. package/src/installs/cursor.js +561 -26
  45. package/src/installs/cursor.md +970 -0
  46. package/src/installs/dbschema.js +674 -26
  47. package/src/installs/dbschema.md +925 -0
  48. package/src/installs/dependencies.md +435 -0
  49. package/src/installs/development-tools.js +600 -0
  50. package/src/installs/development-tools.md +977 -0
  51. package/src/installs/docker.js +1010 -25
  52. package/src/installs/docker.md +1109 -0
  53. package/src/installs/drawio.js +1001 -26
  54. package/src/installs/drawio.md +795 -0
  55. package/src/installs/elmedia-player.js +328 -25
  56. package/src/installs/elmedia-player.md +556 -0
  57. package/src/installs/ffmpeg.js +870 -25
  58. package/src/installs/ffmpeg.md +852 -0
  59. package/src/installs/file.js +464 -0
  60. package/src/installs/file.md +987 -0
  61. package/src/installs/gemini-cli.js +793 -26
  62. package/src/installs/gemini-cli.md +1153 -0
  63. package/src/installs/git.js +382 -26
  64. package/src/installs/git.md +907 -0
  65. package/src/installs/gitego.js +931 -26
  66. package/src/installs/gitego.md +1172 -0
  67. package/src/installs/go.js +913 -26
  68. package/src/installs/go.md +958 -0
  69. package/src/installs/google-chrome.js +801 -25
  70. package/src/installs/google-chrome.md +862 -0
  71. package/src/installs/gpg.js +412 -73
  72. package/src/installs/gpg.md +1056 -0
  73. package/src/installs/homebrew.js +1015 -26
  74. package/src/installs/homebrew.md +988 -0
  75. package/src/installs/imageoptim.js +950 -26
  76. package/src/installs/imageoptim.md +1119 -0
  77. package/src/installs/installers.json +2297 -0
  78. package/src/installs/jq.js +382 -26
  79. package/src/installs/jq.md +809 -0
  80. package/src/installs/keyboard-maestro.js +701 -26
  81. package/src/installs/keyboard-maestro.md +825 -0
  82. package/src/installs/latex.js +771 -26
  83. package/src/installs/latex.md +1095 -0
  84. package/src/installs/lftp.js +338 -26
  85. package/src/installs/lftp.md +907 -0
  86. package/src/installs/lsb-release.js +346 -0
  87. package/src/installs/lsb-release.md +814 -0
  88. package/src/installs/messenger.js +829 -26
  89. package/src/installs/messenger.md +900 -0
  90. package/src/installs/microsoft-office.js +550 -26
  91. package/src/installs/microsoft-office.md +760 -0
  92. package/src/installs/microsoft-teams.js +782 -25
  93. package/src/installs/microsoft-teams.md +886 -0
  94. package/src/installs/node.js +886 -26
  95. package/src/installs/node.md +1153 -0
  96. package/src/installs/nordpass.js +698 -26
  97. package/src/installs/nordpass.md +921 -0
  98. package/src/installs/nvm.js +977 -26
  99. package/src/installs/nvm.md +1057 -0
  100. package/src/installs/openssh.js +734 -64
  101. package/src/installs/openssh.md +1056 -0
  102. package/src/installs/pandoc.js +644 -26
  103. package/src/installs/pandoc.md +1036 -0
  104. package/src/installs/pinentry.js +492 -26
  105. package/src/installs/pinentry.md +1142 -0
  106. package/src/installs/pngyu.js +851 -26
  107. package/src/installs/pngyu.md +896 -0
  108. package/src/installs/postman.js +781 -26
  109. package/src/installs/postman.md +940 -0
  110. package/src/installs/procps.js +425 -0
  111. package/src/installs/procps.md +851 -0
  112. package/src/installs/safari-tech-preview.js +355 -25
  113. package/src/installs/safari-tech-preview.md +533 -0
  114. package/src/installs/sfnt2woff.js +640 -26
  115. package/src/installs/sfnt2woff.md +795 -0
  116. package/src/installs/shellcheck.js +463 -26
  117. package/src/installs/shellcheck.md +1005 -0
  118. package/src/installs/slack.js +722 -25
  119. package/src/installs/slack.md +865 -0
  120. package/src/installs/snagit.js +566 -25
  121. package/src/installs/snagit.md +844 -0
  122. package/src/installs/software-properties-common.js +372 -0
  123. package/src/installs/software-properties-common.md +805 -0
  124. package/src/installs/spotify.js +858 -25
  125. package/src/installs/spotify.md +901 -0
  126. package/src/installs/studio-3t.js +803 -26
  127. package/src/installs/studio-3t.md +918 -0
  128. package/src/installs/sublime-text.js +780 -25
  129. package/src/installs/sublime-text.md +914 -0
  130. package/src/installs/superwhisper.js +687 -25
  131. package/src/installs/superwhisper.md +630 -0
  132. package/src/installs/tailscale.js +727 -26
  133. package/src/installs/tailscale.md +1100 -0
  134. package/src/installs/tar.js +389 -0
  135. package/src/installs/tar.md +946 -0
  136. package/src/installs/termius.js +780 -26
  137. package/src/installs/termius.md +844 -0
  138. package/src/installs/terraform.js +761 -26
  139. package/src/installs/terraform.md +899 -0
  140. package/src/installs/tidal.js +752 -25
  141. package/src/installs/tidal.md +864 -0
  142. package/src/installs/tmux.js +328 -26
  143. package/src/installs/tmux.md +1030 -0
  144. package/src/installs/tree.js +393 -26
  145. package/src/installs/tree.md +833 -0
  146. package/src/installs/unzip.js +460 -0
  147. package/src/installs/unzip.md +879 -0
  148. package/src/installs/vim.js +403 -26
  149. package/src/installs/vim.md +1040 -0
  150. package/src/installs/vlc.js +803 -26
  151. package/src/installs/vlc.md +927 -0
  152. package/src/installs/vscode.js +825 -26
  153. package/src/installs/vscode.md +1002 -0
  154. package/src/installs/wget.js +415 -0
  155. package/src/installs/wget.md +791 -0
  156. package/src/installs/whatsapp.js +710 -25
  157. package/src/installs/whatsapp.md +854 -0
  158. package/src/installs/winpty.js +352 -0
  159. package/src/installs/winpty.md +620 -0
  160. package/src/installs/woff2.js +535 -26
  161. package/src/installs/woff2.md +977 -0
  162. package/src/installs/wsl.js +572 -0
  163. package/src/installs/wsl.md +699 -0
  164. package/src/installs/xcode-clt.js +520 -0
  165. package/src/installs/xcode-clt.md +351 -0
  166. package/src/installs/xcode.js +542 -26
  167. package/src/installs/xcode.md +573 -0
  168. package/src/installs/yarn.js +806 -26
  169. package/src/installs/yarn.md +1074 -0
  170. package/src/installs/yq.js +636 -26
  171. package/src/installs/yq.md +944 -0
  172. package/src/installs/yt-dlp.js +683 -26
  173. package/src/installs/yt-dlp.md +946 -0
  174. package/src/installs/yum-utils.js +297 -0
  175. package/src/installs/yum-utils.md +648 -0
  176. package/src/installs/zoom.js +740 -25
  177. package/src/installs/zoom.md +884 -0
  178. package/src/scripts/README.md +567 -45
  179. package/src/scripts/STATUS.md +208 -0
  180. package/src/scripts/afk.js +395 -7
  181. package/src/scripts/backup-all.js +731 -9
  182. package/src/scripts/backup-source.js +711 -8
  183. package/src/scripts/brewd.js +373 -7
  184. package/src/scripts/brewi.js +505 -9
  185. package/src/scripts/brewr.js +512 -9
  186. package/src/scripts/brews.js +462 -9
  187. package/src/scripts/brewu.js +488 -7
  188. package/src/scripts/c.js +185 -7
  189. package/src/scripts/ccurl.js +325 -8
  190. package/src/scripts/certbot-crontab-init.js +488 -8
  191. package/src/scripts/certbot-init.js +641 -9
  192. package/src/scripts/ch.js +339 -7
  193. package/src/scripts/claude-danger.js +253 -8
  194. package/src/scripts/clean-dev.js +419 -8
  195. package/src/scripts/clear-dns-cache.js +525 -7
  196. package/src/scripts/clone.js +417 -7
  197. package/src/scripts/code-all.js +420 -7
  198. package/src/scripts/count-files.js +195 -8
  199. package/src/scripts/count-folders.js +195 -8
  200. package/src/scripts/count.js +248 -8
  201. package/src/scripts/d.js +203 -7
  202. package/src/scripts/datauri.js +373 -8
  203. package/src/scripts/delete-files.js +363 -7
  204. package/src/scripts/docker-clean.js +410 -8
  205. package/src/scripts/dp.js +426 -7
  206. package/src/scripts/e.js +375 -9
  207. package/src/scripts/empty-trash.js +497 -7
  208. package/src/scripts/evm.js +428 -9
  209. package/src/scripts/fetch-github-repos.js +441 -10
  210. package/src/scripts/get-channel.js +329 -8
  211. package/src/scripts/get-course.js +384 -11
  212. package/src/scripts/get-dependencies.js +290 -9
  213. package/src/scripts/get-folder.js +783 -10
  214. package/src/scripts/get-tunes.js +411 -10
  215. package/src/scripts/get-video.js +352 -9
  216. package/src/scripts/git-backup.js +561 -9
  217. package/src/scripts/git-clone.js +477 -9
  218. package/src/scripts/git-pup.js +303 -7
  219. package/src/scripts/git-push.js +380 -8
  220. package/src/scripts/h.js +607 -9
  221. package/src/scripts/hide-desktop-icons.js +483 -7
  222. package/src/scripts/hide-hidden-files.js +522 -7
  223. package/src/scripts/install-dependencies-from.js +440 -9
  224. package/src/scripts/ips.js +647 -10
  225. package/src/scripts/iso.js +354 -8
  226. package/src/scripts/killni.js +561 -7
  227. package/src/scripts/ll.js +451 -8
  228. package/src/scripts/local-ip.js +310 -8
  229. package/src/scripts/m.js +508 -8
  230. package/src/scripts/map.js +293 -8
  231. package/src/scripts/mkd.js +287 -7
  232. package/src/scripts/ncu-update-all.js +441 -8
  233. package/src/scripts/nginx-init.js +702 -12
  234. package/src/scripts/npmi.js +366 -7
  235. package/src/scripts/o.js +495 -8
  236. package/src/scripts/org-by-date.js +321 -7
  237. package/src/scripts/p.js +208 -7
  238. package/src/scripts/packages.js +313 -8
  239. package/src/scripts/path.js +209 -7
  240. package/src/scripts/ports.js +582 -8
  241. package/src/scripts/q.js +290 -8
  242. package/src/scripts/refresh-files.js +378 -10
  243. package/src/scripts/remove-smaller-files.js +500 -8
  244. package/src/scripts/rename-files-with-date.js +517 -9
  245. package/src/scripts/resize-image.js +523 -9
  246. package/src/scripts/rm-safe.js +653 -8
  247. package/src/scripts/s.js +525 -9
  248. package/src/scripts/set-git-public.js +349 -7
  249. package/src/scripts/show-desktop-icons.js +459 -7
  250. package/src/scripts/show-hidden-files.js +456 -7
  251. package/src/scripts/tpa.js +265 -8
  252. package/src/scripts/tpo.js +264 -7
  253. package/src/scripts/u.js +489 -7
  254. package/src/scripts/vpush.js +422 -8
  255. package/src/scripts/y.js +267 -7
  256. package/src/utils/common/os.js +94 -2
  257. package/src/utils/ubuntu/apt.js +13 -7
  258. package/src/utils/windows/choco.js +82 -26
  259. package/src/utils/windows/winget.js +89 -27
@@ -0,0 +1,914 @@
1
+ # Installing Sublime Text
2
+
3
+ ## Overview
4
+
5
+ Sublime Text is a sophisticated text editor for code, markup, and prose. Known for its speed, elegant interface, and powerful features, Sublime Text offers:
6
+
7
+ - **Goto Anything**: Quickly navigate to files, symbols, or lines with a single keyboard shortcut
8
+ - **Multiple Selections**: Make multiple changes at once with multiple cursors
9
+ - **Command Palette**: Access frequently used functions quickly without navigating menus
10
+ - **Distraction Free Mode**: Full-screen editing without any chrome
11
+ - **Split Editing**: Edit files side by side or in multiple panes
12
+ - **Instant Project Switch**: Switch between projects with no save prompts
13
+ - **Cross-Platform**: Available on macOS, Windows, and Linux with a single license
14
+
15
+ Sublime Text is a paid application with an unlimited evaluation period. A license is required for continued use but the editor remains fully functional during evaluation.
16
+
17
+ ## Dependencies
18
+
19
+ ### macOS (Homebrew)
20
+ - **Required:**
21
+ - Homebrew - Install via `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"` or `dev install homebrew`
22
+ - **Optional:** None
23
+ - **Auto-installed:** None (Homebrew automatically handles all Sublime Text dependencies)
24
+
25
+ ### Ubuntu (APT/Snap)
26
+ - **Required:**
27
+ - `sudo` - Pre-installed on Ubuntu
28
+ - `wget` - Install via `sudo apt-get install -y wget` (used for downloading GPG key)
29
+ - **Optional:** None
30
+ - **Auto-installed:**
31
+ - `apt-transport-https` - Installed automatically by the installer script
32
+ - `ca-certificates` - Installed automatically by the installer script
33
+ - `curl` - Installed automatically by the installer script
34
+ - `gnupg` - Installed automatically by the installer script
35
+
36
+ ### Raspberry Pi OS (APT/Snap)
37
+ - **Required:**
38
+ - 64-bit operating system (`aarch64` architecture) - Sublime Text 4 does not support 32-bit systems
39
+ - `sudo` - Pre-installed on Raspberry Pi OS
40
+ - `wget` - Install via `sudo apt-get install -y wget` (used for downloading GPG key)
41
+ - **Optional:** None
42
+ - **Auto-installed:**
43
+ - `apt-transport-https` - Installed automatically by the installer script
44
+ - `ca-certificates` - Installed automatically by the installer script
45
+ - `curl` - Installed automatically by the installer script
46
+ - `gnupg` - Installed automatically by the installer script
47
+
48
+ ### Amazon Linux (DNF/YUM)
49
+ - **Required:**
50
+ - `dnf` or `yum` package manager - Pre-installed on Amazon Linux, RHEL, CentOS, and Fedora
51
+ - x86_64 architecture - Sublime Text does not provide ARM64 RPM packages
52
+ - `sudo` - Pre-installed on Amazon Linux
53
+ - **Optional:**
54
+ - `yum-utils` - Required for `yum-config-manager` on YUM-based systems (Amazon Linux 2); installed automatically by the script if missing
55
+ - `dnf-plugins-core` - Required for `dnf config-manager` on some DNF systems; may need manual installation via `sudo dnf install -y dnf-plugins-core`
56
+ - **Auto-installed:**
57
+ - `yum-utils` - Installed automatically by the installer script when using YUM if `yum-config-manager` is not available
58
+
59
+ ### Windows (Chocolatey/winget)
60
+ - **Required:**
61
+ - Chocolatey - Install via Administrator PowerShell: `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))`
62
+ - **Optional:** None
63
+ - **Auto-installed:** None (Chocolatey automatically handles all Sublime Text dependencies)
64
+
65
+ ### Git Bash (Manual/Portable)
66
+ - **Required:**
67
+ - Chocolatey installed on Windows host - See Windows section above for installation
68
+ - PowerShell access - Pre-installed on Windows
69
+ - Administrator privileges - Required to run Chocolatey commands
70
+ - **Optional:** None
71
+ - **Auto-installed:** None (installation occurs on Windows host via PowerShell/Chocolatey)
72
+
73
+ ## Prerequisites
74
+
75
+ Before installing Sublime Text on any platform, ensure:
76
+
77
+ 1. **Internet connectivity** - Required to download packages
78
+ 2. **Administrative privileges** - Required for system-wide installation (sudo on Linux/macOS, Administrator on Windows)
79
+ 3. **64-bit operating system** - Sublime Text 4 only supports 64-bit systems
80
+
81
+ ## Platform-Specific Installation
82
+
83
+ ### macOS (Homebrew)
84
+
85
+ #### Prerequisites
86
+
87
+ - macOS 10.15 (Catalina) or later
88
+ - Homebrew package manager installed
89
+ - Administrator privileges for Homebrew operations
90
+
91
+ If Homebrew is not installed, install it first:
92
+
93
+ ```bash
94
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
95
+ ```
96
+
97
+ #### Installation Steps
98
+
99
+ Run the following command to install Sublime Text:
100
+
101
+ ```bash
102
+ brew install --quiet --cask sublime-text
103
+ ```
104
+
105
+ The `--quiet` flag suppresses non-essential output, and `--cask` specifies the graphical application version.
106
+
107
+ #### Verification
108
+
109
+ Confirm the installation succeeded:
110
+
111
+ ```bash
112
+ subl --version
113
+ ```
114
+
115
+ Expected output (version numbers may vary):
116
+
117
+ ```
118
+ Sublime Text Build 4200
119
+ ```
120
+
121
+ Launch Sublime Text from Applications or via command line:
122
+
123
+ ```bash
124
+ open -a "Sublime Text"
125
+ ```
126
+
127
+ If the `subl` command is not available, create a symbolic link:
128
+
129
+ ```bash
130
+ sudo ln -sf "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
131
+ ```
132
+
133
+ #### Troubleshooting
134
+
135
+ **Problem**: `subl: command not found` after installation
136
+
137
+ **Solution**: The command-line tool symlink may not exist. Create it manually:
138
+
139
+ ```bash
140
+ sudo ln -sf "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
141
+ ```
142
+
143
+ **Problem**: Homebrew cask installation fails with permission error
144
+
145
+ **Solution**: Fix Homebrew permissions:
146
+
147
+ ```bash
148
+ sudo chown -R $(whoami) /usr/local/Caskroom
149
+ brew install --quiet --cask sublime-text
150
+ ```
151
+
152
+ **Problem**: "Sublime Text.app is damaged and can't be opened" on Apple Silicon
153
+
154
+ **Solution**: Remove the quarantine attribute:
155
+
156
+ ```bash
157
+ xattr -cr "/Applications/Sublime Text.app"
158
+ ```
159
+
160
+ ---
161
+
162
+ ### Ubuntu/Debian (APT)
163
+
164
+ #### Prerequisites
165
+
166
+ - Ubuntu 18.04+ or Debian 10+ (64-bit)
167
+ - sudo privileges
168
+ - wget or curl installed
169
+
170
+ #### Installation Steps
171
+
172
+ **Step 1: Install prerequisites and import GPG key**
173
+
174
+ ```bash
175
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
176
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https ca-certificates curl gnupg
177
+ ```
178
+
179
+ Import the Sublime Text GPG signing key:
180
+
181
+ ```bash
182
+ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo tee /etc/apt/keyrings/sublimehq-pub.asc > /dev/null
183
+ ```
184
+
185
+ **Step 2: Add the Sublime Text repository**
186
+
187
+ ```bash
188
+ echo -e 'Types: deb\nURIs: https://download.sublimetext.com/\nSuites: apt/stable/\nSigned-By: /etc/apt/keyrings/sublimehq-pub.asc' | sudo tee /etc/apt/sources.list.d/sublime-text.sources
189
+ ```
190
+
191
+ **Step 3: Update package lists and install Sublime Text**
192
+
193
+ ```bash
194
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
195
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y sublime-text
196
+ ```
197
+
198
+ #### Verification
199
+
200
+ Confirm the installation succeeded:
201
+
202
+ ```bash
203
+ subl --version
204
+ ```
205
+
206
+ Expected output (version numbers may vary):
207
+
208
+ ```
209
+ Sublime Text Build 4200
210
+ ```
211
+
212
+ Launch Sublime Text:
213
+
214
+ ```bash
215
+ subl
216
+ ```
217
+
218
+ #### Troubleshooting
219
+
220
+ **Problem**: `E: Unable to locate package sublime-text`
221
+
222
+ **Solution**: The repository was not added correctly. Verify the sources file exists:
223
+
224
+ ```bash
225
+ cat /etc/apt/sources.list.d/sublime-text.sources
226
+ ```
227
+
228
+ If empty or missing, repeat Step 2.
229
+
230
+ **Problem**: GPG key import fails
231
+
232
+ **Solution**: Ensure the keyrings directory exists and retry:
233
+
234
+ ```bash
235
+ sudo mkdir -p /etc/apt/keyrings
236
+ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo tee /etc/apt/keyrings/sublimehq-pub.asc > /dev/null
237
+ ```
238
+
239
+ **Problem**: "NO_PUBKEY" error during apt-get update
240
+
241
+ **Solution**: Re-import the GPG key:
242
+
243
+ ```bash
244
+ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/sublimehq-archive.gpg
245
+ ```
246
+
247
+ ---
248
+
249
+ ### Raspberry Pi OS (APT)
250
+
251
+ #### Prerequisites
252
+
253
+ - Raspberry Pi OS (64-bit) - Bookworm or Bullseye
254
+ - Raspberry Pi 3B+ or later (64-bit capable hardware)
255
+ - sudo privileges
256
+
257
+ **Important**: Sublime Text 4 requires a 64-bit operating system. It does not support 32-bit Raspberry Pi OS.
258
+
259
+ Verify your architecture:
260
+
261
+ ```bash
262
+ uname -m
263
+ ```
264
+
265
+ - `aarch64` = 64-bit (supported)
266
+ - `armv7l` = 32-bit (NOT supported)
267
+
268
+ If running 32-bit Raspberry Pi OS, you must upgrade to 64-bit before proceeding.
269
+
270
+ #### Installation Steps
271
+
272
+ The Sublime Text APT repository includes ARM64 packages, allowing installation via the same method as Ubuntu/Debian.
273
+
274
+ **Step 1: Install prerequisites and import GPG key**
275
+
276
+ ```bash
277
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
278
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https ca-certificates curl gnupg
279
+ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo tee /etc/apt/keyrings/sublimehq-pub.asc > /dev/null
280
+ ```
281
+
282
+ **Step 2: Add the Sublime Text repository**
283
+
284
+ ```bash
285
+ echo -e 'Types: deb\nURIs: https://download.sublimetext.com/\nSuites: apt/stable/\nSigned-By: /etc/apt/keyrings/sublimehq-pub.asc' | sudo tee /etc/apt/sources.list.d/sublime-text.sources
286
+ ```
287
+
288
+ **Step 3: Update package lists and install Sublime Text**
289
+
290
+ ```bash
291
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
292
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y sublime-text
293
+ ```
294
+
295
+ #### Verification
296
+
297
+ Confirm the installation succeeded:
298
+
299
+ ```bash
300
+ subl --version
301
+ ```
302
+
303
+ Expected output (version numbers may vary):
304
+
305
+ ```
306
+ Sublime Text Build 4200
307
+ ```
308
+
309
+ Launch Sublime Text from the Programming menu or via command line:
310
+
311
+ ```bash
312
+ subl
313
+ ```
314
+
315
+ #### Troubleshooting
316
+
317
+ **Problem**: Installation fails with architecture error
318
+
319
+ **Solution**: Verify you are running 64-bit Raspberry Pi OS:
320
+
321
+ ```bash
322
+ uname -m
323
+ ```
324
+
325
+ If the output is `armv7l`, you need to install 64-bit Raspberry Pi OS. Download it from the official Raspberry Pi website and flash a new SD card.
326
+
327
+ **Problem**: Sublime Text runs slowly on Raspberry Pi
328
+
329
+ **Solution**: Sublime Text is resource-intensive. Ensure you have sufficient free memory:
330
+
331
+ ```bash
332
+ free -h
333
+ ```
334
+
335
+ Close unnecessary applications or add swap space if needed:
336
+
337
+ ```bash
338
+ sudo fallocate -l 1G /swapfile
339
+ sudo chmod 600 /swapfile
340
+ sudo mkswap /swapfile
341
+ sudo swapon /swapfile
342
+ echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
343
+ ```
344
+
345
+ **Problem**: Display issues on Raspberry Pi
346
+
347
+ **Solution**: If experiencing graphical glitches, try disabling GPU rendering. Add to your Sublime Text preferences:
348
+
349
+ ```json
350
+ {
351
+ "hardware_acceleration": "none"
352
+ }
353
+ ```
354
+
355
+ ---
356
+
357
+ ### Amazon Linux/RHEL (DNF/YUM)
358
+
359
+ #### Prerequisites
360
+
361
+ - Amazon Linux 2023, Amazon Linux 2, RHEL 8+, CentOS 8+, or Fedora (64-bit)
362
+ - sudo privileges
363
+
364
+ **Important**: Sublime Text does not provide ARM64 RPM packages. This installation method only works on x86_64 systems.
365
+
366
+ #### Installation Steps
367
+
368
+ **Step 1: Import the GPG signing key**
369
+
370
+ ```bash
371
+ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
372
+ ```
373
+
374
+ **Step 2: Add the Sublime Text repository**
375
+
376
+ For Amazon Linux 2023, RHEL 8+, or Fedora (DNF-based systems):
377
+
378
+ ```bash
379
+ sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
380
+ ```
381
+
382
+ **Note for Fedora 41+ (dnf5)**: Use the updated syntax:
383
+
384
+ ```bash
385
+ sudo dnf config-manager addrepo --from-repofile=https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
386
+ ```
387
+
388
+ For Amazon Linux 2 or older RHEL/CentOS (YUM-based systems):
389
+
390
+ ```bash
391
+ sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
392
+ ```
393
+
394
+ **Step 3: Install Sublime Text**
395
+
396
+ For DNF-based systems:
397
+
398
+ ```bash
399
+ sudo dnf install -y sublime-text
400
+ ```
401
+
402
+ For YUM-based systems:
403
+
404
+ ```bash
405
+ sudo yum install -y sublime-text
406
+ ```
407
+
408
+ #### Verification
409
+
410
+ Confirm the installation succeeded:
411
+
412
+ ```bash
413
+ subl --version
414
+ ```
415
+
416
+ Expected output (version numbers may vary):
417
+
418
+ ```
419
+ Sublime Text Build 4200
420
+ ```
421
+
422
+ Launch Sublime Text:
423
+
424
+ ```bash
425
+ subl
426
+ ```
427
+
428
+ #### Troubleshooting
429
+
430
+ **Problem**: `yum-config-manager: command not found`
431
+
432
+ **Solution**: Install yum-utils first:
433
+
434
+ ```bash
435
+ sudo yum install -y yum-utils
436
+ sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
437
+ ```
438
+
439
+ **Problem**: `dnf config-manager: command not found` on Amazon Linux 2023
440
+
441
+ **Solution**: Install dnf-plugins-core:
442
+
443
+ ```bash
444
+ sudo dnf install -y dnf-plugins-core
445
+ sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
446
+ ```
447
+
448
+ **Problem**: GPG key verification fails
449
+
450
+ **Solution**: Re-import the GPG key and verify:
451
+
452
+ ```bash
453
+ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
454
+ rpm -qa gpg-pubkey* | xargs rpm -qi | grep -i sublime
455
+ ```
456
+
457
+ **Problem**: Repository not found on ARM-based systems
458
+
459
+ **Solution**: Sublime Text does not provide ARM64 RPM packages. For ARM-based Amazon Linux or RHEL systems, no official installation method is available. Consider using an x86_64 system or alternative editor.
460
+
461
+ ---
462
+
463
+ ### Windows (Chocolatey/winget)
464
+
465
+ #### Prerequisites
466
+
467
+ - Windows 10 or Windows 11 (64-bit)
468
+ - Administrator PowerShell or Command Prompt
469
+ - Chocolatey or winget package manager
470
+
471
+ **Installing Chocolatey** (if not already installed):
472
+
473
+ Run this command in an Administrator PowerShell:
474
+
475
+ ```powershell
476
+ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
477
+ ```
478
+
479
+ #### Installation Steps
480
+
481
+ **Using Chocolatey (recommended):**
482
+
483
+ Run the following command in an Administrator PowerShell or Command Prompt:
484
+
485
+ ```powershell
486
+ choco install sublimetext4 -y
487
+ ```
488
+
489
+ The `-y` flag automatically confirms all prompts, enabling fully non-interactive installation.
490
+
491
+ **Using winget:**
492
+
493
+ ```powershell
494
+ winget install --id SublimeHQ.SublimeText.4 --silent --accept-package-agreements --accept-source-agreements
495
+ ```
496
+
497
+ The `--silent` flag suppresses the installer UI, and the `--accept-*` flags automatically accept licenses.
498
+
499
+ #### Verification
500
+
501
+ Open a new Command Prompt or PowerShell window, then run:
502
+
503
+ ```powershell
504
+ subl --version
505
+ ```
506
+
507
+ Expected output (version numbers may vary):
508
+
509
+ ```
510
+ Sublime Text Build 4200
511
+ ```
512
+
513
+ If `subl` is not recognized, the installation directory may not be in PATH. Add it:
514
+
515
+ ```powershell
516
+ $sublPath = "C:\Program Files\Sublime Text"
517
+ [Environment]::SetEnvironmentVariable("Path", $env:Path + ";$sublPath", [EnvironmentVariableTarget]::User)
518
+ ```
519
+
520
+ Then open a new terminal window.
521
+
522
+ #### Troubleshooting
523
+
524
+ **Problem**: `subl: The term 'subl' is not recognized`
525
+
526
+ **Solution**: Add Sublime Text to your PATH. The default installation location is `C:\Program Files\Sublime Text`. Add this to your system PATH:
527
+
528
+ 1. Open System Properties > Advanced > Environment Variables
529
+ 2. Under User variables, edit Path
530
+ 3. Add `C:\Program Files\Sublime Text`
531
+ 4. Open a new terminal window
532
+
533
+ Or via PowerShell:
534
+
535
+ ```powershell
536
+ $sublPath = "C:\Program Files\Sublime Text"
537
+ [Environment]::SetEnvironmentVariable("Path", $env:Path + ";$sublPath", [EnvironmentVariableTarget]::User)
538
+ ```
539
+
540
+ **Problem**: Chocolatey installation fails with access denied
541
+
542
+ **Solution**: Ensure you are running PowerShell as Administrator. Right-click PowerShell and select "Run as administrator".
543
+
544
+ **Problem**: winget installation shows "Unknown" version
545
+
546
+ **Solution**: This is a known winget manifest issue. The installation should complete successfully despite this warning. Verify by running:
547
+
548
+ ```powershell
549
+ subl --version
550
+ ```
551
+
552
+ ---
553
+
554
+ ### WSL (Ubuntu)
555
+
556
+ #### Prerequisites
557
+
558
+ - Windows 10 version 2004 or higher, or Windows 11
559
+ - WSL 2 enabled with Ubuntu distribution installed
560
+ - sudo privileges within WSL
561
+
562
+ **Note**: GUI applications in WSL require WSLg (Windows 11) or an X server (Windows 10). Without a display server, Sublime Text cannot launch its graphical interface.
563
+
564
+ #### Installation Steps
565
+
566
+ Run these commands in your WSL Ubuntu terminal:
567
+
568
+ **Step 1: Install prerequisites and import GPG key**
569
+
570
+ ```bash
571
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
572
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https ca-certificates curl gnupg
573
+ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo tee /etc/apt/keyrings/sublimehq-pub.asc > /dev/null
574
+ ```
575
+
576
+ **Step 2: Add the Sublime Text repository**
577
+
578
+ ```bash
579
+ echo -e 'Types: deb\nURIs: https://download.sublimetext.com/\nSuites: apt/stable/\nSigned-By: /etc/apt/keyrings/sublimehq-pub.asc' | sudo tee /etc/apt/sources.list.d/sublime-text.sources
580
+ ```
581
+
582
+ **Step 3: Update package lists and install Sublime Text**
583
+
584
+ ```bash
585
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
586
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y sublime-text
587
+ ```
588
+
589
+ #### Verification
590
+
591
+ Confirm the installation succeeded:
592
+
593
+ ```bash
594
+ subl --version
595
+ ```
596
+
597
+ Expected output (version numbers may vary):
598
+
599
+ ```
600
+ Sublime Text Build 4200
601
+ ```
602
+
603
+ On Windows 11 with WSLg, launch Sublime Text:
604
+
605
+ ```bash
606
+ subl
607
+ ```
608
+
609
+ #### Troubleshooting
610
+
611
+ **Problem**: `subl` shows "cannot open display" error
612
+
613
+ **Solution**: WSLg is required for GUI applications. Verify WSLg is working:
614
+
615
+ ```bash
616
+ wsl --version
617
+ ```
618
+
619
+ Ensure WSLg is listed. If not, update WSL:
620
+
621
+ ```powershell
622
+ wsl --update
623
+ ```
624
+
625
+ Then restart WSL:
626
+
627
+ ```powershell
628
+ wsl --shutdown
629
+ ```
630
+
631
+ **Problem**: GUI applications not working on Windows 10
632
+
633
+ **Solution**: Windows 10 requires an X server for WSL GUI apps. Install VcXsrv or similar:
634
+
635
+ 1. Download and install VcXsrv from its official site
636
+ 2. Launch XLaunch with default settings
637
+ 3. In WSL, set the DISPLAY variable:
638
+
639
+ ```bash
640
+ echo 'export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk "{print \$2}"):0' >> ~/.bashrc
641
+ source ~/.bashrc
642
+ ```
643
+
644
+ **Problem**: Sublime Text looks blurry or has scaling issues
645
+
646
+ **Solution**: Set GDK scaling environment variables:
647
+
648
+ ```bash
649
+ echo 'export GDK_SCALE=2' >> ~/.bashrc
650
+ echo 'export GDK_DPI_SCALE=0.5' >> ~/.bashrc
651
+ source ~/.bashrc
652
+ ```
653
+
654
+ ---
655
+
656
+ ### Git Bash (Windows Installation)
657
+
658
+ #### Prerequisites
659
+
660
+ - Windows 10 or Windows 11 (64-bit)
661
+ - Git Bash installed (comes with Git for Windows)
662
+ - Sublime Text installed on Windows (see Windows section)
663
+
664
+ **Note**: Git Bash on Windows does not require a separate Sublime Text installation. Git Bash inherits the Windows PATH, so once Sublime Text is installed on Windows, the `subl` command becomes available in Git Bash.
665
+
666
+ #### Installation Steps
667
+
668
+ 1. Install Sublime Text on Windows using Chocolatey (see Windows section):
669
+
670
+ ```bash
671
+ # Run from Administrator PowerShell or Command Prompt
672
+ choco install sublimetext4 -y
673
+ ```
674
+
675
+ 2. Open Git Bash - the `subl` command will be available if Sublime Text's installation directory is in your Windows PATH.
676
+
677
+ 3. If `subl` is not available, add an alias to your Git Bash profile:
678
+
679
+ ```bash
680
+ echo 'alias subl="/c/Program\ Files/Sublime\ Text/subl.exe"' >> ~/.bashrc
681
+ source ~/.bashrc
682
+ ```
683
+
684
+ #### Verification
685
+
686
+ In Git Bash, confirm Sublime Text is accessible:
687
+
688
+ ```bash
689
+ subl --version
690
+ ```
691
+
692
+ Expected output (version numbers may vary):
693
+
694
+ ```
695
+ Sublime Text Build 4200
696
+ ```
697
+
698
+ Open a file in Sublime Text:
699
+
700
+ ```bash
701
+ subl ~/.bashrc
702
+ ```
703
+
704
+ #### Troubleshooting
705
+
706
+ **Problem**: `subl: command not found` in Git Bash
707
+
708
+ **Solution**: Sublime Text is not in PATH or the alias is not configured. Add an alias to your `~/.bashrc`:
709
+
710
+ ```bash
711
+ echo 'alias subl="/c/Program\ Files/Sublime\ Text/subl.exe"' >> ~/.bashrc
712
+ source ~/.bashrc
713
+ ```
714
+
715
+ **Problem**: Path issues with spaces in directory names
716
+
717
+ **Solution**: When referencing Sublime Text's path in Git Bash, escape spaces properly:
718
+
719
+ ```bash
720
+ "/c/Program Files/Sublime Text/subl.exe" myfile.txt
721
+ ```
722
+
723
+ Or use the short 8.3 filename format:
724
+
725
+ ```bash
726
+ /c/PROGRA~1/SUBLIM~1/subl.exe myfile.txt
727
+ ```
728
+
729
+ **Problem**: Sublime Text opens but Git Bash terminal hangs
730
+
731
+ **Solution**: Use the `-b` (background) flag or the `&` operator:
732
+
733
+ ```bash
734
+ subl myfile.txt &
735
+ ```
736
+
737
+ Or create an alias that always runs in background:
738
+
739
+ ```bash
740
+ echo 'subl() { "/c/Program Files/Sublime Text/subl.exe" "$@" & }' >> ~/.bashrc
741
+ source ~/.bashrc
742
+ ```
743
+
744
+ ---
745
+
746
+ ## Post-Installation Configuration
747
+
748
+ After installing Sublime Text on any platform, consider these optional configurations.
749
+
750
+ ### Installing Package Control
751
+
752
+ Package Control is the package manager for Sublime Text, enabling easy installation of plugins and themes.
753
+
754
+ 1. Open Sublime Text
755
+ 2. Open the Command Palette with `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (macOS)
756
+ 3. Type "Install Package Control" and press Enter
757
+
758
+ After installation, access packages via Command Palette > "Package Control: Install Package".
759
+
760
+ ### Setting as Default Git Editor
761
+
762
+ Configure Git to use Sublime Text as the default editor:
763
+
764
+ **macOS/Linux:**
765
+
766
+ ```bash
767
+ git config --global core.editor "subl -n -w"
768
+ ```
769
+
770
+ **Windows (Command Prompt/PowerShell):**
771
+
772
+ ```powershell
773
+ git config --global core.editor "'C:/Program Files/Sublime Text/subl.exe' -n -w"
774
+ ```
775
+
776
+ **Git Bash:**
777
+
778
+ ```bash
779
+ git config --global core.editor "'/c/Program Files/Sublime Text/subl.exe' -n -w"
780
+ ```
781
+
782
+ The `-n` flag opens a new window and `-w` makes Git wait until the file is closed.
783
+
784
+ ### Command Line Usage
785
+
786
+ The `subl` command supports various options:
787
+
788
+ ```bash
789
+ # Open files
790
+ subl file1.txt file2.txt
791
+
792
+ # Open a folder as a project
793
+ subl /path/to/project
794
+
795
+ # Open and wait (useful for commit messages)
796
+ subl -w file.txt
797
+
798
+ # Open in a new window
799
+ subl -n file.txt
800
+
801
+ # Add folder to current window
802
+ subl -a /path/to/folder
803
+
804
+ # Go to specific line and column
805
+ subl file.txt:100:5
806
+ ```
807
+
808
+ ### License Activation
809
+
810
+ If you have purchased a license:
811
+
812
+ 1. Open Sublime Text
813
+ 2. Go to Help > Enter License
814
+ 3. Paste your license key
815
+ 4. Click Use License
816
+
817
+ ---
818
+
819
+ ## Common Issues
820
+
821
+ ### Issue: "This is an unregistered copy" popup
822
+
823
+ **Explanation**: Sublime Text shows periodic reminders during the evaluation period. This does not limit functionality.
824
+
825
+ **Solution**: Purchase a license from sublimetext.com to remove the popup, or dismiss it to continue using the evaluation version.
826
+
827
+ ### Issue: Syntax highlighting not working
828
+
829
+ **Symptoms**: Code appears as plain text without colors
830
+
831
+ **Solutions**:
832
+
833
+ 1. Set the syntax manually: View > Syntax > (choose language)
834
+ 2. Install additional syntax packages via Package Control
835
+ 3. Check if the file extension is recognized: Preferences > Settings and verify `"ignored_packages"` does not include relevant packages
836
+
837
+ ### Issue: Plugin/Package installation fails
838
+
839
+ **Symptoms**: Package Control shows errors when installing packages
840
+
841
+ **Solutions**:
842
+
843
+ 1. Check internet connectivity
844
+ 2. Restart Sublime Text
845
+ 3. Remove Package Control cache:
846
+
847
+ **macOS/Linux:**
848
+ ```bash
849
+ rm -rf ~/.config/sublime-text/Cache/*
850
+ ```
851
+
852
+ **Windows:**
853
+ ```powershell
854
+ Remove-Item -Recurse -Force "$env:APPDATA\Sublime Text\Cache\*"
855
+ ```
856
+
857
+ ### Issue: Sublime Text crashes on startup
858
+
859
+ **Solutions**:
860
+
861
+ 1. Start in safe mode by holding Shift while launching (disables plugins)
862
+ 2. Reset to default settings by removing the User folder:
863
+
864
+ **macOS:**
865
+ ```bash
866
+ mv ~/Library/Application\ Support/Sublime\ Text/Packages/User ~/Library/Application\ Support/Sublime\ Text/Packages/User.backup
867
+ ```
868
+
869
+ **Linux:**
870
+ ```bash
871
+ mv ~/.config/sublime-text/Packages/User ~/.config/sublime-text/Packages/User.backup
872
+ ```
873
+
874
+ **Windows:**
875
+ ```powershell
876
+ Rename-Item "$env:APPDATA\Sublime Text\Packages\User" "$env:APPDATA\Sublime Text\Packages\User.backup"
877
+ ```
878
+
879
+ ### Issue: High CPU usage
880
+
881
+ **Symptoms**: Sublime Text consumes excessive CPU resources
882
+
883
+ **Solutions**:
884
+
885
+ 1. Check for problematic plugins: start in safe mode (Shift on launch)
886
+ 2. Disable indexing for large projects in settings:
887
+
888
+ ```json
889
+ {
890
+ "index_files": false
891
+ }
892
+ ```
893
+
894
+ 3. Exclude large folders from indexing:
895
+
896
+ ```json
897
+ {
898
+ "folder_exclude_patterns": [".git", "node_modules", "__pycache__"]
899
+ }
900
+ ```
901
+
902
+ ---
903
+
904
+ ## References
905
+
906
+ - [Sublime Text Official Website](https://www.sublimetext.com/)
907
+ - [Sublime Text Download Page](https://www.sublimetext.com/download)
908
+ - [Sublime Text Linux Repositories](https://www.sublimetext.com/docs/linux_repositories.html)
909
+ - [Sublime Text Command Line Interface](https://www.sublimetext.com/docs/command_line.html)
910
+ - [Sublime Text Community Documentation](https://docs.sublimetext.io/)
911
+ - [Package Control - Sublime Text Package Manager](https://packagecontrol.io/)
912
+ - [Homebrew Cask: sublime-text](https://formulae.brew.sh/cask/sublime-text)
913
+ - [Chocolatey Package: sublimetext4](https://community.chocolatey.org/packages/sublimetext4)
914
+ - [winget Package: SublimeHQ.SublimeText.4](https://winget.run/pkg/SublimeHQ/SublimeText.4)