Yum – Linux – Some Basics

 

Yum-Extender-2_2 

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. It does not use CDROM to install packages. If you are using fedora you don't have to install it, it is part of fedora itself.
If you don't have yum then download it from project home page yum - Trac
And then install it

Code:

rpm -ivh yup*


Step # 1: Configure yum

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



Code:



vi /etc/yum.conf


Append or edit code as follows:



Code:



[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:



Code:



# 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:



Code:



# yum check-update


Step # 3 start to use yum

Install a new package called foo



Code:



# yum install foo


To update packages



Code:



# yum update


To update a single package called bar



Code:



# yum update bar


To remove a package called telnet



Code:



# yum remove telnet


To list all packages



Code:



# yum list installed


You can search using grep command



Code:



# yum list installed | grep samba


Display information on a package called foo



Code:



# yum info foo


To display list of packages for which updates are available



Code:



# yum list updates


 





 



for example : How Install “OpenOffice”



OpenOffice-Org



1º Open Terminal



2º Write “su root”



3º Write Password of your “root”



4º If Sucessful now write “yum update” – Wait for seconds



5º Now Write “yum groupinstall "Office/Productivity"”



6º Check Steps…



7º Now Open “OpenOffice” in “Office/Productivity”

No comments:

Post a Comment

Translate Website

ShareThis