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

FAQ
It is currently Sat Mar 25, 2023 10:27 pm


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

Author Message
mandrei99
  Post  Post subject: How to list outdated packages in FreeBSD  |  Posted: Mon Oct 17, 2011 8:35 am

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

Offline
 

How to list outdated packages in FreeBSD

After you have updated your ports system and also it's index, you can check which packages have updates using "pkg_version" utility.

Fist, relevant "man pkg_version" info:
Quote:
PKG_VERSION(1) FreeBSD General Commands Manual PKG_VERSION(1)

NAME
pkg_version -- summarize installed versions of packages

SYNOPSIS
pkg_version [-hIoqv] [-l limchar] [-L limchar] [[-X] -s string]
[-O origin] [index]
pkg_version -t version1 version2
pkg_version -T pkgname pattern

DESCRIPTION
The pkg_version command is used to produce a report of non-base software
packages installed using the pkg_add(1) command.
...
Each package name is printed, along with a one-character status flag:

= The installed version of the package is current.

< The installed version of the package is older than the current
version.

> The installed version of the package is newer than the current
version. This situation can arise with an out-of-date index
file, or when testing new ports.

? The installed package does not appear in the index. This could
be due to an out of date index or a package taken from a PR that
has not yet been committed.

* There are multiple versions of a particular software package
listed in the index file. Examples from the FreeBSD ports col-
lection are the Tcl toolkit or the EMACS editor.

! The installed package exists in the index but for some reason,
pkg_version was unable to compare the version number of the
installed package with the corresponding entry in the index.
...
-I, --index-only
Use only the index file for determining if a package is out of
date. This is much faster than using the version number from a
port's Makefile, at the expense of potentially giving an incor-
rect result if the index file is out of date.

-L, --no-status limchar
Limit the output to those packages whose status flag does not
match limchar. You may specify more than one character to match
in limchar. Note that because some of the status flag characters
are also special to the shell, it is best to quote limchar with
single quotes.
-v Enable verbose output. Verbose output includes some English-text
interpretations of the version number comparisons, as well as the
version numbers compared for each package. Non-verbose output



Example:
Code:
# pkg_version -vIL=
GeoIP-1.4.6                         <   needs updating (index has 1.4.7)
bash-4.1.9                          <   needs updating (index has 4.1.10)
bigreqsproto-1.1.0                  <   needs updating (index has 1.1.1)
binutils-2.20.1_3                   <   needs updating (index has 2.21)
bsdpan-File-Slurp-9999.13           <   needs updating (index has 9999.19)


The above command queries the ports index instead of port's "Makefile".

Using without -I (capital i - internet) will produce a more accurate output, but it is much slower.





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

Topics related to - "How to list outdated packages in FreeBSD"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FeeBSD list installed software packages with pkg_info

mandrei99

0

1733

Mon Oct 17, 2011 8:22 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD list files installed by a specific software package - "pkg_info -L"

mandrei99

0

6573

Mon Oct 17, 2011 8:26 am

mandrei99 View the latest post

There are no new unread posts for this topic. FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong

debuser

0

2187

Fri Aug 27, 2010 7:01 am

debuser View the latest post

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

mandrei99

0

2193

Mon Oct 17, 2011 8:52 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

2404

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

3200

Fri Feb 19, 2010 7:52 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"

mandrei99

0

3469

Mon Oct 17, 2011 8:39 am

mandrei99 View the latest post

There are no new unread posts for this topic. Can't compile ssldump on FreeBSD 6 - compile fails

admin

0

2160

Thu Mar 17, 2011 11:26 am

admin 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

2131

Tue May 28, 2013 5:41 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 1 guest
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:  
cronNews 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