Once you use the apt-get utility to install a package, sometimes it seems to disappear into nowhere. You know it’s installed, you just have no idea where.
If you know the name of the executable, you can use the which command to find the location of the binary, but that doesn’t give you information on where the supporting files might be located.
There’s an easy way to see the locations of all the files installed as part of the package, using the dpkg utility.
dpkg -L <packagename>
Example: I had installed davfs2, but I wasn’t sure where the configuration file was, so I ran this command:
geek@ubuntuServ:~$ dpkg -L davfs2
Well, now I don’t have to wonder anymore. The conf file is clearly /etc/davfs2/davfs2.conf. If I wanted to see just what files were installed into /etc, you could always grep the output like this:
geek@ubuntuServ:~$ dpkg -L davfs2 | grep etc
Even easier to read.
Update: Changed from -S to -L thanks to a tip from sebest.
- › Five Ways Smart Electric Toothbrushes Can Transform Your Oral Health
- › Amazon Just Released More Smart TVs, Including a $200 Model
- › Google Docs Will Help You Organize Long Documents
- › 8 Common Discord Scams (and How to Protect Yourself)
- › PWM Fan vs. DC Fan: Which Is Better for PC Cooling?
- › Special UPDF Offer, Plus Deals on Pixel Watch, PC Monitors, and More