![]() This does not actually perform any updates, it simply gives us a list of packages that have updates available for installation. ![]() We can run yum with the ‘check-update’ argument which will check in with our enabled repositories for any updates that may be available for packages that we have installed. Note that in this example we were not prompted for input, as assume yes has been provided, so the package was installed fully without any further user interaction. Verifying : httpd-manual-2.4.4.noarch 1/1 Installing : httpd-manual-2.4.4.noarch 1/1 > Package httpd-manual.noarch 0:2.4.4 will be installed This way we will not be prompted for any input and yum will assume that everything will be answered with yes. Rather than being prompted each time for user input, we can simply specify the ‘-y’ option in our command for assume yes. In the first example we were prompted to press the ‘y’ key in order to proceed with the installation. In this case we entered ‘y’ for yes to proceed with the installation, which then completed successfully. Note that after confirming the packages that will be installed, you will be asked to provide input. > Package httpd.x86_64 0:2.4.4 will be installed In the example below, we are installing Apache, which is provided in the ‘httpd’ package. The yum command can be used to install packages from a repository with the ‘install’ argument, followed by the package name. These examples should serve as a useful introduction, guide or cheat sheet style resource for how to use the yum command in Linux. Yum is quite powerful as it’s capable of automatically resolving dependency issues, and is similar to other package managers such as ‘apt-get’ in Debian based distributions. Yellowdog Updater Modifier (yum) is an RPM based package manager which is used to install and update packages in various Linux distributions including CentOS, RHEL and Fedora.
0 Comments
Leave a Reply. |