From owner-freebsd-questions@FreeBSD.ORG Sun Apr 13 09:41:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28A3E1065670 for ; Sun, 13 Apr 2008 09:41:20 +0000 (UTC) (envelope-from aijaz.abaig@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id E942D8FC1B for ; Sun, 13 Apr 2008 09:41:19 +0000 (UTC) (envelope-from aijaz.abaig@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so1166607wfa.7 for ; Sun, 13 Apr 2008 02:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=u1GMuAWrinoAgxfHZY2ET0w/L/ysWSZJsDv7W5MNrjQ=; b=msTqAL0pDN5Va26TesbErnWjX+H8KcyA/XmsGQRaQ2rNUtvFyu84hcvj9xS3KDyMX22vKjO2FZyrrudI4ZraiU4mG/n7A9N2bqFZpacWs6f1wLiMC/sfEfhqqgicy2+Z0ZSIHbimizZFaF/U1y0oiBR5GaRiKLb9DvLg8iqJGm8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=hrgJ3YHkMF9V/peb6I0UERcbax+UWAwfOU85R+KdnxHKgOZGWUBpZRbk9OIL3Ka1hPfawbZ1ROFtT47r1hyEJT/CwwYKQL0YoS1fm+8w26sn6Xt2ED4mqMOJRkusL27YOgeD6W0TEOGGBM+8pWO5oCkuXrBkFUX9Dx0L+j1lGGQ= Received: by 10.143.162.8 with SMTP id p8mr1405498wfo.49.1208079679462; Sun, 13 Apr 2008 02:41:19 -0700 (PDT) Received: by 10.142.230.7 with HTTP; Sun, 13 Apr 2008 02:41:19 -0700 (PDT) Message-ID: <101a1afc0804130241p2cae4475qc072ac2b5a4f5aa2@mail.gmail.com> Date: Sun, 13 Apr 2008 11:41:19 +0200 From: "Aijaz Baig" To: Mel In-Reply-To: <200804112204.04948.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 References: <101a1afc0804110732u8b2a16k24caa639258e7f42@mail.gmail.com> <20080411162830.GC1547@amilo.cenkes.org> <200804112204.04948.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org, leslie@eskk.nu Subject: Re: Pkg_info corrupt for some packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2008 09:41:20 -0000 Hi, Well...I tried to cut and paste the command as is by mel (though It would have been better if you explained what that cryptic looking command actually meant) and I got the followinfg output: 'grep: /var/db/pkg/xorg-server-1.4_4,1/+CONTENTS: No such file or directory egrep: Unmatched ( or \(' Then as suggested by leslie I issued a command '*pkgdb -F*' and on that I got the following on the terminal : '-- --> Checking the package registry database' and the I was back at the prompt. So I am wondering if theres a way to repair those packages somehow...cuz if I delete it before re installing the I would be jeopardizing the packages which are dependent on these packages and I do not know if reinstalling them without actually removing them first creates duplicates or not. Hope to hear from you guys about this. Regards, Aijaz Baig. On Fri, Apr 11, 2008 at 10:04 PM, Mel wrote: > On Friday 11 April 2008 18:28:31 Andrew Pantyukhin wrote: > > On Fri, Apr 11, 2008 at 04:32:32PM +0200, Aijaz Baig wrote: > > > I was trying to find a way to list all the packages on my > > > system and I came across this little article and accordingly > > > issued the command *pkg_info | grep 'package name' *and I saw > > > the following on the screen instead: > > > > > > pkg_info: the package info for package 'Terminal-0.2.8' is corrupt > > > ... > > > pkg_info: the package info for package 'xorg-server-1.4_4,1' is > corrupt > > > > > > How did the pkg_info information for the above mentioned > > > packages became corrupt?.. > > > > Possibly the usual portupgrade fckup^Wglitch. > > > > > Is there to fix this problem? > > > > Reinstall all packages. > > That's a bit overdone maybe. > @OP: > Could you show output of: > grep '^@' /var/db/pkg/xorg-server-1.4_4,1/+CONTENTS |egrep -v '^(@comment > MD5| > @dirrm |@unexec)' > > > -- > Mel > > Problem with today's modular software: they start with the modules > and never get to the software part. >