From the course: Building, Maintaining, and Distributing RPM Packages
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Manage and troubleshoot repositories
From the course: Building, Maintaining, and Distributing RPM Packages
Manage and troubleshoot repositories
- [Instructor] When you update a package and need to provide it to people using your repository, you'll need to copy the package into the appropriate place and update the repository with the createrepo --update command. This will regenerate the checksums and the information for packages, including the recently added ones, making them available to clients. If you manage clients in a low bandwidth environment, or you just want to reduce traffic from clients to the repository servers, you can mirror repositories locally. We do this with the reposync command, which goes out and and copies packages and metadata from existing repositories and makes a local copy. Reposync is available in the yum-utils package. For example, this command will copy the BaseOS repository on my centos system, including the metadata that's required to make it a valid repo, into /opt/repomirrors. The initial run will take a little while and use a lot…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.