i keep *trying* to move from portupgrade to portmaster
Michel Talon
talon at lpthe.jussieu.fr
Fri Aug 6 23:54:08 UTC 2010
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
More information about the freebsd-ports
mailing list