intalled software does not match with the port one

Hello, I was running a portaudit to check if I have some vulnerabilities and it found that firefox-17.0.1.1 has some.
So the problem is that I am using Firefox-18, so I have something wrong when it check the versions of my programs.
I tried:

Code:
# pkgdb -Ff
USING PKGNG
pkgdb -F not supported with PKGNG yet. Use 'pkg check' directly.

But as you can see, it does not work. Any other way?. Thanks again.
 
Make sure your ports tree is up to date. Also make sure the portaudit database is up to date.

# pkg version -vI
 
The -F flag for pkgdb(1) is supposed to fix errors in the package database but that's only for the old database format that uses files under /var/db/pkg/*. With PKGNG you have to use these instead:

For dependencies:
# pkg check -d

For package checksums:
# pkg check -s
 
SirDice said:
Make sure your ports tree is up to date. Also make sure the portaudit database is up to date.

# pkg version -vI

It dropped this:

firefox-18.0,1 < needs updating (index has 18.0.1,1)
 
kpa said:
The -F flag for pkgdb(1) is supposed to fix errors in the package database but that's only for the old database format that uses files under /var/db/pkg/*. With PKGNG you have to use these instead:

For dependencies:
# pkg check -d

For package checksums:
# pkg check -s

I did:

Code:
# pkg check -dsa

But after that portaudit still says I have Firefox 17.
 
What do these output?
# pkg version -vI | grep firefox
# pkg_version -vI | grep firefox
 
SirDice said:
What do these output?
# pkg version -vI | grep firefox
# pkg_version -vI | grep firefox

Sorry for the delay, I was at home. Here are the outputs:

Code:
# pkg version -vI | grep firefox
firefox-18.0,1                     <   needs updating (index has 18.0.1,1)

# pkg_version -vI | grep firefox
pkg_version: the package info for package 'automake-1.12.4' is corrupt
pkg_version: the package info for package 'dri-7.6.1_2,2' is corrupt
pkg_version: the package info for package 'firefox-17.0.1,1' is corrupt
pkg_version: the package info for package 'linux-f10-flashplugin-11.2r202.258' is corrupt
pkg_version: the package info for package 'portupgrade-2.4.10.2,2' is corrupt
pkg_version: the package info for package 'ruby18-bdb-0.6.6' is corrupt
pkg_version: the package info for package 'virtualbox-ose-4.1.22' is corrupt
 
kpa said:
PKGNG has it's own audit tool that replaces ports-mgmt/portaudit:

# pkg audit -f

Code:
# pkg audit -f
pkg: illegal option -- f
usage: pkg audit [-F] <pattern>

For more information see 'pkg help audit'.

# pkg audit -F
auditfile.tbz                                                                                                                           100%   83KB  83.4KB/s  83.4KB/s   00:01
chromium-24.0.1312.52 is vulnerable:
chromium -- multiple vulnerabilities

WWW: http://portaudit.FreeBSD.org/8d03202c-6559-11e2-a389-00262d5ed8ee.html

1 problem(s) in your installed packages found.
 
adripillo said:
Code:
# pkg version -vI | grep firefox
firefox-18.0,1                     <   needs updating (index has 18.0.1,1)

# pkg_version -vI | grep firefox
pkg_version: the package info for package 'automake-1.12.4' is corrupt
pkg_version: the package info for package 'dri-7.6.1_2,2' is corrupt
pkg_version: the package info for package 'firefox-17.0.1,1' is corrupt
pkg_version: the package info for package 'linux-f10-flashplugin-11.2r202.258' is corrupt
pkg_version: the package info for package 'portupgrade-2.4.10.2,2' is corrupt
pkg_version: the package info for package 'ruby18-bdb-0.6.6' is corrupt
pkg_version: the package info for package 'virtualbox-ose-4.1.22' is corrupt
Ah, yes. That explains why portaudit thinks you have firefox 17 installed. You seem to have mixed old packages with pkgng.
 
SirDice said:
Ah, yes. That explains why portaudit thinks you have firefox 17 installed. You seem to have mixed old packages with pkgng.

I see, do you have any idea of how I can fix it?. Thanks again.
 
I'd try to pkg_delete(1) the old ones. But you may need to reinstall them again afterwards or at least the current version of that port. The pkg_delete(1) is bound to remove stuff that's used by the 'new' versions.
 
Make sure you have WITH_PKGNG in /etc/make.conf so your ports are correctly registered.
 
Back
Top