Creating local rpm repositories is one of the objectives of the RHCSA exam.
This short post illustrates how to:
- create a local rpm repository
- install rpm packages from the repositoy
Create a directory for our local repo:
Create rpm repository in the newly created dir:
Add rpm package(s) to the repo:
Create repository .repo config file:
Install rpm package from our new repo:
Congrats! We’ve just installed VirtualBox rpm package form our virtbox local repository!