Hello! I recently completed a little experiment. I wanted to see what files are left over after installing a package via pkg, removing package, then autoremove to clear dependencies. This is my results from install sqlite3, remove the package, and autoremove (taking zfs snapshots of / before sqlite3 was installed and after autoremove, then executing zfs diff)
This one is surprising, this was before I installed pkg sqlite3 or even searched for it.
M /var/db/pkg/local.sqlite
M /var/run
M /root
M /var/db/pkg
M /var/db/entropy
M /var/db/pkg/local.sqlite
M /usr/local/share/licenses
M /usr/local/include
M /usr/local/lib
M /usr/local/libdata/pkgconfig
M /usr/local/share/man
M /usr/local/share/man/man3
M /usr/local/share/man/man5
M /var/db/pkg/repos/FreeBSD/lock
- /root/.lesshst
M /var/cache/pkg
M /usr/local/bin
M /usr/local/share/man/man1
M /usr/local/lib/python3.11/lib-dynload
M /usr/local/lib/python3.11/site-packages
+ /var/cache/pkg/py311-sqlite3-3.11.11_7~f56588625c.pkg
+ /var/cache/pkg/py311-sqlite3-3.11.11_7.pkg
+ /var/cache/pkg/libedit-3.1.20240808,1~897ceb5872.pkg
+ /var/cache/pkg/libedit-3.1.20240808,1.pkg
+ /var/cache/pkg/sqlite3-3.46.1,1~8c6c056553.pkg
+ /var/cache/pkg/sqlite3-3.46.1,1.pkg
+ /var/cache/pkg/py311-setuptools-63.1.0_1~9eb31eaf32.pkg
+ /var/cache/pkg/py311-setuptools-63.1.0_1.pkg
+ /root/.lesshst
+ /var/run/ld-elf.so.hints
- /var/run/ld-elf.so.hints
- /var/run/ld-elf32.so.hints
+ /root/zroot_root_default_diff
+ /var/db/entropy/saved-entropy.2
+ /var/run/ld-elf32.so.hints
This one is surprising, this was before I installed pkg sqlite3 or even searched for it.
M /var/db/pkg/local.sqlite
M /var/run
M /root
M /var/db/pkg
M /var/db/entropy
M /var/db/pkg/local.sqlite
M /usr/local/share/licenses
M /usr/local/include
M /usr/local/lib
M /usr/local/libdata/pkgconfig
M /usr/local/share/man
M /usr/local/share/man/man3
M /usr/local/share/man/man5
M /var/db/pkg/repos/FreeBSD/lock
- /root/.lesshst
M /var/cache/pkg
M /usr/local/bin
M /usr/local/share/man/man1
M /usr/local/lib/python3.11/lib-dynload
M /usr/local/lib/python3.11/site-packages
+ /var/cache/pkg/py311-sqlite3-3.11.11_7~f56588625c.pkg
+ /var/cache/pkg/py311-sqlite3-3.11.11_7.pkg
+ /var/cache/pkg/libedit-3.1.20240808,1~897ceb5872.pkg
+ /var/cache/pkg/libedit-3.1.20240808,1.pkg
+ /var/cache/pkg/sqlite3-3.46.1,1~8c6c056553.pkg
+ /var/cache/pkg/sqlite3-3.46.1,1.pkg
+ /var/cache/pkg/py311-setuptools-63.1.0_1~9eb31eaf32.pkg
+ /var/cache/pkg/py311-setuptools-63.1.0_1.pkg
+ /root/.lesshst
+ /var/run/ld-elf.so.hints
- /var/run/ld-elf.so.hints
- /var/run/ld-elf32.so.hints
+ /root/zroot_root_default_diff
+ /var/db/entropy/saved-entropy.2
+ /var/run/ld-elf32.so.hints