
Disable Media repo and enable all others.Install packages from the disc to your server using yum as you normally would.Īfter installing the packages, you may want to disable the media repository.Enable Media repo and disable all others.For this to work, the disc must be mounted to the directory /media/CentOS. This step will actually disable the Internet repositories and enable only the Media repository. Our disc is now mounted and now we need to enable the existing repository. Mount /dev/cdrom /media/CentOS -t iso9600 -o loopĮnable the Yum Repository and Install Packages Mount the disc image to the newly created directory.We’re going to mount it to a new directory called CentOS in the /media directory. Let’s start off by mounting our installation disc to the filesystem. Before we can use it, we need to both mount the ISO somewhere and then enable the repository. By default this repository is disabled, and for good reason. Installing Packages From MediaĬentOS comes with an existing Yum configuration file for using the installation disc or ISO as a repository. But how do you go about doing that? Follow along and I will show you how it’s actually a very simplistic task to perform, consuming only minutes of your time. The solution to this delima is to use your installation disc as a Yum repository. Or you could move the server onto a network with Internet access, which cannot always be done. You could download the binaries or source from the Internet and attempt an installation, which may require a lot of dependancies. This, of course, is problematic when you need to configure a web server or ftp server. There have been plenty of times where I’ve had to install software onto a Red Hat-based server, like CentOS, that did not have a network connection to the Internet, or even the corporate network.
