LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   Configure YUM in simple easy steps in RedHat (http://www.linuxquestions.org/questions/red-hat-31/configure-yum-in-simple-easy-steps-in-redhat-694626/)

sandeeprhce5 01-03-2009 01:48 AM

Configure YUM in simple easy steps in RedHat
 
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

acid_kewpie 01-04-2009 01:28 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

And again, this is really not the place to post documentation.


All times are GMT -5. The time now is 11:32 PM.