Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using RHEL6

Hi i have created the yum repository, i downloaded the snort rpm package from their website when i tried to install the rpm its thorws error e.g.


1:snort- requires libsfbpf.so.0
1:snort- requires libdnet.so.1
1:snort- requires libpcre.so.1

1) I tried finding these files on the internet and couldn't find any

2) How do i install the snort using yum, i tried yum install \Desktop\snort-2.9.5* it threw error that i have failed dependecies


Resolving Dependencies
--> Running transaction check
---> Package snort.i386 1: set to be updated
--> Processing Dependency: libdnet.so.1 for package: 1:snort-
--> Processing Dependency: libpcre.so.1 for package: 1:snort-
--> Processing Dependency: libsfbpf.so.0 for package: 1:snort-
--> Finished Dependency Resolution
Error: Package: 1:snort- (/snort-
           Requires: libsfbpf.so.0
Error: Package: 1:snort- (/snort-
           Requires: libdnet.so.1
Error: Package: 1:snort- (/snort-
           Requires: libpcre.so.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

How do i get snort to be installed, i even tried to install fwbuilder but failed

share|improve this question
libsfbpf.so.0 is provided by the daq package provided on the snort website snort.org/snort-downloads – Joel Taylor Sep 4 '13 at 15:53
up vote 1 down vote accepted

If you need to find out what repo package(s) contain a specific file, you can try (e.g.):

yum provides "*/libdnet.so.1"

This uses shell globbing, so "*/" covers the fact that yum will be looking through absolute pathnames. That is necessary. Note it searches your repositories, not just installed packages. For the example above using F17, I get:

libdnet-1.12-8.fc17.i686 : Simple portable interface to lowlevel networking routines
Repo        : fedora
Matched from:
Filename    : /usr/lib/libdnet.so.1

libdnet-1.12-8.fc17.x86_64 : Simple portable interface to lowlevel networking routines
Repo        : fedora
Matched from:
Filename    : /usr/lib64/libdnet.so.1

This one is fairly straightforward, but since this is a filename search, you may often get lots of hits and have to make a considered guess about what it is you are really looking for.

yum provides matches against a number of .rpm field headers, so you do not actually have to search for a specific file (but shell glob syntax always applies; the Provides: field often has stuff in it). E.g., just plain yum provides libdnet works here -- as of course does the more common and straightforward:

yum search libdnet
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.