Date: Sun, 13 Apr 2008 19:40:54 +0400 From: Andrew Pantyukhin <infofarmer@freebsd.org> To: Aijaz Baig <aijaz.abaig@gmail.com> Cc: leslie@eskk.nu, Mel <fbsd.questions@rachie.is-a-geek.net>, freebsd-questions@freebsd.org Subject: Re: Pkg_info corrupt for some packages Message-ID: <20080413154045.GD1547@amilo.cenkes.org> In-Reply-To: <101a1afc0804130241p2cae4475qc072ac2b5a4f5aa2@mail.gmail.com> References: <101a1afc0804110732u8b2a16k24caa639258e7f42@mail.gmail.com> <20080411162830.GC1547@amilo.cenkes.org> <200804112204.04948.fbsd.questions@rachie.is-a-geek.net> <101a1afc0804130241p2cae4475qc072ac2b5a4f5aa2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 13, 2008 at 11:41:19AM +0200, Aijaz Baig wrote: > 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 \(' Find out how many packages lost their contents: ls /var/db/pkg/*/?COMMENT|wc -l ls /var/db/pkg/*/?CONTENTS|wc -l Last time portupgrade removed all contents on my box, I had to extract port origins from pkgdb.db, then mkdir /var/db/pkg-old/ mv /var/db/pkg/* /var/db/pkg-old/ for i in origins; do cd /usr/ports/$i && make install done
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080413154045.GD1547>