YUM CREATION IN RHEL5
Steps :-> 1) Insert RHEL5 DVD in Your DVD writer
Mount your DVD-> mount /dev/cdrom /mnt
Create a Directory and Copy DVD in to created Directory :-->
mkdir /swastik ; cp -rvf /mnt/* /swastik
Install the createrepo Package :->
rpm –ivh /swastik/Server/createrepo*
Create Repository :->
createrepo –g /swastik/Server/repodata/* /swastik/Server
createrepo -g /swastik/VT/repodata/* /swastik/VT
createrepo -g /swastik/Cluster/repodata/* /swastik/Cluster
createrepo -g /swastik/ClusterStorage/repodata/* /swastik/ClusterStorage
Create Repository file:-
vim /etc/yum.repos.d/swastik.repo {press i for insert}
[base]
name=base
baseurl=file: ///swastik/Server
enable=1
gpgcheck=0
[vt]
name=vt
baseurl=file:///swastik/VT
enable=1
gpgcheck=0
[cluster]
name=cluster
baseurl=file:///swastik/Cluster
enable=1
gpgcehck=0
[clusterstorage]
name=clusterstorage
baseurl=file:///swastik/ClusterStorage
enable=1
gpgcehck=0 save this file by :---> esc, shift+: wq
Clear Previous Cache and Update Packages->
Yum clean all ; Yum update
To Install Package :->
Yum install PackageName
example:- yum install bind*
YUM SERVER IN RHEL6
Mount your RHEL6 DVD-> mount /dev/cdrom /mnt
Create a Directory and Copy DVD in to created Directory :->
mkdir /swastik ; cp -rvf /mnt/* /swastik
Install the createrepo Package :->
rpm –ivh /swastik/Packages/deltarpm*
rpm –ivh /swastik/Packages/python-deltarpm*
rpm –ivh /swastik/Packages/createrepo*
Create Repository :->
createrepo –g /swastik/repodata/21* /swastik/Packages
Create Repository file:->
vim /etc/yum.repos.d/swastik.repo {press i for insert}
[base]
name=base
baseurl=file: ///swastik/Packages
enable=1
gpgcheck=0
save this file by :---> esc, shift+: wq
Clear Previous Cache and Update Packages->
Yum clean all ; Yum update
To Install Package :->
Yum install PackageName -y
example:-> yum install nfs*
To See all Packages:->
yum list all
To See Package Information:->
yum info
YUM CREATION IN RHEL5
Steps :-> 1) Insert RHEL5 DVD in Your DVD writer
Mount your DVD-> mount /dev/cdrom /mnt
Create a Directory and Copy DVD in to created Directory :-->
mkdir /swastik ; cp -rvf /mnt/* /swastik
Install the createrepo Package :->
rpm –ivh /swastik/Server/createrepo*
Create Repository :->
createrepo –g /swastik/Server/repodata/* /swastik/Server
createrepo -g /swastik/VT/repodata/* /swastik/VT
createrepo -g /swastik/Cluster/repodata/* /swastik/Cluster
createrepo -g /swastik/ClusterStorage/repodata/* /swastik/ClusterStorage
Create Repository file:-
vim /etc/yum.repos.d/swastik.repo {press i for insert}
[base]
name=base
baseurl=file: ///swastik/Server
enable=1
gpgcheck=0
[vt]
name=vt
baseurl=file:///swastik/VT
enable=1
gpgcheck=0
[cluster]
name=cluster
baseurl=file:///swastik/Cluster
enable=1
gpgcehck=0
[clusterstorage]
name=clusterstorage
baseurl=file:///swastik/ClusterStorage
enable=1
gpgcehck=0 save this file by :---> esc, shift+: wq
Clear Previous Cache and Update Packages->
Yum clean all ; Yum update
To Install Package :->
Yum install PackageName
example:- yum install bind*
Create a Directory and Copy DVD in to created Directory :->
save this file by :---> esc, shift+: wq
Yum install PackageName -y
example:-> yum install nfs*
To See all Packages:->
yum list all
To See Package Information:->
yum info
No comments:
Post a Comment