Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm currently using apt-mirror to create a local mirror of the debian repositories.

As the mirrored repositories will be used only by machines destined to be headless servers and as an effort to reduce the current mirroring size (around 75GB), categories like games and possibly others will never be needed.

How can I go about specifying (on the mirror.list perhaps?) what sections/categories I want to be excluded from the mirroring?

Maybe a bit subjective, but apart from games what other sections/categories could be "safely" ignored from the mirroring for my environment purposes?

My mirror.list looks as below since all the machines are using precise.

# MAIN
deb-amd64 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse

# SECURITY
deb-amd64 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse

Also, what others would you recommend adding to the list to be mirrored for a relatively stable environment? Again I understand this is subjective, just looking for some pointers.

Much appreciated in advance

share|improve this question
    
Seems like you may want to run apt-cacher-ng instead. It will download the packages the first time any server requests them, and then serve the cached copies to any other server that requests the same. This way you don't have to store any packages your servers don't need, and every file is downloaded from the Internet only once. –  Steven Kath Apr 3 at 2:00
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.