howto update KDE by freeBSD 5.2.1 without errors ?
*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You are going to want to use portupgrade to do this. I believe it is under ports/sysutils.
But either way, install it and read the man page (seriously it will help you understand exactly what you need to be doing).
Then it will upgrade kde and all the libraries and everything for you.
The standard ports tree is not the best for upgrading programs that are heavily dependant on other things. It does a wonderful job installing them but it won't deinstall dependancies.
Have a read of http://freebsd.kde.org/ and of /usr/ports/UPDATING. There are issues with upgrading from kde 3.1.x to 3.2.x - simply portupgrading will break your installation.
But there are fixes which can be done to make portupgrade work (which is still the recommended way of doing it). Thanks for the directions... I don't use KDE but they will be a huge help to the original poster as it describes exactly what needs to be done to make his upgrade work.
I was folowing the instructions on: http://www.bsdnews.org/03/bsd_update.php
and crashed my server twice.
Is there a nother way to update FreeBSD insted of CVSup?
Can someone post here another guide for me, please?
i cant use any new software last version because of that!
*GGGGGRRRRR*
Well my update was okay when i followed the handbook instructions.
I was trying to upgrade kde 3.1.4 to kde 3.2.3
with #portupgrade -rR kde
I get this errors and i don't know what to do in order to resolve them:
I found these instructions on the freebsd.kde.org website.
portupgrade -rR kde will upgrade all of KDE, its dependencies (including XFree86 and qt) and those ports depending on KDE by fetching and compiling from source.
portupgrade -PR kde will upgrade from KDE packages if available, and will compile from source for those applications and dependencies that have no packages available.
portupgrade -PPR kde will install from KDE packages only, and will cease upgrading at the point it finds an application or dependency that has no package available, so use this command only if you are sure that the package site contains all packages required.
portupgrade -FR kde will only fetch the port(s) tarballs or packages (depending on the other flags chosen, see above) for a later upgrade.
If I remember correctly I had similar errors when portupgrading KDE from whatever version ships with FreeBSD 5.2.1 to KDE 3.2.3. I think I went to the ports that had errors and did a make deinstall reinstall on them, and then did the portupgrade -rR on KDE. And then I repeated this process several times (portupgrade would get farther and then run into another problem). Also, and you've probably already done this, make sure your ports collection is up to date.
If you scroll back through the compiler messages (use the scroll lock button + cursor keys to do that) you should be able to see what the specific error message is for the audio/lame port (the unknown build error is a generic messge) Post that message and maybe we can figure out what's broken.
# mkdir /root/scripts
# vi /root/scripts/update-os
-- copy below --
#!/bin/sh
echo "Updating OS sources with cvsup..."
/usr/local/bin/cvsup /usr/local/etc/cvsup/supfile.os
-- copy above --
# chmod +x /root/scripts/update-os
# vi /root/scripts/update-ports
-- copy below --
#!/bin/sh
echo "Cleaning ports tree..."
/usr/local/sbin/portsclean -CD
echo "Updating ports tree with cvsup..."
/usr/local/bin/cvsup /usr/local/etc/cvsup/supfile.ports
echo "Updating INDEX and databases..."
/usr/local/sbin/portsdb -Uu
-- copy above --
# chmod +x /root/scripts/update-ports
Now that we have this done...
# cd /root/scripts
# ./update-ports
Grab a drink this might take a LONG time...
When this is done it is time to fix the pkgdb.
# pkgdb -F
Fix any problems before you portupgrade...
Following this you really should update all your installed ports if you have not updated in a long time.
# portupgrade -aRr
If your ports are fairly recent a simple
# portupgrade -Rr kde3
will do just fine...
Now once again grab a drink this is going to take a while.
Now if you have any errors when portupgrade finishes do the following.(You only need to care about the ones with a "!" in front)
# portupgrade <port name that has the !>
Read the errors that are spewed out and deal with them. Sometimes if it just a problem about an older version being installed cd to the directory and "make deinstall clean" then "make install clean".
Questions? The scripts and files pasted above are from bsdforums.org the comments and most commands are mine.
help! I tried this exactly as you said and it DOWNGRADED me to KDE version 3.1! I tried both all ports and just kde. i dont know what's been buggared up but i really want it to work
First, you should start another thread.
Second, your ports are not up to date.
Drill down to the kde3 folder and read the pkg_desc.
It works like Stack said.
first, I assumed the logical place to post a problem with someones advice would be the same place they gave the advice.
second, yes I know my ports are out of date. I'm trying to update them... that's the whole reason I'm posting. and, I've read the pkg-desc and it is useless- basically says "this is a 'metaport'. this package is merely a list of dependencies so that you only have to install once package to get kde-everything." And, obviously *for me* it did not work exactly like Stack said. Otherwise, I wouldnt be here in the first place. (and yes, I have gone through and followed his instructions to the letter.)
but, it *may* be fixed now. it's currently trying to install KDE again.... which will take until tomorrow most likely and I don't work weekends so i won't get to find out if it worked or not until monday (cant telnet in 'cause the bloody bastard that used to be the netadmin STILL hasn't given me the pword to the firewall!)
oh yeah and it wasnt actually downgraded to 3.1, it's still 3.1.4 just that some things got twisted wierdly and i thought it was 3.1... and it was giving me some problem with openldap-client not liking something about my OpenSSL config so i pkg_add'd openssl and then went to portupgrad'd openldap-client but portupgrad started griping about openldap22-client trying to install to the same dir as openldap-client so i had to pkd_delete openldap-client and pkg_add'd openldap22-client. tried portupgrade portupgrade and that didnt work, so i had to pkg_delete portupgrade and the make install clean portupgrade so got the new version of that, then had to pkgdb -F a lot of other things that got buggard somehow (like ruby... had two entries for ruby) and now I'm back to chunking away at portupgrade -rR kde. I read on anotehr forum someone had this same exact problem about OpenSSL (but not ldap) and mentioned he fixed it but keenly forgot to mention HOW he fixed it. Google won't work unless someone posts a fix!
oh did I mention that, aside from reading a big fat unix book 3 years ago and a few failed attempts at installing FBSD 4.2 and using (not configuring, just used it) Red Hat Linux 5.1 like 6 or 7 years ago I really have not had any UNIX contact until last week? at least I'm a fast learner....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.