|Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
|How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"
|Page 1 of 1|
|Author:||mandrei99 [ Mon Oct 17, 2011 8:39 am ]|
|Post subject:||How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"|
Whenever you need to know what package installed a specific file in FreeBSD, "pkg_info" can be used.
-W, --which filename
For the specified filename argument show which package it belongs
to. If the file is not in the current directory, and does not
have an absolute path, then the directories specified in the
environment variable PATH are searched using which(1).
This is how to list files installed by pixman package:
# pkg_info -L pixman-0.18.4
Information for pixman-0.18.4:
And below is how to check which package installed the file "/usr/local/libdata/pkgconfig/pixman-1.pc"
# pkg_info -W /usr/local/libdata/pkgconfig/pixman-1.pc
/usr/local/libdata/pkgconfig/pixman-1.pc was installed by package pixman-0.18.4
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group