Operating System - Linux
1752678 Members
5472 Online
108789 Solutions
New Discussion юеВ

How To Install Packages Using Yum

 
SOLVED
Go to solution
vaishakh k
Advisor

How To Install Packages Using Yum

Can any one help me,

1. How to install packages using yum through online .


Thanking in advance.
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: How To Install Packages Using Yum

Steven E. Protter
Exalted Contributor

Re: How To Install Packages Using Yum

Shalom,

Example:
yum -y install mysql*

This will install all mysql* packages without the y/n prompt before install (-y)

There is a man page as well that works pretty well to learn the command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ragu_3
Trusted Contributor

Re: How To Install Packages Using Yum

First find that package you would like to install by doing a 'yum list *traf*'; for me it maybe 'iptraf' and I proceed to install this package by doing 'yum install iptraf'. Yum configuration is fine-tuned via /etc/yum.conf and the repostiories from where your packages are going to be fetched from is set via the seperate files inside '/etc/yum.repos.d/'. 'man yum' is your friend.
Debian GNU/Linux for the Enterprise! Ask HP ...
Taifur
Respected Contributor
Solution

Re: How To Install Packages Using Yum

Hi Vaishakh,

Regarding yum,

To register your system with RHN type the following command and just follow instructions (CentOS user skip to next step):

# rhn_register

WARNING! These examples only works with RHEL / CentOS Linux version 5.x or above. For RHEL 4.x and older version use up2date command.

Display list of updated software (security fix)
Type the following command at shell prompt:

# yum list updates

>>Patch up system by applying all updates
To download and install all updates type the following command:

# yum update


List all installed packages
List all installed packages, enter:

# rpm -qa
# yum list installed



Install the specified packages [ RPM(s) ]
# yum install {package-name-1} {package-name-2}
# yum install httpd

Task: Remove / Uninstall the specified packages [ RPM(s) ]

# yum remove {package-name-1} {package-name-2}
# yum remove httpd

For details check below link,

http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/

http://fedoraforum.org/forum/showthread.php?t=25880


Rgds,
Taifur