💾 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

View Raw

More Information

-=-=-=-=-=-=-

about

links

scripts

Sharing linux/windows scripts and tips

Gentoo local overlay

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

```

done.

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.

github

See also:

repos.conf, Custom Repository

repos.conf

Custom Repository

Tags:

gentoo

portage-overlay

© Jesse Harris

mailto:jesse@zigford.org

Generated with bashblog, a single bash script to easily create blogs like this one

bashblog