Sunday 21 October 2012

How to configure wget on a proxy network in Centos

When your Linux Centos system using Proxy server or your network environment require you to use proxy server to go to internet, you may need to configure wget to enable wget to download through that proxy server.  To enable wget download through proxy server for all user on your Centos system, you need to edit the "/etc/wgetrc" configuration file.

 Backup "wgetrc" configuration file before we start edit the "wgetrc" file.

             [root@sysadmin ~]#   cp   -p   /etc/wgetrc   /etc/wgetrc.bkp

Open the /etc/wgetrc configuration file and Remove the comment tag (#) https_proxy,http_proxy,ftp_proxy and use_proxy then put the proxy server address and proxy server port number.

             [root@sysadmin ~]#   vim   /etc/wgetrc



Test using "wget" to download something from internet..



Now you can able to download from Internet using wget command.

Friday 12 October 2012

How to configure yum on a proxy network in Centos

Now we are going to enable yum update through proxy server on Linux Centos system. So Backup "yum.conf" configuration file before we start edit the yum.conf file.

          [root@sysadmin ~]#   cp  -p   /etc/yum.conf   /etc/yum.conf.bkp


Open the yum.conf configuration file and put the http proxy server address and proxy port number

          [root@sysadmin ~]#   vim   /etc/yum.conf




If the proxy server require a user name and password... edit the /etc/yum.conf and add proxy user username and add proxy user password




 Then execute "yum clean all" command to clean/clear yum cache file




Then execute "yum update" command



I hope, it should work.

Wednesday 10 October 2012

Install EPEL and RPMFORGE Repository on CentOS 6.3 x86_64

Download and import GPG key for EPEL:

[root@manivel ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6

Import GPG Key

    [root@manivel ~]# rpm –import RPM-GPG-KEY-EPEL-6

    [root@manivel ~]# rm -f RPM-GPG-KEY-EPEL-6

Download and Install EPEL software :

    [root@manivel ~]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    [root@manivel ~]# rpm -ivh epel-release-6-8.noarch.rpm



Download and Install RPMFORGE software :


    [root@manivel ~]#  wget   http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

    [root@manivel ~]#  rpm   -ivh   rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

It should resolve your issue.