What is installed?

What is installed?

This article shows you how to find out what packages/ports have been installed on your
system and the file associated with those ports.  You might also want to see Ports or Packages.

OK.  What do I have installed?

There is a directory which contains a list of everything you have installed on your
machine.  Here’s what I’ve found on one of my testbed machines:

$ cd /var/db/pkg
$ ls -lt    
total 2
drwxr-xr-x  2 root  bin  512 May  2 20:21 majordomo-1.94.4
drwxr-xr-x  2 root  bin  512 Apr 23 07:48 screen-3.7.4

From the above, you can see that I’ve installed majordomo
(version 1.94.4) and screen (version 3.7.4) on this
machine.  You can also see the date on which these ports were installed.

What came with this port?

If you want to know what was installing as part of a particular port, it’s all in the
directories in the example shown in the previous section.  We will use screen
for our example.

$ cd screen-3.7.4
$ ls -lt
total 3
-rw-r--r--  1 root  bin  481 Apr 23 07:48 +CONTENTS
-rw-r--r--  1 root  bin  512 Apr 23 07:48 +DESC
-rw-r--r--  1 root  bin   31 Apr 23 07:48 +COMMENT

These files are used by the pkg_info
command.  Here’s some examples:

$ pkg_info screen-3.7.4
Information for screen-3.7.4:

Comment:
A multi-screen window manager.

Description:
Screen is a full-screen window manager that multiplexes a physical 
terminal between several processes (typically interactive shells).
Each virtual terminal provides the functions of a DEC VT100 terminal,
and in addition, several control functions from the ANSI X3.64 (ISO 
6429) and ISO 2022 standards (e.g. insert/delete line and support for
multiple character sets). There is a scrollback history buffer for 
each virtual terminal and a copy-and-paste mechanism that allows 
moving text regions between windows.

It should be pretty obvious to you where the above output comes from if you look at the
file names listed above.

Deleting a package

If you want to delete a package, just use pkg_delete.
  If you are upgrading one of your ports, I recommend that you remove the existing
port first.

Leave a Comment

Scroll to Top