Creating custom repositories
Sometimes, it's necessary to create your own private repository of packages. Whatever the reason might be – no internet access, low deployment speed – it's a completely normal usage model that's often used all over the world. We are going to show examples for both CentOS and Ubuntu so that we cover everything necessary for most Linux administrators. Let's roll up our sleeves and start!
Getting ready
Keep the cli1
virtual machine powered on and let's continue using our shell. Let's make sure that the necessary packages are installed by using our standard commands. So, let's use this command:
dnf -y install vsftpd createrepo lftp
That should be all in terms of preparation, so let's do it.
How to do it…
Setting up a custom CentOS repository is actually quite a simple affair. The first step involves downloading some packages. We are going to download a few of them and place them...