how to deal with missing +CONTENTS (or how to use cvsweb)

Joe Marcus Clarke marcus at marcuscom.com
Fri Aug 29 11:16:40 PDT 2003


On Fri, 2003-08-29 at 14:09, Fernan Aguero wrote:
> Hi!
> 
> I had some problems with my /var/db/pkg and lost a few
> +CONTENTS files. I now want to pkg_delete those ports and
> reinstall them.
> 
> Problem obviously is that I need a +CONTENTS file for
> pkg_delete to work. I can delete files manually, if I had a
> pkg-plist for the version I have installed. 
> 
> The problems are as far as I could get with imake-4.2.0_1
> and tcl-8.0.5.
> 
> Now, I thought that I could go to cvsweb and look for
> imake-4.2.0_1 and be done. However it seems that I can only
> get to files based on their revision or CVS tags. Am I
> missing something?
> 
> If I'm correct and -4.2.0_1 means PORTVERSION=4.2.0 and
> PORTREVISION=1, I think that revision 1.22 of the imake-4
> Makefile could be the one I need. However, later revisions
> (up to 1.25) also match 4.2.0_1.
> 
> Question: how do I get to the pkg-plist corresponding to
> this Makefile? They don't share the revision number, were
> not modified at similar dates ...
> 
> I hope you see my confusion. If you have ideas on how to
> better use cvsweb, I'd be glad to hear them.
> 
> Also, if you happen to know of a better way of deinstalling
> files for which no +CONTENTS is available, and from a port
> that is currently at a newer version, please let me know.

What you can do is remove the various /var/db/pkg directories, then
reinstall the same version, then do a pkg_delete (if you really wanted
to get rid of those ports).  If you just want to restore the +CONTENTS
files, remove the /var/db/pkg directories, then reinstall the ports.

Joe

> 
> Thanks in advance for any help,
> 
> Fernan
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20030829/3be0b1f0/attachment.bin


More information about the freebsd-ports mailing list