O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  

Find executables of an installed debian package (using dpkg)
Here's a script that lists all executables of an installed debian package.

Contributed by:
Unknown User anonymous2
[01/21/04 | Discuss (0) | Link to this hack]

# Lookup executables of package

if [ ! $1 ]; then
  echo "Use: ${0} <package>"

for i in `dpkg -L $1`; do
   if [ -x $i ] && [ ! -d $i ]; then
      ls -l $i

O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.