Skip to main content

Posts

Showing posts with the label yum

Add repositories for yum

Add Dag RPM Repository for yum because that has many useful packages. wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt rpm - -import RPM-GPG-KEY.dag.txt rm -f RPM-GPG-KEY.dag.txt vim /etc/yum.repos.d/dag.repo # create new file like below [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el5/en/$basearch/dag/ gpgcheck=1 enabled=0 When you use DAG repository, Input yum command like below. yum - -enablerepo=dag install [package] Add repository Extra Package for Enterprise Linux (EPEL) that is provided from Fedora project. wget http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL rpm - -import RPM-GPG-KEY-EPEL rm -f RPM-GPG-KEY-EPEL vim /etc/yum.repos.d/epel.repo # create new file like below [epel] name=EPEL RPM Repository for Red Hat Enterprise Linux baseurl=http://download.fedora.redhat.com/pub/epel/$releasever/$basearch/ gpgcheck=1 enabled=0 When you use EPEL repository, Input yum command like bel...

Yum to access through Proxy Server

In some network where you have to enter the IP Address of the proxy server to access the internet and you are not able to use the yum command to update your system. You normally put the Proxy Server IP and Ports in your browser setting, but in Linux box that doesnot solve the problem. You need to edit the file /etc/yum.conf , and make a new entry in the bottom of the file as below: proxy=http://<Proxy Address>:<proxy port> Now run the yum command and you will see its now working.