Portupgrade

Kent Stewart kstewart at owt.com
Wed Sep 3 22:33:19 PDT 2003


On Wednesday 03 September 2003 05:15 pm, Daniel Bye wrote:
> On Thu, Sep 04, 2003 at 01:56:58AM +0200, Stefan Malte Schumacher 
wrote:
> > Hi
> >
> > I have just run portupgrade -a for the first time. About 2 hours
> > later I realized that portupgrade is not only building the port I
> > built myself from /usr/ports but also the packages which I did
> > install from the CD. I do not want to build Mozilla or XFree
> > myself, is there a way I can exclude such large programs from being
> > updated ? Are installed ports and packages stored in the same
> > database ?
>
> portupgrade has a config file (/usr/local/etc/pkgtools.conf), which
> offers many config options for you to tweak - including the ability
> to specify ports to ignore - look for the section about HOLD_PKGS.
>
> Ports and packages keep their install data in the same place, yes -
> /var/db/pkg.
>
> > For the next question I just need a pointer to the right
> > documentation ; I would like to read more about using sysinstall to
> > upgrade my system instead of "make world."
>
> Have you read man sysinstall?  But bear in mind that "make
> buildworld" was carefully designed to upgrade the system properly.
>
> > Is there some kind of "packageupgrade" which downloads and installs
> > new packages for stuff I do not want to build myself ?
>
> The -P or -PP options to portupgrade should work, but read the
> manpage for caveats.
>

There is also the -x option. 

You have to understand that if you are upgrading a library, you may need 
to upgrade everything that uses that library as a dependancy. For 
example, lets assume that XFree86-libraries is updated because they 
find an error in one of the header files. Every program that uses that 
header file should be rebuilt.

I rarely update my entire system when a library is updated. You just 
have to be aware of the consequences that may occur if you don't do the 
update.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



More information about the freebsd-questions mailing list