Monday 24 October 2016

What is YUM (YellowDog Update Modifier) in centos ?


Yum (Yellowdog Update Modified) is RPM Packet Management system for Fedora, CentOS, Red Hat, OpenSuse etc. Yum history (list, info, summary, repeat, redo, undo, new) commands is added on 3.2.25 version. So this works every Linux Distros, which uses yum 3.2.25 or newer. Yum history command is a really useful in situations where the need to example rollback latest yum activity or undelete some deletes or just see what is updated lately.


11 Useful Yum Commands on CentOS Linux

Yum is the package management system that is used on CentOS Linux. It is responsible for managing packages and their dependencies from Yum repositories, as defined in /etc/yum.repos.d/
In this post, we’ll cover a few common and useful yum commands:

1. Install a yum package:

1yum install PACKAGE_NAME

2. Remove a yum package:

1yum remove PACKAGE_NAME

3. Reinstall a yum package:

1yum reinstall PACKAGE_NAME

4. Search for a yum package:

1yum search PACKAGE_NAME

5. Display the information of a yum package:

1yum info PACKAGE_NAME

6. Update installed yum packages:

1yum update

7. Update specific yum package:

1yum update PACKAGE_NAME

8. Show yum history:

1yum history

9. Show a list of enabled yum repositories:

1yum repolist

10. Find which yum package provides a particular file (eg: /usr/bin/nc):

1yum whatprovides "*bin/nc"

11. Clear yum cache:

1yum clean all

No comments:

Post a Comment

How to install google-chrome in redhat without redhat subscription

Install google-chrome in redhat  Download the .rpm file of chrome https://www.google.com/chrome/thank-you.html?installdataindex=empty&st...