I have tcpdump 4.9.2 on my Macbook installed and I compiled tcpdump 4.9.3 from source
./configure
make
make install
tcpdump 4.9.3 is in the folder
/Users/username/Documents/projects/tcpdump-tcpdump-4.9.3
make install gets me the following output:
[ -d /usr/local/sbin ] || \
(mkdir -p /usr/local/sbin; chmod 755 /usr/local/sbin)
/usr/bin/install -c tcpdump /usr/local/sbin/tcpdump
/usr/bin/install -c tcpdump
/usr/local/sbin/tcpdump.`cat ./VERSION`
[ -d /usr/local/share/man/man1 ] || \
(mkdir -p /usr/local/share/man/man1; chmod 755
/usr/local/share/man/man1)
/usr/bin/install -c -m 644 tcpdump.1
/usr/local/share/man/man1/tcpdump.1
in /usr/local/sbin
I find a file called tcpdump.4.9.3
/usr/local/sbin/tcpdump.4.9.3 --version
tcpdump.4.9.3 version 4.9.3
libpcap version 1.8.1 -- Apple version 79.250.1
SMI-library: 0.5.0
when I check with tcpdump --version
tcpdump --version
tcpdump version tcpdump version 4.9.2 -- Apple version
83.200.2
libpcap version 1.8.1 -- Apple version 79.250.1
LibreSSL 2.2.7
Make install should set all the paths so I should be able to use 4.9.3 right?
with /usr/local/sbin/tcpdump.4.9.3
I can use
4.9.3 but I have to specify the path.
When I open the command line in the home folder and I check with: /usr/sbin/tcpdump --version
tcpdump version tcpdump version 4.9.2 -- Apple version 83.200.2
libpcap version 1.8.1 -- Apple version 79.250.1
LibreSSL 2.2.7
How do I remove 4.9.2 and make 4.9.3 global so that I can use tcpdump anywhere in the commandline?