Install sngrep in centos 7 from yum package
sngrep install centos 7 linux
First of all, add the irontec repository to centos Repos. Create file named sngrep.repo in /etc/yum.repos.d folder and add the following repository to install sngrep.
vim /etc/yum.repos.d/sngrep.repo
Now add the following repository.
1 2 3 |
[irontec] name=Irontec RPMs repository baseurl=http://packages.irontec.com/centos/$releasever/$basearch/ |
Then Import the Irontec repositories public key using the following command.
rpm --import http://packages.irontec.com/public.key
Now update the yum cache and install the sngrep using the following command.
yum update
yum install sngrep
Sample output :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
[root@kam kam]# yum install sngrep Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.iitm.ac.in * epel: repo.ugm.ac.id * extras: ftp.iitm.ac.in * updates: ftp.iitm.ac.in Resolving Dependencies --> Running transaction check ---> Package sngrep.x86_64 0:1.4.3-0.el7.centos will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================= Package Arch Version Repository Size ========================================================================================================================================================= Installing: sngrep x86_64 1.4.3-0.el7.centos irontec 94 k Transaction Summary ========================================================================================================================================================= Install 1 Package Total size: 94 k Installed size: 280 k Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : sngrep-1.4.3-0.el7.centos.x86_64 1/1 Verifying : sngrep-1.4.3-0.el7.centos.x86_64 1/1 Installed: sngrep.x86_64 0:1.4.3-0.el7.centos Complete! |
works on CentOS 8 as well