Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a debian host, on which i want to setup a private Gentoo Repository for my college. I have started syncing the repository by a simple bash script whose snippet is as follows :

OPTS="--quiet --recursive --links --perms --times -D --delete --timeout=300"

What else I need to do for setting up the repository?

Thanks in advance for the help.

share|improve this question

migrated from stackoverflow.com Jun 7 '11 at 12:28

This question came from our site for professional and enthusiast programmers.

Installing Gentoo is the answer to very many problems, especially this one--

However, if you are already programmatically syncing your portage tree, do you need anything else other than the rsync?

All straight from the docs:

Your shell script, run via cron:

OPTS="--quiet --recursive --links --perms --times -D --delete --timeout=300"

echo "Started update at" `date` >> $0.log 2>&1
logger -t rsync "re-rsyncing the gentoo-portage tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> $0.log 2>&1

In rsyncd.conf:

pid file = /var/run/rsyncd.pid
max connections = 5
use chroot = yes
uid = nobody
gid = nobody
# Optional: restrict access to your Gentoo boxes
hosts allow =
hosts deny  = *

comment=Portage tree

Then start the rsync daemon like rsync --daemon

I haven't tested any of this, but it should get you pretty close... Unless you want to install portage right under a non-gentoo distro?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.