List Info

Thread: Rebuilding /var/db/pkg




Rebuilding /var/db/pkg
country flaguser name
Italy
2007-12-29 16:22:46
I committed a crime! While upgrading the ports under the
newly installed 
RELENG_7 (beta4) with "portupgrade -arRk" I
**deleted ** the 
directory /var/db/pkg. 

Is there any way to rebuild it from scratch?

Ciao
Vittorio
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Rebuilding /var/db/pkg
country flaguser name
United States
2007-12-29 18:41:41
vittorio wrote:
> I committed a crime! While upgrading the ports under
the newly installed 
> RELENG_7 (beta4) with "portupgrade -arRk" I
**deleted ** the 
> directory /var/db/pkg. 
> 
> Is there any way to rebuild it from scratch?
> 
> Ciao
> Vittorio

Nope, that was the only copy.

Kris
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Rebuilding /var/db/pkg
country flaguser name
United States
2007-12-29 19:11:27
Kris Kennaway writes:

>  > I committed a crime! While upgrading the ports
under the newly
>  > installed RELENG_7 (beta4) with "portupgrade
-arRk" I **deleted**
>  > the directory /var/db/pkg. 
>  > 
>  > Is there any way to rebuild it from scratch?
>  
>  Nope, that was the only copy.

	Assuming there are no backups, he will have to rebuild
"from
scratch".  I see two approaches:
	I) Find complex leaf programs, like FireFox or OpenOffice.
Build the port; this will drag in all the dependencies.
	II) a) Look in /usr/ports/distfiles, where all the
distribution
tarballs live.
	b) Prune the resulting list, so you're only trying to build
one
of any given port.
	c) Map the tarball name to the port.  A discussion of how
to
do this happened within the last year on either
questions or
ports, and may contain usable scripts.
	d) Lay in a good supply of your favorite caffeinated
beverage,
and set to work.

	In either case, design and implement a backup method.



				Robert Huff
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )