Upgrading packages - portupgrade confusion

Jerry freebsd.user at seibercom.net
Sun Sep 12 12:50:13 UTC 2010


On Sun, 12 Sep 2010 14:34:52 +0300
Kaya Saman <kayasaman at gmail.com> articulated:

> [...]
> > Have you refreshed the ports tree(s) with csup using the same
> > supfile to ensure the ports trees are up to date ( and therefore
> > identical)? Since you are using portugrade, as I do, this is what I
> > do to see what needs to be done:
> >
> > I cd to /usr/sup which is where I keep my supfiles and the
> > housekeeping. Then using this command sequence will refresh the
> > ports tree, the ports index database, and ensure the package
> > database is clean and synced. Portversion then just tells you with
> > a "<" symbol any that are old and in need of an update.
> >
> > csup -L 2 ports&&  portsdb -uF&&  pkgdb -u&&  portversion
> >
> > where "ports" above is my supfile for ports refresh and looks like
> > this:
> >
> > *default host=cvsup.nl.freebsd.org
> > *default base=/usr
> > *default prefix=/usr
> > *default release=cvs tag=.
> > *default delete use-rel-suffix compress
> > ports-all
> >
> > Then a portupgrade -a as required. If all symbols in the right
> > column are "=" everything is up to date and nothing is required.
> > Adjust server location for mirror near you (or one that works best).
> >
> > -Mike
> 
> Thanks alot Mike for the response!!
> 
> I didn't actually refresh the ports tree so I'm gona have to do that.
> 
> The thing I don't quite understand though is that if the ports tree
> gets refreshed, do the packages get upgraded or will I need to
> rebuild them??

You have to rebuild them.

> I slightly recall the csup commnad, however I've never actually 
> performed an inplace upgrade of a package in BSD. Only done this kind
> of thing in Linux - Debian/Ubuntu, CentOS and Solaris - OpenSolaris, 
> Belenix where they have package managers.
> 
> What's the process for upgrading a package? make reinstall clean??

If using a port maintenance application such as portupgrade or
portmanager, you could simply do the following:

"portupgrade -a" or "portmanager -u" depending on what application you
are using. Switching between multiple port maintenance applications is
not the worse thing you could do; however, I would not recommend it as
an everyday occurrence.

If doing it manually, you could just do:

	make && make deinstall && make reinstall && make distclean

There are other variations of course. I would recommend that you run:
"make config" in the port's home directory prior to building it for the
first time. there might be some useful features that you want to turn
on or off.

-- 
Jerry ✌
FreeBSD.user at seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________
Minicomputer:
	A computer that can be afforded on the budget of a middle-level
	manager.


More information about the freebsd-questions mailing list