From owner-freebsd-questions@FreeBSD.ORG Fri Apr 18 17:02:10 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0AD565DC for ; Fri, 18 Apr 2014 17:02:10 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80CBF1697 for ; Fri, 18 Apr 2014 17:02:09 +0000 (UTC) Received: from [192.168.0.143] ([95.91.231.59]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LwZtX-1X0qiF2783-018KBC; Fri, 18 Apr 2014 19:02:00 +0200 Message-ID: <53515A87.8010307@gmx.de> Date: Fri, 18 Apr 2014 19:01:59 +0200 From: "lokadamus@gmx.de" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Matthew Seaman , freebsd-questions@freebsd.org Subject: Re: pkg don't recognize installed packages References: <53514A68.806@gmx.de> <535153CC.5050000@infracaninophile.co.uk> In-Reply-To: <535153CC.5050000@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:jbelT+2Xx+yLcm12EIae1gQjctefO2NY3ag3H4MEWHTB9NzTrGF 6rTO7mYduIWmvG5Nm477Uinbd8+H2Zj1zyt8LAZd5ylGXQYLQfyXYpHzEUUVTBxM9R4Nsqy EGUTte608D4zLBy8zFOJ+U9tAjHFLus+v1AKczwD4WqFCwOoxWVYePaAma22S24eUkfLZNa 4sDvUjX4teOFV8OmZKTww== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2014 17:02:10 -0000 On 04/18/14 18:33, Matthew Seaman wrote: > On 18/04/2014 16:53, lokadamus@gmx.de wrote: >> Hi all, >> >> After an upgrade of portmaster and pkg both doesn't show me my installed >> programms. >> >> root@FBSDhost:/var/db/pkg # portmaster -L >> ===>>> Root ports (No dependencies, not depended on) >> ===>>> pkg-1.2.7_2 >> ===>>> portmaster-3.17.4 >> ===>>> 2 root ports >> ===>>> Trunk ports (No dependencies, are depended on) >> ===>>> 0 trunk ports >> ===>>> Branch ports (Have dependencies, are depended on) >> ===>>> 0 branch ports >> ===>>> Leaf ports (Have dependencies, not depended on) >> ===>>> 0 leaf ports >> ===>>> 2 total installed ports >> ===>>> There are no new versions available >> >> root@FBSDhost:/var/db/pkg # pkg info >> pkg-1.2.7_2 Package manager >> portmaster-3.17.4 Manage your ports without external >> databases or languages >> root@FBSDhost:/var/db/pkg # >> >> What can i do to see which software like firefox, thunderbird, xorg is >> installed? > > You need to do two things: > > 1) If converting from a system that used to use pkg_tools, then one > time only, you need to run pkg2ng to import all the packages registered > in the old-style package database. > > 2) If you're on FreeBSD 9.x or earlier, and you intend to install any > packages by compiling from ports then you need to add > > WITH_PKGNG=yes > > to /etc/make.conf. This is already the default in 10.x and above. It > only affects installing from ports, and is irrelevant if you use binary > packages exclusively. > > Cheers, > > Matthew Hi Matthew, 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. Is there a command that pkg will reread all installed ports? Or can portmaster do this? Best regards