]> The Tcpdump Group git mirrors - tcpdump/blob - INSTALL.md
Fix a typo
[tcpdump] / INSTALL.md
1 # tcpdump installation notes
2 If you have not built libpcap, and your system does not have libpcap
3 installed, install libpcap first. Your system might provide a version
4 of libpcap that can be installed; if so, to compile tcpdump you might
5 need to install a "developer" version of libpcap as well as the
6 "run-time" version. You can also install tcpdump.org's version of
7 libpcap; see [this file](README.md) for the location.
8
9 You will need a C99 compiler to build tcpdump. The build system
10 will abort if your compiler is not C99 compliant. If this happens, use
11 the generally available GNU C compiler (GCC) or Clang.
12
13 After libpcap has been built (either install it with `make install` or
14 make sure both the libpcap and tcpdump source trees are in the same
15 directory), run `./configure` (a shell script). `configure` will
16 determine your system attributes and generate an appropriate `Makefile`
17 from `Makefile.in`. Now build tcpdump by running `make`.
18
19 If everything builds ok, `su` and type `make install`. This will install
20 tcpdump and the manual entry. Any user will be able to use tcpdump to
21 read saved captures. Whether a user will be able to capture traffic
22 depends on the OS and the configuration of the system; see the
23 [tcpdump man page](https://www.tcpdump.org/manpages/tcpdump.1.html)
24 for details. DO NOT give untrusted users the ability to
25 capture traffic. If a user can capture traffic, he or she could use
26 utilities such as tcpdump to capture any traffic on your net, including
27 passwords.
28
29 Note that most systems ship tcpdump, but usually an older version.
30 Building tcpdump from source as explained above will usually install the
31 binary as `/usr/local/bin/tcpdump`. If your system has other tcpdump
32 binaries, you might need to deinstall these or to set the PATH environment
33 variable if you need the `tcpdump` command to run the new binary
34 (`tcpdump --version` can be used to tell different versions apart).
35
36 If your system is not one which we have tested tcpdump on, you may have
37 to modify the `configure` script and `Makefile.in`. Please
38 [send us patches](https://www.tcpdump.org/index.html#patches)
39 for any modifications you need to make.
40
41 Please see [this file](README.md) for notes about tested platforms.
42
43
44 ## Description of files
45 ```
46 CHANGES - description of differences between releases
47 CONTRIBUTING.md - guidelines for contributing
48 CREDITS - people that have helped tcpdump along
49 INSTALL.md - this file
50 LICENSE - the license under which tcpdump is distributed
51 Makefile.in - compilation rules (input to the configure script)
52 README.md - description of distribution
53 Readme.Win32 - notes on building tcpdump on Win32 systems (with WinPcap)
54 VERSION - version of this release
55 aclocal.m4 - autoconf macros
56 addrtoname.c - address to hostname routines
57 addrtoname.h - address to hostname definitions
58 addrtostr.c - address to printable string routines
59 addrtostr.h - address to printable string definitions
60 ah.h - IPSEC Authentication Header definitions
61 appletalk.h - AppleTalk definitions
62 ascii_strcasecmp.c - locale-independent case-independent string comparison
63 routines
64 atime.awk - TCP ack awk script
65 atm.h - ATM traffic type definitions
66 bpf_dump.c - BPF program printing routines, in case libpcap doesn't
67 have them
68 chdlc.h - Cisco HDLC definitions
69 cpack.c - functions to extract packed data
70 cpack.h - declarations of functions to extract packed data
71 config.guess - autoconf support
72 config.h.in - autoconf input
73 config.sub - autoconf support
74 configure - configure script (run this first)
75 configure.ac - configure script source
76 doc/README.* - some building documentation
77 ethertype.h - Ethernet type value definitions
78 extract.h - alignment definitions
79 gmpls.c - GMPLS definitions
80 gmpls.h - GMPLS declarations
81 install-sh - BSD style install script
82 interface.h - globals, prototypes and definitions
83 ip.h - IP definitions
84 ip6.h - IPv6 definitions
85 ipproto.c - IP protocol type value-to-name table
86 ipproto.h - IP protocol type value definitions
87 l2vpn.c - L2VPN encapsulation value-to-name table
88 l2vpn.h - L2VPN encapsulation definitions
89 lbl/os-*.h - OS-dependent defines and prototypes
90 llc.h - LLC definitions
91 machdep.c - machine dependent routines
92 machdep.h - machine dependent definitions
93 makemib - mib to header script
94 mib.h - mib definitions
95 missing/* - replacements for missing library functions
96 ntp.c - functions to handle ntp structs
97 ntp.h - declarations of functions to handle ntp structs
98 mkdep - construct Makefile dependency list
99 mpls.h - MPLS definitions
100 nameser.h - DNS definitions
101 netdissect.h - definitions and declarations for tcpdump-as-library
102 (under development)
103 nfs.h - Network File System V2 definitions
104 nfsfh.h - Network File System file handle definitions
105 nlpid.c - OSI NLPID value-to-name table
106 nlpid.h - OSI NLPID definitions
107 ospf.h - Open Shortest Path First definitions
108 packetdat.awk - TCP chunk summary awk script
109 parsenfsfh.c - Network File System file parser routines
110 pcap-missing.h - declarations of functions possibly missing from libpcap
111 ppp.h - Point to Point Protocol definitions
112 print.c - Top-level routines for protocol printing
113 print-*.c - The netdissect printers
114 rpc_auth.h - definitions for ONC RPC authentication
115 rpc_msg.h - definitions for ONC RPC messages
116 send-ack.awk - unidirectional tcp send/ack awk script
117 slcompress.h - SLIP/PPP Van Jacobson compression (RFC1144) definitions
118 smb.h - SMB/CIFS definitions
119 smbutil.c - SMB/CIFS utility routines
120 stime.awk - TCP send awk script
121 tcp.h - TCP definitions
122 tcpdump.1 - manual entry
123 tcpdump.c - main program
124 timeval-operations.h - timeval operations macros
125 udp.h - UDP definitions
126 util-print.c - utility routines for protocol printers
127 ```