Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Apr 2014 13:29:54 +1000
From:      nanotek <nanotek@bsdbox.co>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>, "lokadamus@gmx.de" <lokadamus@gmx.de>, freebsd-questions@freebsd.org
Subject:   Re: pkg don't recognize installed packages
Message-ID:  <23536ebd-e406-4ac1-86e8-2d8cdde4857a@email.android.com>
In-Reply-To: <5351769B.6080209@infracaninophile.co.uk>
References:  <53514A68.806@gmx.de> <535153CC.5050000@infracaninophile.co.uk> <53515A87.8010307@gmx.de> <5351769B.6080209@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Perhaps a more important question is: What problems with local.sqlite were you having that made it necessary to delete? Backups notwithstanding, surely database repopulation should be possible without reinstalling all ports.

On 19 April 2014 5:01:47 am AEST, Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:
>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
>
>-- 
>Dr Matthew J Seaman MA, D.Phil.
>
>PGP: http://www.infracaninophile.co.uk/pgpkey
>JID: matthew@infracaninophile.co.uk

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
From owner-freebsd-questions@FreeBSD.ORG  Sat Apr 19 08:51:05 2014
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
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 4F7AE984
 for <freebsd-questions@freebsd.org>; Sat, 19 Apr 2014 08:51:05 +0000 (UTC)
Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5])
 by mx1.freebsd.org (Postfix) with ESMTP id B25141C38
 for <freebsd-questions@freebsd.org>; Sat, 19 Apr 2014 08:51:04 +0000 (UTC)
X-Virus-Scanned: by clamd daemon 0.98.1 for FreeBSD at relay2.tomsk.ru
Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru
 [212.73.125.240] verified)
 by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16)
 with ESMTPSA id 35474409 for freebsd-questions@freebsd.org;
 Sat, 19 Apr 2014 15:51:02 +0700
Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1])
 by admin.sibptus.tomsk.ru (8.14.7/8.14.7) with ESMTP id s3J8oxOi073383
 for <freebsd-questions@freebsd.org>; Sat, 19 Apr 2014 15:51:01 +0700 (NOVT)
 (envelope-from vas@mpeks.tomsk.su)
Received: (from sudakov@localhost)
 by admin.sibptus.tomsk.ru (8.14.7/8.14.7/Submit) id s3J8oxq0073382
 for freebsd-questions@freebsd.org; Sat, 19 Apr 2014 15:50:59 +0700 (NOVT)
 (envelope-from vas@mpeks.tomsk.su)
X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to
 vas@mpeks.tomsk.su using -f
Date: Sat, 19 Apr 2014 15:50:59 +0700
From: Victor Sudakov <vas@mpeks.tomsk.su>
To: freebsd-questions@freebsd.org
Subject: Anyone still using rdist?
Message-ID: <20140419085059.GA73267@admin.sibptus.tomsk.ru>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Organization: AO "Svyaztransneft", SibPTUS
X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov
X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9  3532 0DA4 F259 9B5E C634
User-Agent: Mutt/1.5.21 (2010-09-15)
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 19 Apr 2014 08:51:05 -0000

Is anyone still using rdist?

I am trying to migrate from 44bsd-rdist to net/rdist6 and have a
problem. Take an example Distfile like this:

====================================================
HOSTS = ( root@ftp root@proxy)
FILES = ( /etc/periodic.conf.local /usr/share/skel/dot.cshrc )

configs:
${FILES} -> ${HOSTS}

vcs:
src/configs/complete.tcsh :: /etc/complete.tcsh notify sudakov@sibptus.ru;
====================================================

I expect sudakov@sibptus.ru to receive a notification only if
src/configs/complete.tcsh is newer than /etc/complete.tcsh. 

In reality, sudakov@sibptus.ru receives all the crap about updating
different hosts every time rdist6 is run. 

What am I doing wrong? I think 44bsd-rdist did not spam me like that.
Something must have changed in the logic, but what?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23536ebd-e406-4ac1-86e8-2d8cdde4857a>