Friday, August 31, 2012

How to add remote FTP / HTTP repose to RHEL 6 server

To do it, first you need to collect below two details;

  • FTP / HTTP YUM server IP i.e. "10.0.0.1"
  • Packages location on remote YUM server i.e. "/rhel6_64repo/Packages/"

Then create a repo file "rhel6_64_remote.repo" in "/etc/yum.repos.d/" folder with below content;


[rhel6_64_remote]
name=Remote Network Repository for RHEL6 $releasever – $basearch
baseurl=ftp://10.0.0.1/rhel6_64repo/Packages/
enabled=1
gpgcheck=0


If you want to add HTTP repo link, then replace "ftp" with "http".

To add Local repo, read this article.

No comments:

Post a Comment