PDA

View Full Version : pkg-database is not in sync/broken


bhna
06-30-2006, 12:09 PM
the pkg-databas is not in sync/broken. there are many errors if you use the pkg_add command or the pkg-manager from desktopBSD.

antik
06-30-2006, 12:16 PM
the pkg-databas is not in sync/broken. there are many errors if you use the pkg_add command or the pkg-manager from desktopBSD.

pkg_add and installing from ports like with pkg-manager is totally different beasts. If you install with pkg_add then you install not cutting edge latest programs, but vigorously tested and precompiled programs. I they warn you about your system already installed newer programs is no mean as something is broken.

But if your ports database is borked/broken then you can run this command to fix it:

# pkgdb -Fu

bhna
07-01-2006, 08:22 AM
the pkg-databas is not in sync/broken. there are many errors if you use the pkg_add command or the pkg-manager from desktopBSD.

pkg_add and installing from ports like with pkg-manager is totally different beasts. If you install with pkg_add then you install not cutting edge latest programs, but vigorously tested and precompiled programs. I they warn you about your system already installed newer programs is no mean as something is broken.

But if your ports database is borked/broken then you can run this command to fix it:

# pkgdb -Fu

PCBSD# pkgdb -Fu
pkgdb: Command not found.
PCBSD#

antik
07-01-2006, 08:53 AM
the pkg-databas is not in sync/broken. there are many errors if you use the pkg_add command or the pkg-manager from desktopBSD.

pkg_add and installing from ports like with pkg-manager is totally different beasts. If you install with pkg_add then you install not cutting edge latest programs, but vigorously tested and precompiled programs. I they warn you about your system already installed newer programs is no mean as something is broken.

But if your ports database is borked/broken then you can run this command to fix it:

# pkgdb -Fu

PCBSD# pkgdb -Fu
pkgdb: Command not found.
PCBSD#

Install portupgrade.
# pkg_add -r portupgrade
# rehash
# pkgdb -Fu

bhna
07-01-2006, 10:16 AM
there was an older version off portupgrade. after installation of the new port pkgdb is running.

i think it a bug in the installation of pcbsd 1.11a. there are more then one versions of cups, openldap etc in the package database after an fresh instalation. i have to remove the older one for eversy pkg.

gammaray
07-01-2006, 11:43 AM
i think it a bug in the installation of pcbsd 1.11a. there are more then one versions of cups, openldap etc in the package database after an fresh instalation. i have to remove the older one for eversy pkg.
It is not a bug of PCBSD,it's a FreeBSD "bug"(or a feature?): the ports are always ahead of packages.If you need more "updated" apps you need to portupgrade -a and after that use only ports(ports as from portsnap wich are for the current and stable branches).

DragnLord
07-01-2006, 02:57 PM
It is not a bug of PCBSD,it's a FreeBSD "bug"(or a feature?): the ports are always ahead of packages.If you need more "updated" apps you need to portupgrade -a and after that use only ports(ports as from portsnap wich are for the current and stable branches).
I think you missed the main point. bhna said that there were multiple versions of those programs installed by default with version 1.11a.

gammaray
07-01-2006, 03:24 PM
the pkg-databas is not in sync/broken. there are many errors if you use the pkg_add command or the pkg-manager from desktopBSD.
Ok,my mistake,but I saw this about pkg_add and maybe this was what I misunderstood(and now I see:desktopBSD??)It is normal that sometimes pkg_add conflicts with the ports tree wich is updated faster than the package pool.That's why I told him to use only the ports after portupgrade -a.About "multiple versions of those programs installed by default with version 1.11a." I don't know what caused that, but once you start using pkg_add and ports the db's need to be fixed.We have portupgrade and portmanager to do that.