I'm new to SUSE and do not understand how to install packages with zypper. Or, rather, I understand you use the "install" subcommand, but it frequently can't find what I'm looking for.
For example, I need libpcap-devel
to get the pcap.h
headers and the linkable library. The SUSE website says that the package is available, but it doesn't show ups hen I try to install. Meanwhile zypper says it is installed, but the .h
file isn't there:
$ sudo zypper install libpcap-dev
Refreshing service 'nu_novell_com'.
Loading repository data...
Reading installed packages...
'libpcap-dev' not found.
Resolving package dependencies...
Nothing to do.
$ sudo zypper search pcap
Refreshing service 'nu_novell_com'.
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+-----------------+--------------------------------+-----------
| libpcap | A Library for Network Sniffers | srcpackage
i | libpcap0 | A Library for Network Sniffers | package
i | slessp1-libpcap | Recommended update for libpcap | patch
$ sudo zypper install libpcap
Refreshing service 'nu_novell_com'.
Loading repository data...
Reading installed packages...
'libpcap0' providing 'libpcap' is already installed.
Resolving package dependencies...
Suggestions?