YUM SERVER (Method 1):

INTRODUCTION:

  • It is used to install, remove and update RPM Packages.
  • The best part is this, It automatically install dependency packages (if any).

    For Example:

    If you are installing a package abc.rpm and x.rpm, y.rpm, z.rpm must be installed before installing abc.rpm, Then x.rpm, y.rpm, z.rpm is called dependency packages of abc.rpm.

    While Installing
    abc.rpm, YUM will automatically install x.rpm, y.rpm, z.rpm.

 

CONFIGURATION:

mount /dev/cdrom /media
cp -R /media/Server /dump
cp -R /media/VT /dump
cp -R /media/Cluster /dump
cp -R /media/ClusterStorage /dump

 

cd /dump/Server

rpm -ivh createrepo*

 

mv comps-rhel5-server-core.xml /root/Desktop
rm -rf repodata

 

createrepo -v -g /root/Desktop/ comps-rhel5-server-core.xml /dump/Server

 

(do the same for VT, Cluseter and ClusterStorage)

 

cd /etc/yum.repos.d/
cp rhel-debuginfo.repo local.repo

vim local.repo
[Server]
name=RHEL5.3
baseurl=file:///dump/Server
enabled=1
gpgcheck=0
[VT]
name=RHEL5.3
baseurl=file:///dump/VT
enabled=1
gpgcheck=0
[Cluster]
name=RHEL5.3
baseurl=file:///dump/Cluster
enabled=1
gpgcheck=0
[ClusterStorage]
name=RHEL5.3
baseurl=file:///dump/ClusterStorage
enabled=1
gpgcheck=0

 

yum clean all
To update all installed packages:

yum update


To install any package (for example: vsftpd*.rpm):

yum install vsftpd


To remove/uninstall any package (for example: vsftpd*.rpm):

yum remove vsftpd


To view whether the package (for example: vsftpd*.rpm) is installed or not:

yum list vsftpd


To list all the package installed and available (to install):

yum list


To list all the group-packages installed and available (to install):

yum grouplist


To view information about the package (for example: vsftpd*.rpm):

yum info vsftpd


To install package using Graphical Interface: 1. Switch to Graphical Console. 2. Application menu -> Add/Remove Software


(Note: soft links can also be used if already copied in other location for other purpose like XEN etc.

#ln   -s   /ostree/{Server,VT,Cluster,ClusterStorage}   /dump


 

Related Topics:

Connect With Us
Instant Query
Your Name :

Email Address :

Message :