When used with a loop: each package will be processed individually, it is much more efficient to pass the list directly to the name option. Installing from source with build-dep. This caused problems when packages specified by filename or url had to be installed or removed together. To count all installed packages run: sudo yum list installed | wc -l; Want to save all installed packages names in a file? YUM performs dependency resolution when installing, updating, and removing software packages. Yum search various repositories for packages and their dependencies, fetch them and install those RPMs together. To install a specific version of a package, run: $ sudo yum install
If you already have the latest version of a package installed, but you need to downgrade it to the particular version that is older, execute: The first step is to download the RPM file that you want to install: Example: How to use it The command structure is: yum install package-name. Each section below will shows some examples.
It is used to install, remove, download, query, and update packages from the official CentOS repositories as well as other third-party repositories. One way to install from source, but avoid the dependency nightmare, is to first work with the build-dep tool. From yum version 3.4.2, the groups command was introduced, and now works on Fedora-19+ and CentOS/RHEL-7+; it brings together all the subcommands for dealing with groups. Enter the following: sudo yum localinstall sample_file.rpm. The above command would install the yum-builddep package.
Install the yum-utils package: # yum install yum-utils Run the command followed by the desired package: # yumdownloader
To use yum for a specific function and for one or more packages or the package groups. Try: sudo yum list installed > my_list.txt; Execute the command sudo yum update to refresh package database and install updates if any.