disable other repos test

From Mammoth Moth, 6 Years ago, written in Bash, viewed 211 times.
URL https://paste.steamr.com/view/56e50d48 Embed
Download Paste or View Raw
  1. #!/bin/bash
  2. # What: Disables all other non-cpsc repos
  3. # Why: cpsc-extras will provide extraneous packages
  4.  
  5. # RepoFile="/etc/yum.repos.d/google-chrome.repo"
  6.  
  7. function extra_repos() {
  8.         dnf -q repolist \
  9.                 | tail -n + 2 \
  10.                 | awk '{print $1}' \
  11.                 | grep -v cpsc
  12. }
  13.  
  14. for i in `extra_repos` ; do
  15.         echo $i
  16. done
  17.  
  18.  

Reply to "disable other repos test"

Here you can reply to the paste above