Package & Repository Management / Create a Local Repository Mirror
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.
Learn More
Subtitles of the Movie
Create a Local Repository Mirror. It's OK if you have one or two or maybe three systems all connecting directly to the Internet for their updates, even if they're downloading the same packages from remote mirrors. But when Enterprise's have to manage updates for dozens of systems, administrators like yourself should consider the creation of a local repository mirror. While you're encouraged to set up a mirror as a resource for the Linux community, the mirror must first be useful for your systems and the Enterprise. Once you've set up the mirror, a properly configured client can connect to that mirror just as it connects to an official Ubuntu mirror. The only difference is in the local URL and the speed of the connection. If you don't set up a local repository mirror and have dozens or even hundreds of Ubuntu systems, just imagine what happens if they all connect to the Internet simultaneously and are each downloading the hundreds of megabytes of packages often associated with updates to the OpenOffice.org suite. That could easily overload even a corporate Internet connection. That should motivate you to create a local mirror for an Enterprise. One way to do it is with the rsync command but I find the most efficient way to do this is with the apt mirror command available from the package of the same name. Just be careful if you use the apt mirror command without modifying the associated configuration files. You should be prepared for a large download. It tried to start downloading over 45 gigabytes of data. I didn't have that kind of room on that virtual system. Gee whiz. So to make changes to the apt mirror configuration, first you need to customize the etc/apt /mirror.list configuration file as shown here. The first directive in this file are commented out. But they are defaults. For example, the base path suggests that the base directory is var/spool /apt -mirror. As that directory will be the recipient of a large quantity of files, you might want to set that directory up on a dedicated large partition. But also take a look at the repositories. They point to the standard archive.ubuntu.com repository, which is also located in London in the UK. If you're not in England, that would be a long way to transfer tens of gigabytes of files so you may want to change that configuration to point to an official repository closer to you. But wait; you may not want to do it with everything. With respect to security updates, many administrators prefer to use the central Ubuntu mirror to make sure the latest security updates are available and can be loaded onto your systems. If that's what you want, you'll want to keep the security updates out of your local mirror. And to do so, you'd comment out directives such as that which points to Hardy -security. Finally, if you want to change the base path directory, you can do so in the apt -mirror script in the user /bin directory and the base path is shown at the bottom of the screen here.
Tutorial Information
| Course: | Ubuntu Certification |
| Author: | Michael Jang |
| SKU: | 33915 |
| ISBN: | 1-934743-97-6 |
| Release Date: | 2008-09-23 |
| Duration: | 6 hrs / 83 lessons |
| Captions: | Available on CD and Online University |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 98,729 Video Tutorials (23,265 free)
- Video Available as Flash or QuickTime
- Over 1026 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 