Posts

Showing posts from June, 2019

CentOS: Create and share your own YUM repository

This blog explains how to create your own yum repository with the createrepo tool and to distribute specialized packages within an organization. In this blog I have given an example of kernel RPMs repository. Creating your own yum repository is very simple, and very straightforward. In order to do it, you need the  createrepo  tool, which can be found in the createrepo package, so to install it, execute as root: # yum install createrepo Once the package is installed, you can begin creating your repository. You will also need some RPM packages to create the repository with. Decide where you want to store your repository; let's say,  /var/ftp/pub  will be the base directory .  Depending on how particular you want to get, you can dump everything to a single repository or keep things organized.  # mkdir -p /var/ftp/pub/repo/CentOS/7/{SRPMS,aarch64} Now copy your aarch64 packages to /var/ftp/pub/repo/CentOS/7/aarch64 ,  and the SRPMS you ha...