Configure Offline Repository CentOS7 A
From TBwiki
(Difference between revisions)
(Created page with "{{DISPLAYTITLE:Offline Repository Procedure for CentOS 7}} This page shows how to configure CentOS packages manager for a system that does not have access to Telcobridges rep...") |
Nicole Tan (Talk | contribs) |
||
(8 intermediate revisions by one user not shown) | |||
Line 5: | Line 5: | ||
== 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/ | + | http://repo.telcobridges.com/centos/7/isos/x86_64/tb_centos7_x86_64_repo.iso |
== Upload TelcoBridges repository to the system == | == Upload TelcoBridges repository to the system == | ||
Line 14: | Line 14: | ||
# mkdir -p /repo/centos/7 | # mkdir -p /repo/centos/7 | ||
# mount -t iso9660 -o loop /root/tb_centos7_x86_64_repo.iso /repo/centos/7 | # mount -t iso9660 -o loop /root/tb_centos7_x86_64_repo.iso /repo/centos/7 | ||
− | |||
− | |||
− | |||
− | |||
== Change TelcoBridges repository file == | == Change TelcoBridges repository file == | ||
Line 26: | Line 22: | ||
baseurl=file:///repo/centos/7/os/$basearch/ | baseurl=file:///repo/centos/7/os/$basearch/ | ||
− | == | + | == Update CentOS 7 == |
# yum clean metadata | # yum clean metadata | ||
+ | # yum update | ||
+ | |||
+ | == Delete ISO file == | ||
+ | Since the repository file is quite large, it is better to delete it after the update is complete: | ||
+ | # rm /root/*repo.iso |
Latest revision as of 09:23, 5 June 2019
This page shows how to configure CentOS packages manager 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/7/isos/x86_64/tb_centos7_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/7 # mount -t iso9660 -o loop /root/tb_centos7_x86_64_repo.iso /repo/centos/7
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/7/os/$basearch/
Update CentOS 7
# yum clean metadata # yum update
Delete ISO file
Since the repository file is quite large, it is better to delete it after the update is complete:
# rm /root/*repo.iso