Jump to content

create your own apt repository!

Recommended Posts

My job only has a T1 line and we have around 100 RH servers that need to stay updated. If there are upgrades to apply it will quickly saturate the line for a period of time and I could space out all of the upgrade times but that is no fun. So what do I do? I create my own apt mirror from an offical RH mirror site.


I use rsync. Here is the contents of my script.



# Doing the RH 9.0 updates
cd /mirror/apt/9.0/RPMS.updates/
rsync -az --delete  --exclude=*src.rpm rsync://mirror.phy.bnl.gov/RedHat-updates/9/en/os/\*/ ./
genbasedir --bloat --bz2only /mirror/apt/9.0 updates


that will create an apt updates directory. I also have a RPMS.os dir there all the rpms that come on the 3 cd's are placed.


As you can see that script will grab all the rpms but not grab any src.rpm files. Doing things this way only grabs a file once per upgrade. If i did normal upgrades it would need to do that 100 times

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...