LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > vap16oct1984
User Name
Password

Notices


Rate this Entry

yum commands

Posted 06-26-2009 at 12:51 AM by vap16oct1984

Pls go through it, no more doughts remain regarding yum commands:

To download and install all updates type the following command:
# yum update

List all installed packages, enter:
# rpm -qa

# yum list installed

Find out if httpd package installed or not, enter:
# rpm -qa | grep httpd*
# yum list installed httpd

To check for and update httpd package, enter:
# yum update httpd

Search httpd and all matching perl packages, enter:
# yum list {package-name}
# yum list {regex}
# yum list httpd
# yum list perl*

Remove package called httpd, enter:
# yum remove {package-name-1} {package-name-2}
# yum remove httpd

Display the list of available packages
# yum list all

Display list of group software

Type the following command:
# yum grouplist

You can easily find out what RPM package provides the file. For example find out what provides the /etc/passwd file:
# yum whatprovides /etc/passwd

Task: Display the list of available packages

# yum list all
Task: Display list of group software

Type the following command:
# yum grouplist

If still having any doughts feel free to ask us, i will do my best to resolve ur problem.
Posted in Uncategorized
Views 2149 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration