![]() ![]() Sudo yum clean packages or sudo yum clean all CommandĬlean out all cached package data/clean all packages metadata When things go wrong with Yum, use these commands. Show information about enabled repositories Show description and contents of a package groupĭisplay yum help information or help on sub commandįor adding and managing additional repositories. Locate the package that provides a specific file Show available package updates from enabled repositories ![]() Show information about available package updates Search for a package name and description Show information about a specific package These commands will help you explore installed packages or search for packages from repositories. Install a package from a local repository Remove a package and all other unnecessary packagesĭowngrade a specific package to an earlier version Reinstall current version of a specific package Update all packages to the latest version Update or or more packages to a specific version Remove an installed package and its dependencies Here are the Yum commands for installing, removing and updating packages. Install, uninstall & upgrade packages with yum If multiple releases of a single version exist, the package with the higher release number is installed. If multiple versions exist, the package with the higher version number is installed. Only the package name is required for installing packages from repositories. To install a specific version of a package, run: $ sudo yum install – Install Specific Version Of Package with yum in Linux The wd_rpm tag indicates that these versions are available from remote package repository. ![]() Here, it shows that there are two available versions of glibc-locale-source: version 2.28-151.el8 and version 2.28-164.el8_5.3. In this case, it shows that the glibc-locale-source package with version 2.28-151.el8 is installed indicates it was installed from wd_rpm package repository).Īvailable Packages: This section lists the available packages that can be installed from the configured repositories. Installed Packages: This section lists the packages that are currently installed on the system. Two packages are available to install from remote repository. Glibc-locale-source.x86_64 2.28-164.el8_5.3 wd_rpmįrom the output, we can see that there are 3 packages in total. Last metadata expiration check: 0:31:11 ago on Wed 02:01:41 AM GMT. You can use subscription-manager to register. This system is not registered to Red Hat Subscription Management. # yum list glibc-locale-source -showduplicates Run the following command to show all versions of a package, available in enabled repositories: ![]() In this post, we will show how to make yum list all available versions of a specified package and how to instruct it to install the particular one. However, there are situations where it may be necessary to install a particular version or revert to an earlier version of a package that is already installed. The default behavior of yum is to install the most recent version of a package from the enabled repositories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |