Slide 1 : YUM : Yellodog Updater Modified Presented by : Abhishek Chib
Slide 2 : What is Yum ?
yum is an interactive, automated update program which can be used for maintaining systems using rpm.
Front-end to rpm
Designed to resolve package dependencies
Can locate packages across multiple repositories
Replacement for up2date
Command :
yum [options] [command] [package ...]
Slide 3 : Yum Repositories :
Creation of yum repositories is handled by a separate tool called "createrepo", which generates the necessary XML metadata.
The mrepo tool (formerly known as Yam) can help in the creation and maintenance of repositories.
Depends on Two Ways :
Server : Where we create YUM Repositories
Client : Where we use YUM Repositories
Slide 4 : About YUM Service :
For Server and Client :
Service name : yum-updatesd
File Location : /etc/init.d/yum-updatesd
Handle Service :
# service yum-updatesd start
# chkconfig yum-updatesd on
On Server : ( How to Create YUM Repo )
Copy all RPMs to any one Directory
Run command
# createrepo –v Dir_Path
Slide 5 : Client Repo file Creations :
File Location : /etc/yum.repo.d/
Open one file with vi editor with Ext. .repo : vi test.repo
Edit this file with following syntax :
[repo-name]
name=A nice description
baseurl=http or ftp or file ://yourserver.com/path/to/repo
enabled=1 or 0
gpgcheck=1 or 0
Save and Exit, Now your Repo ready to use
Slide 6 : Using yum :
Install/Remove/Update
yum install package...
yum remove package...
yum update package...
Searching packages/files
Searching packages
yum search searchterm
yum list (all|available|extras|installed|recent|updates)
yum info packagename
Searching files
yum whatprovides filename