Doug Barton wrote:

> On 08/06/2010 15:03, Adam Vande More wrote:
> 
> > While your in the mood for for taking portmaster suggestions,
> 
> I am always in the mood for taking suggestions. :)
> 
> > I think an
> > option to backup all currently installed packages would be useful. 
> 
> for pkg in /var/db/pkg/* ; do
>       pkg_create -b $pkg
> done
> 
> > I
> > have a python script that does this for me, but it would be easy
> > enough
> > to use sh as well.  I do this because there have been too many times
> > something has broken during a port upgrade run

I don't think pkg_create preserves the config files user edited, which
is the precious stuff, but it preserves a lot of useless stuff.
The following python script by Cyrille Szymanski may be more useful:
http://www.lpthe.jussieu.fr/~talon/pkg_save.py
It keeps the config files and the shared libraries.


-- 

Michel TALON

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to