Yum (full name Yellow dog Updater, Modified) is a shell front end package Manager in Fedora and Redhat and CentOS. Based on RPM package management, the ability to automatically download RPM packages from specified servers and install them automatically handles dependency relationships and installs all dependent packages at once, without the hassle of downloading and installing them over and over again.
Configuring the Yum server on the server
1 Mount | grep ISO 2 umount/dev/cdrom3 mount/dev/cdrom/mnt
Write a yum configuration file
1 vim/etc/yum.repos.d/rhel.repo23[cdrom]4 name=DVD 5 baseurl=file://mnt6 enabled=17 gpgcheck= 0
When configured, you can use the command: Yum repolist Verify that the configuration is successful.
1 Yum repolist //Display repository configuration 23 yum Clean all //
After the Yum server is configured, you can install the software through Yum. For example, install the DHCP server under Yum:
1 yum-y Install DHCP // installation DHCP server, auto answer Yes
command options for Yum servers
1-E//Silent Execution2 3-T//Ignore Errors4 5-r[min]//set the wait time6 7-Y//Auto Answer Yes8 9--skip-broken//Ignore dependency issuesTen One--nogpgcheck//Ignore GPG validation
Linux-yum Server Setup