💾 Archived View for zigford.org › gentoo-local-overlay.gmi captured on 2023-03-20 at 17:59:02. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Sharing linux/windows scripts and tips
September 18, 2018 — Jesse Harris
I find myself having to create a local overlay to test/develop a new ebuild without affecting my main system from time to time. I usually fire up a clean kvm Gentoo guest to start working on, but I've usually forgotten the proceedure
This is a quick instruction on a straight-forward local overlay
```
mkdir -p /usr/local/portage/overlay/{metadata,profiles}
```
```
cd /usr/local/portage/overlay
echo "masters = gentoo" > metadata/layout.conf
echo "$(hostname)" > profiles/repo_name
```
```
cat <<EOF>/etc/portage/repos.conf/$(hostname).conf
[$(hostname)]
location = /usr/local/portage/overlay
auto-sync = no
priority = 10
EOF
```
Now you can begin to populate the local repo with custom ebuilds. I usually do this and then upload my new ebuild to my github repository.
See also:
repos.conf, Custom Repository
Tags:
Generated with bashblog, a single bash script to easily create blogs like this one