You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
APT-Cacher-NG is designed to cache Ubuntu, Debian, and other Linux distributions and packages locally. If you have a homelab, you probably have a lot of VM's. When one of your machines updates, those updates are stored here. The next machine that is the same or similar can pull from the cache locally instead of going out to the internet again.
18
18
19
19
## My Purpose & Goals
@@ -22,7 +22,7 @@ APT-Cacher-NG is designed to cache Ubuntu, Debian, and other Linux distributions
22
22
3. We are helping Linux, being a good steward of the internet. If we all do this, that will be less download bandwidth on these distro's. That will allow them to allocate resources elsewhere than handling all the requests.
23
23
24
24
25
-
[ANCHOR LINK TEST - UPDATE OR DELETE](https://vscode.dev/github/TheColetrain/thecoletrain.github.io/blob/main/_posts/draft-2025-03-17-APT-Cacher-NG.md#L59)
25
+
[ANCHOR LINK TEST - UPDATE OR DELETE]()
26
26
27
27
## Recommendation: Should you do this on your server?
28
28
### Short answer is YES! (If you already know "you want to do this" and need a guide, skip over the rest of this section and get to the "How To DO IT" area.)
-*HOST commands* – I’m calling this Phase 1 second part because I wanted to show how easy Phase 1 can be (above), and this adds a step. I wasn’t lying—the above works, but I’d move on and add this because it’s pretty easy. APT-Cacher-NG doesn’t work on HTTPS. A lot of your repositories are already HTTP, so that is why the above works. But this converts more of them to HTTP. I’m going to list three commands; you’ll see how similar they are. Adapt these commands to any other folders you want to try. Go ahead and cd on down in there and see what’s going on, if you like. I personally have strung these three together with `&&` and pasted them as one command. The third command will error if that folder doesn't exist—no harm though, and if the folder does exist, well, great, it updates it.
112
+
-*HOST commands* – I’m calling this Phase 1 second part because I wanted to show how easy Phase 1 can be (above), and this adds a step. I wasn’t lying, the above works, but I would advise to add this because it’s pretty easy. APT-Cacher-NG doesn’t work on HTTPS. A lot of your repositories are already HTTP, so that is why the above works. But this converts more of them to HTTP. I’m going to list three commands; you’ll see how similar they are. Adapt these commands to any other folders you want to try. Go ahead and cd on down in there and see what’s going on, if you like. I personally have strung these three together with `&&` and pasted them as one command. The third command will error if that folder doesn't exist—no harm though, and if the folder does exist, well, great, it updates it.
113
113
114
114
```bash
115
115
sudo sed -i 's#https://#http://HTTPS///#g' /etc/apt/sources.list.d/*.list
- The two boxs that are checked, are checked by default. Click the `Start Mirroring` button and it will show you what it will cache. (Not actually cache it.)
178
180
- When you are ready, check the `download package files` box, and then the `Start Mirroring` and that will actually do it!
0 commit comments