From the course: Building, Maintaining, and Distributing RPM Packages

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Create a hosted repository

Create a hosted repository

- [Instructor] To create a repository that's accessible to others over the local network or across the internet, we will need to pair our local repository with something that knows about the network. Commonly, repositories are shared using a web server or an FTP server, and in this video, we'll use a web server to create a hosted repository for a local network. I'll use Apache, but you can use any web server you're familiar with. To install Apache here on centos, I'll run DNF install httpd. Now we have a choice to make. On centos, Apache starts out with a default site, served from /var/www/html, and of course we can change that or add new sites with other paths. My local repository is located at /opt/myrepo. So I'll create a symbolic link to that directory inside of my HTML directory. You could rebuild your repository inside the HTML directory, or you could build it in a subdirectory, or you could create a new site…

Contents