Jul 20, 2015
yum (Yellowdog Updater, Modified) provide more services and functionality than is available with the rpm command and other RPM-based tools. With Yum tools and plug-ins, you can List software packages, both installed and available, in local or remote repositories. Selecting a Target Series. By default, the MySQL Yum repository updates MySQL to the latest version in the release series you have chosen during installation (see Selecting a Release Series for details), which means, for example, a 5.7.x installation will not be updated to a 8.0.x release automatically. Permanently Enable/Disable repositories using repository configuration file; 1. Enable or disable repositories temporarily. This is my preferred method. In this method, We can temporarily exclude a repository to prevent a package from being updated. Let us see an example. yum --disablerepo=remi-safe update. Or, yum update --disablerepo=remi-safe Yellowdog Updater, Modified (yum) allows you to easily update, install, and remove RPM packages on your system. It uses repositories to manage RPM packages and resolve dependencies for any packages that you install or uninstall. If you set yum to automatically update your system's RPMs, you no longer need to run updates manually. Installing the EPEL repository. To install the EPEL repository on your CentOS unmanaged server, follow these steps: Log in to the server as the root user. At the command prompt, type the following command to update the server: yum -y update; To install the EPEL repository, type the following command: yum -y install epel-release Configuring client machine . Configurations for sharing Yum repository on server side are complete & now we will configure our client machine, with an IP address 192.168.1.101, to receive updates from our created offline yum.. Create a file named offline-yum.repo in /etc/yum.repos.d folder & enter the following details, To install a package from a different repository with yum, you need to add the repository information to the /etc/yum.conf file or to its own repository.repo file in the /etc/yum.repos.d directory. You can do this manually, but most yum repositories provide their own repository.repo file at their repository URL.
yum clean headers Eliminate all of the header files, which old versions of yum used for dependency resolution. yum clean metadata Eliminate all of the files which yum uses to determine the remote availability of packages. Using this option will force yum to download all the metadata the next time it is run.
20 YUM Commands for Linux Package Mangement May 21, 2013
Installing the EPEL repository. To install the EPEL repository on your CentOS unmanaged server, follow these steps: Log in to the server as the root user. At the command prompt, type the following command to update the server: yum -y update; To install the EPEL repository, type the following command: yum -y install epel-release
7.6.2 Yummifying the RHEL Update Repository. After you’ve configured the files you need in the RHEL repository, you can set it up as a yum repository. As described earlier in this chapter, this requires the yum-arch or createrepo commands, depending on your distribution. The createrepo package was adapted for Fedora Core 3.