Make sure you have backup in /var/ftp/pub
Create a file
#vim /etc/yum.repos.d/local.repo
[local.repo]
name=my repo
baseurl=file:///var/ftp/pub/Server
enabled=1
gpgcheck=0
:wq! save and exit
open a file
#vim /etc/yum.conf
make sure gpgcheck=0
:wq! save and exit
#yum clean all
#yum update all
[Note]
If yum update all show a error it means your rpm repositery is croupted .How to repair it
#cd /var/ftp/pub/Server
#rpm -ivh creatrepo*
#creatrepo -v /var/ftp/pub/Server
Now again run command
#yum clean all
#yum update all
How to install packages via yum ?
eg.= #yum install dhcpd* (for install dhcp pakages)
How to remove packages via yum ?
#yum remove dhcpd
More examples of packges
#yum install postfix*
#yum install sendmail*
#yum install bind*
#yum install kde* (for install kde desktop envirment)
Author of this artical is:- sandeeprhce5
Create a file
#vim /etc/yum.repos.d/local.repo
[local.repo]
name=my repo
baseurl=file:///var/ftp/pub/Server
enabled=1
gpgcheck=0
:wq! save and exit
open a file
#vim /etc/yum.conf
make sure gpgcheck=0
:wq! save and exit
#yum clean all
#yum update all
[Note]
If yum update all show a error it means your rpm repositery is croupted .How to repair it
#cd /var/ftp/pub/Server
#rpm -ivh creatrepo*
#creatrepo -v /var/ftp/pub/Server
Now again run command
#yum clean all
#yum update all
How to install packages via yum ?
eg.= #yum install dhcpd* (for install dhcp pakages)
How to remove packages via yum ?
#yum remove dhcpd
More examples of packges
#yum install postfix*
#yum install sendmail*
#yum install bind*
#yum install kde* (for install kde desktop envirment)
Author of this artical is:- sandeeprhce5
No comments:
Post a Comment