Accidentally delete virtualmin repo from /etc/yum.repos.d

Cannot see how to add the repo back. Running fails with repo not found when trying to delete the existing virtualmin repo, which of course it can’t as I already did that by accident.

Searching provides no results and docs just keep talking about clean systems and

any help much appreciated.


You’ll find a list of the CentOS versions at this URL:

Once you determine the version you need, using something like this:

rpm -ivh [version] / [arch] /virtualmin-release-latest.noarch.rpm

For instance, if you were running CentOS 6.7, on a 64 bit machine, use:

rpm -ivh
rpm -ivh

Be cautious.