Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Aug 23, 2017 8:49 am


FreeBSD ports and pkg, Linux rpm yum and apt, AIX lpp discussions

Author Message
mandrei99
  Post  Post subject: How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"  |  Posted: Mon Oct 17, 2011 8:39 am

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

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.

Quote:
-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:
Code:
# pkg_info -L pixman-0.18.4
Information for pixman-0.18.4:

Files:
/usr/local/include/pixman-1/pixman-version.h
/usr/local/include/pixman-1/pixman.h
/usr/local/lib/libpixman-1.a
/usr/local/lib/libpixman-1.la
/usr/local/lib/libpixman-1.so
/usr/local/lib/libpixman-1.so.9
/usr/local/libdata/pkgconfig/pixman-1.pc


And below is how to check which package installed the file "/usr/local/libdata/pkgconfig/pixman-1.pc"
Code:
# 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





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "How to check which package a specific file belongs to in FreeBSD - "pkg_info -W""
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FreeBSD list files installed by a specific software package - "pkg_info -L"

mandrei99

0

3396

Mon Oct 17, 2011 8:26 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD error when compiling world "archive_hash.h:129:20: error: sha1.h: No such file or directory"

mandrei99

0

407

Tue May 28, 2013 5:41 am

mandrei99 View the latest post

There are no new unread posts for this topic. "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"

debuser

1

2349

Tue Dec 06, 2011 10:32 am

admin View the latest post

There are no new unread posts for this topic. Courier compile fails with "/usr/bin/ld: cannot find -lperl"

debuser

3

1439

Wed Mar 04, 2015 5:56 am

waleed222 View the latest post

There are no new unread posts for this topic. How to search for a specific port in FreeBSD

mandrei99

0

429

Mon Oct 17, 2011 8:52 am

mandrei99 View the latest post

There are no new unread posts for this topic. FeeBSD list installed software packages with pkg_info

mandrei99

0

398

Mon Oct 17, 2011 8:22 am

mandrei99 View the latest post

There are no new unread posts for this topic. ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No

debuser

3

30492

Tue Mar 06, 2012 3:03 pm

admin View the latest post

There are no new unread posts for this topic. How to list outdated packages in FreeBSD

mandrei99

0

614

Mon Oct 17, 2011 8:35 am

mandrei99 View the latest post

There are no new unread posts for this topic. vlc-2.1.5 port fails to compile on FreeBSD 9.2

mandrei99

0

727

Sun Dec 28, 2014 5:32 pm

mandrei99 View the latest post

There are no new unread posts for this topic. How to install apache22 on FreeBSD with proxy modules

mandrei99

0

1818

Fri Feb 19, 2010 7:52 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO