From owner-freebsd-questions@FreeBSD.ORG Sat Apr 19 03:39:39 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 5C39B875 for ; Sat, 19 Apr 2014 03:39:39 +0000 (UTC) Received: from mail.bsdbox.co (122-149-22-79.static.dsl.dodo.com.au [122.149.22.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BABC1133E for ; Sat, 19 Apr 2014 03:39:38 +0000 (UTC) Received: from android-542269120c114f42.BigPond (122-149-22-79.static.dsl.dodo.com.au [122.149.22.79]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdbox.co (Postfix) with ESMTPSA id C4A0289383; Sat, 19 Apr 2014 03:29:40 +0000 (UTC) User-Agent: K-9 Mail for Android 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> MIME-Version: 1.0 Subject: Re: pkg don't recognize installed packages From: nanotek Date: Sat, 19 Apr 2014 13:29:54 +1000 To: Matthew Seaman , "lokadamus@gmx.de" , freebsd-questions@freebsd.org Message-ID: <23536ebd-e406-4ac1-86e8-2d8cdde4857a@email.android.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Sat, 19 Apr 2014 03:39:39 -0000 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 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: 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 ; 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 ; 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 ; 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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