Use dpkg to find out the files and directories created by a package at the time of install

Whenever we install an application, it automatically creates a lot of files and directories on our system related to it. For debian systems, we can use the dpkg tool to find out all the files created and added by an application at the time of install.

Run dpkg with "-L" option to print out the files and directories:

[shredder12]$ dpkg -L gnome-terminal
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/gnome-terminal
/usr/share/doc/gnome-terminal/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/gnome-terminal.1.gz
/usr/share/menu
/usr/share/menu/gnome-terminal
/usr/share/applications
/usr/share/applications/gnome-terminal.desktop
/usr/bin
/usr/bin/gnome-terminal
/usr/bin/gnome-terminal.wrapper
/usr/share/doc/gnome-terminal/README
/usr/share/doc/gnome-terminal/AUTHORS
/usr/share/doc/gnome-terminal/NEWS.gz
/usr/share/doc/gnome-terminal/changelog.Debian.gz
/usr/share/man/man1/gnome-terminal.wrapper.1.gz

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <p> <br>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.