Hi All, Kindly ignore my earlier response. Since I am a newbie to Linux, I am posting many things as a queries. After posting my earlier response, I tried with "*wget*" and understand that it is being redirected to some other mirror server(closest to my geography) which is not configured in the hosts file.
I am not sure about the permanent solution. Because for every new session being created, *wget *routed via different mirror sites. But tactically resolved the issue by performing "*wget*" and then adding an entry into hosts file and then tried "*yum install jenkins*" command in the same session. Now it is installed in my machine. This is too early to respond since the complete setup is not yet over. But I should not waste your time and effort unnecessarily for the work which is already complete. Thanks John, Les and Richard for all your valuable inputs Regards, Mohamed Sathack On Monday, 23 February 2015 12:10:51 UTC+5:30, Mohamed Sathack wrote: > > Hi, > > This time I added an entry into the hosts file and tried again. > > I am able to create the repository. But failed while installation > > [root@Server_ABC ~]# sudo wget -O /etc/yum.repos.d/jenkins.repo > http://pkg.jenkins-ci.org/redhat/jenkins.repo > --05:31:41-- http://pkg.jenkins-ci.org/redhat/jenkins.repo > Resolving pkg.jenkins-ci.org... 199.193.196.24 > Connecting to pkg.jenkins-ci.org|199.193.196.24|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 75 [text/plain] > Saving to: `/etc/yum.repos.d/jenkins.repo' > > 100%[===============================================================================================================================>] > > 75 --.-K/s in 0s > > 05:31:41 (6.74 MB/s) - `/etc/yum.repos.d/jenkins.repo' saved [75/75] > > > > > > root@Server_ABC ~]# sudo yum install jenkins > Loaded plugins: rhnplugin, security > This system is not registered with RHN. > RHN support will be disabled. > Setting up Install Process > Parsing package install arguments > Resolving Dependencies > --> Running transaction check > ---> Package jenkins.noarch 0:1.599-1.1 set to be updated > --> Finished Dependency Resolution > .......... > .......... > .......... > Total download size: 60 M > Is this ok [y/N]: y > Downloading Packages: > http://pkg.jenkins-ci.org/redhat/jenkins-1.599-1.1.noarch.rpm: [Errno 4] > IOError: <urlopen error (-2, 'Name or service not known')> > Trying other mirror. > > > Error Downloading Packages: > jenkins-1.599-1.1.noarch: failure: jenkins-1.599-1.1.noarch.rpm from > jenkins: [Errno 256] No more mirrors to try. > > > > I am able to ping the server. I am able to access the same link from our > Windows environment. > > Regards, > Mohamed Sathack > > > > On Thursday, 19 February 2015 21:49:46 UTC+5:30, LesMikesell wrote: >> >> On Thu, Feb 19, 2015 at 5:17 AM, Mohamed Sathack <ssa...@gmail.com> >> wrote: >> > Hi John, >> > >> > I am getting error as below >> > >> > # sudo wget -O /etc/yum.repos.d/jenkins.repo >> > http://199.193.196.24/redhat/jenkins.repo >> > --11:14:54-- http://199.193.196.24/redhat/jenkins.repo >> > Connecting to 199.193.196.24:80... connected. >> > HTTP request sent, awaiting response... 301 Moved Permanently >> > Location: http://ci.jenkins-ci.org/redhat/jenkins.repo [following] >> > --11:14:54-- http://ci.jenkins-ci.org/redhat/jenkins.repo >> > Resolving ci.jenkins-ci.org... failed: Name or service not known. >> > >> > >> > Since the domain name is not resolved(not present in hosts file), I am >> > trying to connect with the help of IP Address. It has been >> resolved(please >> > refer first few lines) and then throwing error at last. Due to this, >> > jenkins.repo is created with '0 kb' as file size. >> >> Can't you make DNS work on your machine? If not, yum probably isn't >> going to work even if you get the repo file installed - and you won't >> be able to do normal yum updates to maintain the machine. Your other >> option is to download the latest rpm package listed in the 'individual >> package downloads" for RedHat using a machine where DNS works, >> transfer over to this machine and install with the rpm or yum command. >> >> -- >> Les Mikesell >> lesmi...@gmail.com >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ba61fac1-47c5-4749-b34d-bf30a38ce26f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.