Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2014 20:01:47 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        "lokadamus@gmx.de" <lokadamus@gmx.de>, freebsd-questions@freebsd.org
Subject:   Re: pkg don't recognize installed packages
Message-ID:  <5351769B.6080209@infracaninophile.co.uk>
In-Reply-To: <53515A87.8010307@gmx.de>
References:  <53514A68.806@gmx.de> <535153CC.5050000@infracaninophile.co.uk> <53515A87.8010307@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Jnccoolgw1VfPFFApWMSp4mxkJkxNL4XP
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 18/04/2014 18:01, lokadamus@gmx.de wrote:
> System is 10.0-RELEASE-p1 (clean install in january) and last week all
> was working fine.
> In december i had trouble with /var/db/pkg/local.sqlite and had to
> remove it for a new one.
> This time this way isn't working. It creates a new local.sqlite, but
> dosn't recognize
> installed programs.

Right.  This is obviously relevant information you might have considered
including in your original posting.

> Is there a command that pkg will reread all installed ports?
> Or can portmaster do this?

local.sqlite is *the* database of installed packages.  If you destroy
it, there's nowhere else pkg(8) can get the information about what
packages are already installed.  That's why there are periodic jobs to
take a backup each night, which you might find in /var/backups.
Hopefully it hasn't been so long that there is still useful data
preserved there.

Failing that, you will need to reinstall all your packages to repopulate
your package database.

Today's lesson is this: deleting the package database is not a good
idea.  Two seconds to do, hours if not days to recover and forever
afterwards to regret.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


--Jnccoolgw1VfPFFApWMSp4mxkJkxNL4XP
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTUXamXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATo7wP/jBcFi1b4vwM3LTf26coZetO
n8YXWIDK+CVsNzKVbahaCQ1hXUiuSwMaSwST9JCOSAKBfQGr5Etcus08wlGgEKiT
l6bzbGPL0AqXNe+3sEWjRiw9HsPypcKGSzZ5KTQZOm/NhdQKAPJDdZN9bn1hdUFK
W2XP8LzgDwZcIWS/J9ueYfq8vvl6ImQ2OKVobnDM5Ad5Brdym6v+jrb8Dv35D102
ppw1QtZr1HTehA93lMbtUTQpvZB6MtdjfYlXRvv9DVwbU/zI8yA5uEqmnEkSkGpj
7nOkhW39+9yc996+jz6yC5sjy4uuLDW78I6SrIj36FekQgzXj1Se+vM+YFvlNHvx
9esDbhfh8Nl8uhxLoFOLcQk9FzIxEYjVRdQz50vCRSoYj0g0s/V5ZBFL0bYMNrK0
gaprLtli9feO8COgKKSRNRvlnc/IwHOKqVA7z7V+1mOUpnkaUnf5gFg10sLeRsEs
ddt8oeOsb9RkTAWMXU0M+WanaWmHa5l5/MVJ/X0ksmvLYQEnEjiFqOfDu+zHZg8o
ncf/ARm9qdtLABYgHe3SjQOisTnUmgqxtOGuKZuBHjXqjEGkJneXJFdfyQ7MJTEP
mX4nboUeEwFI+/bn1DZ9kDigiMf2XSqibtgYrG4woW+0aesNZ3+b1LgnjSs0DD3G
6S6p0Mo8NFkXhlr8hYGB
=IPTp
-----END PGP SIGNATURE-----

--Jnccoolgw1VfPFFApWMSp4mxkJkxNL4XP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5351769B.6080209>