Monday, 31 August 2009

how to install Yum

yum is software installation tool for Red hat linux and Fedora Linux. It is a complete software management system. Other option is to use up2date utility. yum is designed to use over network/internet.

If you don't have yum then download it from project home page yum - Trac

To install fire the command

# rpm -ivh yup*

Step # 1: Configure yum

You need to edit /etc/yum.conf and modify/add following code to it:

vi /etc/yum.conf

Append or edit code as follows:

[base]

name=Fedora Core $releasever - $basearch - Base

baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag

baseurl=http://mirrors.kernel.org/fedora/core/$releasever/$basearch/os

Save the file

Install GPG signature key with rpm command:

# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

and other keys too (if any using above command)

Step # 2 Update your package list:

# yum check-update

Step # 3 start to use yum

Install a new package called foo

# yum install foo

To update packages

# yum update

To update a single package called bar

# yum update bar

To remove a package called telnet

# yum remove telnet

To list all packages

# yum list installed

You can search using grep command

# yum list installed | grep samba

Display information on a package called foo

# yum info foo

To display list of packages for which updates are available

# yum list updates

No comments:

Post a Comment