Front | Info | Lists | Newsfeeds | Study Guide | What is BSD? |
|
This is the BSDA Study Guide Book written via a wiki collaboration. This is a work in progress. You may contribute to or discuss this specific page at http://bsdwiki.reedmedia.net/wiki/Determine_what_software_is_installed_on_a_system.html. Determine what software is installed on a systemConceptRecognize that on BSD systems, software and dependencies are tracked by a package manager if the software was installed using packages, ports or pkgsrc. Be familiar with querying the package manager to determine what software and their versions are installed on the system. IntroductionTODO: what about non-packages? Examplespkg_info -a shows all installed packages (TODO: is -a needed on all platforms) The following is quick example from a NetBSD mail server. (Note that the MTA software is not listed with pkg_info because it is included with the base system (i.e. the core operating system).
TODO add some more examples TODO mention about FreeBSD's -x The following example for FreeBSD's pkg_info uses the -W switch to show what package a file belongs too. (You can also use an full path to the filename.)
With pkgsrc, this can be done with the -F switch which shows details for the package owning the file (using full path). Use -Fe to just show the package name, for example:
(Notice this example runs which to get full path of the command.) Practice ExercisesMore informationpkg_info(1)
|