Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2010 08:50:08 -0400
From:      Jerry <freebsd.user@seibercom.net>
To:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Upgrading packages - portupgrade confusion
Message-ID:  <20100912085008.558d3d84@scorpio>
In-Reply-To: <4C8CBADC.3070904@gmail.com>
References:  <4C8C0110.20801@gmail.com> <i6hb6t$s10$1@dough.gmane.org> <4C8CBADC.3070904@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 12 Sep 2010 14:34:52 +0300
Kaya Saman <kayasaman@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@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.



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