FreeBSD List All Installed Ports / Applications

How do I list all install packages / ports or applications under FreeBSD operating systems?

Use pkg_info command to list all installed packages under FreeBSD operating systems.

FreeBSD Show All Currently Installed Packages

Type the command:
# pkg_info
Sample output:

arcconf-v6.10.18359 Adaptec SCSI RAID administration tool
compat6x-amd64-6.4.604000.200810 A convenience package to install the compat6x libraries
cvsup-without-gui-16.1h_4 File distribution system optimized for CVS (non-GUI version
dnstop-20090128     Captures and analyzes DNS traffic (or analyzes libpcap dump
ezjail-3.0          A framework to easily create, manipulate and run FreeBSD ja
libiconv-1.11_1     A character set conversion library
libslang2-2.1.4_1   Routines for rapid alpha-numeric terminal applications deve
libtool-1.5.26      Generic shared library support script
most-5.0.0          A pager (like less) which has support for windows and binar
mysql-client-5.0.82 Multithreaded SQL database (client)
mysql-server-5.0.82 Multithreaded SQL database (server)
nagios-statd-3.12_1 Daemon/client to check remote host information for Nagios
openntpd-3.9p1_2,2  OpenBSD's Network Time Protocol daemon
p5-Lchown-1.00      A perl5 module providing access to lchown(2)
pcre-7.9            Perl Compatible Regular Expressions library
perl-5.8.9_3        Practical Extraction and Report Language
png-1.2.35          Library for manipulating PNG images
portaudit-0.5.12    Checks installed ports against a list of security vulnerabi
portmaster-2.7      Manage your ports without external databases or languages
python25-2.5.4_1    An interpreted object-oriented programming language
rsnapshot-1.3.1     Filesystem snapshot utility based on rsync(1)
rsync-3.0.6         A network file distribution/synchronization utility
screen-4.0.3_6      A multi-screen window manager

You can get detailed information with the -a switch:
# pkg_info -a
# pkg_info -a | less
# pkg_info -a | grep package
# pkg_info -a | grep php5

Get Detailed Information About The Package

Type the command:
# pkg_info package_name
# pkg_info perl-5.8.9_3
# pkg_info 'perl*'


Information for perl-5.8.9_3:

Practical Extraction and Report Language

Required by:

Perl is a language that combines some of the features of C, sed, awk and
shell.  See the manual page for more hype.  There are also many books
published by O'Reilly & Assoc.  See pod/perlbook.pod for more


- MarkM

FreeBSD See The Files Within Each Package

The -L option show the files within each package. This is different from just viewing the packing list, since full pathnames for everything are generated.
# pkg_info -L package-name
# pkg_info -L perl
# pkg_info -L -r 'perl*'


Information for perl-5.8.9_3:

Depends on:

Recommend Readings:

  • man page pkg_info

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

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

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts