How to find which files comes with a Ubuntu package

Reading Time: < 1 minute

apt-get install dlocate
dlocate -L <name_of_the_package>

ex:
dlocate -L sysstat
/.
/usr
/usr/lib
/usr/lib/sysstat
/usr/lib/sysstat/sa1
/usr/lib/sysstat/sa2
/usr/lib/sysstat/sadc
/usr/lib/sysstat/debian-sa1
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/mpstat.1.gz
/usr/share/man/man1/pidstat.1.gz
/usr/share/man/man1/sar.sysstat.1.gz
/usr/share/man/man1/sadf.1.gz
/usr/share/man/man1/iostat.1.gz
/usr/share/man/man8
/usr/share/man/man8/sa2.8.gz
/usr/share/man/man8/sa1.8.gz
/usr/share/man/man8/sadc.8.gz
/usr/share/doc

Reading Time: < 1 minute
apt-get install dlocate
dlocate -L <name_of_the_package>

ex:
dlocate -L sysstat
/.
/usr
/usr/lib
/usr/lib/sysstat
/usr/lib/sysstat/sa1
/usr/lib/sysstat/sa2
/usr/lib/sysstat/sadc
/usr/lib/sysstat/debian-sa1
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/mpstat.1.gz
/usr/share/man/man1/pidstat.1.gz
/usr/share/man/man1/sar.sysstat.1.gz
/usr/share/man/man1/sadf.1.gz
/usr/share/man/man1/iostat.1.gz
/usr/share/man/man8
/usr/share/man/man8/sa2.8.gz
/usr/share/man/man8/sa1.8.gz
/usr/share/man/man8/sadc.8.gz
/usr/share/doc
/usr/share/doc/sysstat
/usr/share/doc/sysstat/NEWS.Debian.gz
/usr/share/doc/sysstat/changelog.gz
/usr/share/doc/sysstat/README.gz
/usr/share/doc/sysstat/FAQ.gz
/usr/share/doc/sysstat/TODO
/usr/share/doc/sysstat/xml
/usr/share/doc/sysstat/xml/sysstat.dtd.gz
/usr/share/doc/sysstat/xml/sysstat.xsd.gz
/usr/share/doc/sysstat/README.Debian
/usr/share/doc/sysstat/copyright
/usr/share/doc/sysstat/examples
/usr/share/doc/sysstat/examples/crontab
/usr/share/doc/sysstat/changelog.Debian.gz
/usr/share/doc/sysstat/CREDITS.gz
/usr/share/doc-base
/usr/share/doc-base/sysstat-faq
/usr/bin
/usr/bin/sadf
/usr/bin/iostat
/usr/bin/mpstat
/usr/bin/pidstat
/usr/bin/sar.sysstat
/var
/var/log
/var/log/sysstat
/etc
/etc/sysstat
/etc/sysstat/sysstat.ioconf
/etc/sysstat/sysstat
/etc/init.d
/etc/init.d/sysstat
/etc/cron.daily
/etc/cron.daily/sysstat
/etc/cron.d
/etc/cron.d/sysstat

By Marc Olivier Meunier

Marc has spent the past few years putting oil on the fire of a hyper growth ad tech company. At Smartly.io he was in charge of scaling the support and its culture. At Eficode he is now leading an engineering team and running operations. He leads by example and puts a lot of emphasis on diversity and inclusion, constantly working to create a safe environment. A warm leader with a passion for memorable experiences and innovation.
Find Marc on Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *