Advertisement
rafaelsnsa

sngrep install

Jul 6th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # https://github.com/irontec/sngrep/wiki/Installing-Binaries#centos--fedora--rhel
  4. # Instalar
  5. # curl -s -k https://pastebin.com/raw/00uTwtZ3 > sngrep && sed -i 's/\r$//' sngrep && bash sngrep && rm -rf sngrep
  6.  
  7. REPOL1="[irontec]"
  8. REPOL2="name=Irontec RPMs repository"
  9. REPOL3="baseurl=http://packages.irontec.com/centos/\$releasever/\$basearch/"
  10.  
  11. REPOFILE="/etc/yum.repos.d/irontec.repo"
  12.  
  13. echo $REPOL1 > $REPOFILE
  14. echo $REPOL2 >> $REPOFILE
  15. echo $REPOL3 >> $REPOFILE
  16.  
  17. rpm --import http://packages.irontec.com/public.key
  18.  
  19. yum install -y sngrep
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement