User Tools

Site Tools


wiki:disable_a_repo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:disable_a_repo [2021/02/25 23:30] walkeradminwiki:disable_a_repo [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 5: Line 5:
 \\  \\ 
 ===== Introduction ===== ===== Introduction =====
 +
 +----
 +
 repo files, in CentOS are located in <color #00a2e8>'/etc/yum.repo.d'</color>. These files hold information (URLs) about where repositories are for CentOS programs (tcpdump, htop, nload etc.) repo files, in CentOS are located in <color #00a2e8>'/etc/yum.repo.d'</color>. These files hold information (URLs) about where repositories are for CentOS programs (tcpdump, htop, nload etc.)
 \\  \\ 
Line 20: Line 23:
 \\  \\ 
 \\  \\ 
-sudo yum disablerepo=cdrom install yum-utils -y+<color #00a2e8>sudo yum disablerepo=cdrom install yum-utils -y</color>
 \\  \\ 
 \\  \\ 
Line 27: Line 30:
 \\  \\ 
 This allows us to install <color #00a2e8>yum-utils</color> while telling CentOS to ignore repositories listed in the <color #00a2e8>cdrom.repo</color> file. This allows us to install <color #00a2e8>yum-utils</color> while telling CentOS to ignore repositories listed in the <color #00a2e8>cdrom.repo</color> file.
 +\\ 
 +\\ 
 +----
 +\\ 
 +If we wish to disable a repo permanently then we can use the following syntax:
 +\\ 
 +\\ 
 +<color #22b14c>sudo yum-config-manager --disable cdrom</color>
 +\\ 
 +\\ 
 +This will tell <color #22b14c>yum-config-manage</color>r to disable the repo file <color #22b14c>cdrom</color> (note we do not require the .repo extension)
 +\\ 
 +\\ 
 +For this to work the <color #22b14c>yum-config-manager</color> must have been installed <color #22b14c>(yum install yum-config-manager)</color>.
 \\  \\ 
 \\  \\ 
  
 ---- ----
 +
  
wiki/disable_a_repo.1614295826.txt.gz · Last modified: 2023/03/09 22:35 (external edit)