[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] BSD Question



Netsonic wrote:
After the initial install and configuration, I then started to look at the
updating, using pkg_add, specifically for Kde.

I changed the PACKAGESITE to point to rabarber and then did a 'pkg_add -rn
kde-3.2.0' to see what would happen.

For everything it checked, there was an older version installed (usually
only by one or two revisions older), and a list of dependencies that had to
be met.

I then started to try and update them one at a time using pkg_add -f but it
still bombed out each time. It *feels* like theres almost a circular
reference going on here in respect of the update requirements.

Is there any quick and easy way to get it to update, including all
dependencies and version updates, using pkg_add ?
The easiest way to make updates, I find, is to use the portupgrade package/port - which can be found in /usr/ports/sysutils/portupgrade.

Then, to upgrade kde_base, for instance, you could run:

portupgrade kde_base

There are various other options which may be of use:

-f : force
-r : recursive build of depencies
-R : recursive build of dependants
-a : update all (So portupgrade -af would upgrade everything)

Any ports which you have a custom build for, you can enter the details in /usr/local/etc/pkgtools.conf - this is fairly well documented in the sample that's provided. You can specify aliases (so any dependency for apache13 can we shown apache13_modssl) or if there are things you build from source (I do for qmail to use ASMTP) you can mark it to ignore if certain packages/ports are "missing".

If you want to use packages, rather than ports, "portupgrade -P" would look for packages in preference to ports and "portupgrade -PP" would only upgrade those items for which a package was available.

There are sometimes some strange dependencies - I recently found KDE was insisting on OpenLDAP 2.1 and would try and install and complain about OpenLDAP 2.2 that I was already running.

I think I may have also seen the problem you mention - I was getting warnings suggesting that kde_base and kde_libs conflicted - which is a little daft, as kde_base is supposed to be a metaport to install the other bits and bobs. I was in a rush, so just uninstalled KDE and started from scratch. (A shame there wasn't a package for 3.2.0 or it would have been a lot quicker!)

Finally, to check the consistency of your ports and packages, run:

"pkgdb -F" - this will show you any redundant dependencies and clashing versions - I originally had 3 versions of gettext installed!

"pkg_version -L =" will compare installed versions against your ports tree and tell you what can be upgraded.

HTH,

Jonathan

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

GNU the choice of a complete generation.