Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Aug 2010 01:23:58 +0000
From:      Michel Talon <talon@lpthe.jussieu.fr>
To:        ports@freebsd.org
Subject:   Re: i keep *trying* to move from portupgrade to portmaster
Message-ID:  <20100807012358.GA38729@lpthe.jussieu.fr>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100807012358.GA38729>