Tuesday, October 30, 2012

Using Debian package tools to list files in a package

To find a file in a Debian package here is a quick reference.

Using the dpkg command:

dpkg -l  =  List all the packages on the system.

dpkg -L {package}  =  List all the files in a package.


Example:
jemurray@unixhosts:~$ dpkg -l | grep mailman
ii  mailman                           1:2.1.13-1ubuntu0.2               Powerful, web-based mailing list manager
jemurray@unixhosts:~$ dpkg -L mailman | grep sbin
/usr/sbin
/usr/sbin/list_lists
/usr/sbin/find_member
/usr/sbin/config_list
/usr/sbin/mmsitepass
/usr/sbin/newlist
/usr/sbin/rmlist
/usr/sbin/add_members
/usr/sbin/list_members
/usr/sbin/remove_members
/usr/sbin/clone_member
/usr/sbin/sync_members
/usr/sbin/check_db
/usr/sbin/check_perms
/usr/sbin/list_admins
/usr/sbin/withlist
/usr/sbin/mmarch

No comments:

Post a Comment

Followers