Configure Offline Repository CentOS5 A

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:Offline Repository Procedure for CentOS 5}} This procedure is designed to upgrade the CentOS Operating System for a system that does not have access to Telcobr...")
 
Line 3: Line 3:
 
This procedure is designed to upgrade the CentOS Operating System for a system that does not have access to Telcobridges repository (no internet access).
 
This procedure is designed to upgrade the CentOS Operating System for a system that does not have access to Telcobridges repository (no internet access).
  
= Download TelcoBridges repository =
+
== Download TelcoBridges repository ==
 
Download the .iso image of TelcoBridges repository on a machine that have access to the system.
 
Download the .iso image of TelcoBridges repository on a machine that have access to the system.
 
  http://repo.telcobridges.com/centos/5/isos/x86_64/tb_centos5_x86_64_repo.iso
 
  http://repo.telcobridges.com/centos/5/isos/x86_64/tb_centos5_x86_64_repo.iso
  
= Upload TelcoBridges repository to the system =
+
== Upload TelcoBridges repository to the system ==
 
Upload the .iso file to the "/root" directory of the system with scp or a SFTP tool like [http://filezilla-project.org/ FileZilla]
 
Upload the .iso file to the "/root" directory of the system with scp or a SFTP tool like [http://filezilla-project.org/ FileZilla]
  
= Mount the .iso file on the system =
+
== Mount the .iso file on the system ==
 
Mount the .iso file on your system
 
Mount the .iso file on your system
  mkdir -p /repo/centos/5
+
  # mkdir -p /repo/centos/5
  mount -t iso9660 -o loop /root/tb_centos5_x86_64_repo.iso /repo/centos/5
+
  # mount -t iso9660 -o loop /root/tb_centos5_x86_64_repo.iso /repo/centos/5
  
 
Add the mount point permanently to the system to make it stay after a reboot.
 
Add the mount point permanently to the system to make it stay after a reboot.
  cp /etc/fstab /etc/fstab.bak
+
  # cp /etc/fstab /etc/fstab.bak
  echo "/root/tb_centos5_x86_64_repo.iso /repo/centos/5 iso9660 loop 0 0" >> /etc/fstab
+
  # echo "/root/tb_centos5_x86_64_repo.iso /repo/centos/5 iso9660 loop 0 0" >> /etc/fstab
  
==== Add TelcoBridges repository file ====
+
== Change TelcoBridges repository file ==
 +
Edit the ''TB-Base.repo'' file
 +
# vim /etc/yum.repos.d/TB-Base.repo
  
vim /etc/yum.repos.d/TB-Base.repo
+
Change ''[tb-base]'' '''baseurl''' line to:
 
+
Paste the following information in that file:
+
 
+
# TelcoBridges-Base.repo
+
#
+
# This repository is using TelcoBridges frozen version of CentOS
+
# to help client installing the required version of the
+
# applications required to run Toolpack
+
#
+
+
[tb-base]
+
name=TelcoBridges-$releasever - Base
+
 
  baseurl=file:///repo/centos/5/os/$basearch/
 
  baseurl=file:///repo/centos/5/os/$basearch/
gpgcheck=1
 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5-tb
 
 
   
 
   
#released updates
+
Change ''[tb-updates]'' '''baseurl''' line to:
[tb-updates]
+
name=TelcoBridges-$releasever - Updates
+
 
  baseurl=file:///repo/centos/5/updates/$basearch/
 
  baseurl=file:///repo/centos/5/updates/$basearch/
gpgcheck=1
 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5-tb
 
 
==== Get TelcoBridges repository key ====
 
  
cd /etc/pki/rpm-gpg/
+
== Clean metadata ==
cp /repo/centos/5/RPM-GPG-KEY-CentOS-5 .
+
  # yum clean metadata
cp: overwrite `./RPM-GPG-KEY-CentOS-5'? y
+
rpm --import RPM-GPG-KEY-CentOS-5
+
cp /repo/centos/5/RPM-GPG-KEY-CentOS-5-tb .
+
  rpm --import RPM-GPG-KEY-CentOS-5-tb
+

Revision as of 12:32, 16 May 2016


This procedure is designed to upgrade the CentOS Operating System for a system that does not have access to Telcobridges repository (no internet access).

Contents

Download TelcoBridges repository

Download the .iso image of TelcoBridges repository on a machine that have access to the system.

http://repo.telcobridges.com/centos/5/isos/x86_64/tb_centos5_x86_64_repo.iso

Upload TelcoBridges repository to the system

Upload the .iso file to the "/root" directory of the system with scp or a SFTP tool like FileZilla

Mount the .iso file on the system

Mount the .iso file on your system

# mkdir -p /repo/centos/5
# mount -t iso9660 -o loop /root/tb_centos5_x86_64_repo.iso /repo/centos/5

Add the mount point permanently to the system to make it stay after a reboot.

# cp /etc/fstab /etc/fstab.bak
# echo "/root/tb_centos5_x86_64_repo.iso /repo/centos/5 iso9660 loop 0 0" >> /etc/fstab

Change TelcoBridges repository file

Edit the TB-Base.repo file

# vim /etc/yum.repos.d/TB-Base.repo

Change [tb-base] baseurl line to:

baseurl=file:///repo/centos/5/os/$basearch/

Change [tb-updates] baseurl line to:

baseurl=file:///repo/centos/5/updates/$basearch/

Clean metadata

# yum clean metadata
Personal tools