Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Thu, 2006-02-23 at 08:15 -0600, Donald J. O'Neill wrote: On Wednesday 22 February 2006 21:59, Ow Mun Heng wrote: On Wed, 2006-02-22 at 21:36 -0600, Donald J. O'Neill wrote: On Wednesday 22 February 2006 20:59, Ow Mun Heng wrote: what about the dependency then? Ignore it? What if there are files needed by xorg-clients? eg: libXX.so.Y and which is not present in the new xterm? Since you want to replace it with a newer version, why are you worried about the dependencies. The newer version will take care of that. Of course, if you delete xterm and don't replace it, then you will have to handle the dependencies. So, I do pkg_del -f xterm and then a pkg_add -vr xterm-206_1 and it will upgrade xorg-clients if needed? If yes, then Good. No. It would only upgrade xterm. Xterm isn't dependent on xorg-clients. It's required by xorg-clients. So, that brings up a question. Are you really trying to upgrade xorg and xterm was the example you used? If that's the case, my advice would have been different. I'm trying to upgrade xterm. But I get what you mean. Use Windows instead. All that takes is money. Why the sarcasm? be fixed, forgiven, but not forgotten. I'm sorry for the sarcasm. No Harm done and once again. I thank you and everyone else for the help. I'm learning and I'm RTFM and I'm reading the book I bought and I'm googling so I'm not expecting spoon feeding. :-) I hope that by this time, you've received enough information to do what you wanted to do. yes.. I finally found out how to do it and that one of the quirkiness of FreeBSD is to ignore it's pkg_delete statement of - Dependencies.. Will delete anyway One thought just occurred to me. What is the output from 'uname -a', mine is: FreeBSD pres1750.mylan.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Feb 8 08:20:10 CST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PRES1750-i386 i386 # uname -a FreeBSD BSD6.home.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 You'll see that it has FreeBSD 6.1-PRERELEASE in it. If yours has FreeBSD 6.0-RELEASE in it. Then you can't install a package using pkg_add -r 'some package' for a package built for FreeBSD 6.0-STABLE. You need to have 6.0-STABLE in order to install packages built for 6.0-STABLE. Yeah. I finally understand that. So, in actuality, BSD _was_ fetching in the correct place. Unfortunately for me, when I passed the Env variable to the shell, it wasn't at the correct FTP PATH. Which messed things up. (BSD is really a different animal. In Gentoo, there's no such thing as a release only stable or unstable/bleeding which we mark as either x86 or ~x86) And to get from FreeBSD-Release to FreeBSD-Stable is done through compiling ports. But I also found out that we can do it via packages. just CVSup ports, put in the correct ENV PACKAGESITE variable and then the best tip I found was to install portupgrade. Now it's just #portupgrade -vPP packagename and it will fetch and only fetch Binary Releases. (it's so intelligent that it will downgrade to the next latest binary which is available in the ftp site.) Thanks again. -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 11:37:35 up 2 days, 13:12, 4 users, load average: 1.56, 0.94, 0.63 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wednesday 22 February 2006 21:59, Ow Mun Heng wrote: On Wed, 2006-02-22 at 21:36 -0600, Donald J. O'Neill wrote: On Wednesday 22 February 2006 20:59, Ow Mun Heng wrote: what about the dependency then? Ignore it? What if there are files needed by xorg-clients? eg: libXX.so.Y and which is not present in the new xterm? Since you want to replace it with a newer version, why are you worried about the dependencies. The newer version will take care of that. Of course, if you delete xterm and don't replace it, then you will have to handle the dependencies. So, I do pkg_del -f xterm and then a pkg_add -vr xterm-206_1 and it will upgrade xorg-clients if needed? If yes, then Good. No. It would only upgrade xterm. Xterm isn't dependent on xorg-clients. It's required by xorg-clients. So, that brings up a question. Are you really trying to upgrade xorg and xterm was the example you used? If that's the case, my advice would have been different. What you are trying to do is update using downloaded packages and that is going to work for you. You need to upgrade those packages using the ports system. IS or is not? Is or is not what? I don't understand what you're asking here. You need to use more than a 4 word question, of which 2 of the words are the same. It tends to be confusing. Sorry but You're confusing me too. Read your sentence update using downloaded packages and that is (?NOT?) going to work for you OK, I see what happened. I didn't put not in the sentence, as you pointed out. Since not is what I meant, I refused to see that it wasn't there, in fact my brain expected it to be there, and so when I looked at what you were asking, I saw it. Sorry. Again, I don't want to compile it. I want the binary package. It's available on the mirrors. No It's not. The port is available on the mirrors. So compile it, or leave the old one in place. lftp ftp.tw.frebsd.org lftp ftp.tw.freebsd.org:/pub/FreeBSD/ports/i386/packages-6-stable/x11 ls -l | grep xterm lrwxr-xr-x Nov 28 09:12 xterm-206_1.tbz - ../All/xterm-206_1.tbz get xterm-206_1.tbz quit tar -v -t -f xterm-206_1.tar -rw-r--r-- root/wheel 1560 2006-02-07 15:20:18 +CONTENTS -rw-r--r-- root/wheel 42 2006-02-07 15:20:18 +COMMENT -rw-r--r-- root/wheel 479 2006-02-07 15:20:18 +DESC -r--r--r-- root/wheel 8654 2006-02-07 15:20:18 +MTREE_DIRS -r--r--r-- root/wheel 1313 2006-02-07 15:19:55 man/man1/resize.1.gz -r--r--r-- root/wheel41772 2006-02-07 15:19:55 man/man1/xterm.1.gz -rwxr-xr-x root/wheel10104 2006-02-07 15:19:54 bin/resize -rwxr-xr-x root/wheel 2118 2006-02-07 15:19:54 bin/uxterm -rws--x--x root/wheel 252996 2006-02-07 15:19:54 bin/xterm -r--r--r-- root/wheel 1527 2006-02-07 15:19:55 lib/X11/app-defaults/UXTerm -r--r--r-- root/wheel 6551 2006-02-07 15:19:55 lib/X11/app-defaults/XTerm -r--r--r-- root/wheel 4232 2006-02-07 15:19:55 lib/X11/app-defaults/XTerm-color I'm proficient with the CLI, and being a long time Linux person, I'm sad to say that FreeBSD ports/packages is really confusing to me. Use Windows instead. All that takes is money. Why the sarcasm? At that moment, I had a lapse of brain power. My fingers took control of the keyboard without interference from the part of my brain which says DON'T do this. It's wrong to say something like that. And then they hit the send button and it was too late to retract it. I believe: once something is said or done, it cannot be unsaid or undone, it may be fixed, forgiven, but not forgotten. I'm sorry for the sarcasm. Available packages are not as up to date as the ports system is. Again, the package _is_ available and I've verified it. Thanks I'm sorry. You've verified the port was available. The package is not. I just checked. See above. I too do my own verification before shooting emails out to mail lists OK, I see where you were looking. I looked in the wrong place. When you look in the right place, yes, it's there. At this point, I'm going to close my ears eyes to you. You've been given advice by me and others and I thank you and them for it. Thanks again. I hope that by this time, you've received enough information to do what you wanted to do. One thought just occurred to me. What is the output from 'uname -a', mine is: FreeBSD pres1750.mylan.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Feb 8 08:20:10 CST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PRES1750-i386 i386 You'll see that it has FreeBSD 6.1-PRERELEASE in it. If yours has FreeBSD 6.0-RELEASE in it. Then you can't install a package using pkg_add -r 'some package' for a package built for FreeBSD 6.0-STABLE. You need to have 6.0-STABLE in order to install packages built for 6.0-STABLE. Don ___ freebsd-questions@freebsd.org mailing list
Newbie Alert : pkg_add and packages Q (do not want to compile)
Hi, I've googled. I've read the handbook, I've read Absolute BSD and still I can't understand FreeBSD Ports/Packages esp when it comes to upgrading via packages. I'm from a Linux (gentoo linux) background so I'm not a rough diamond. Problem statement. FreeBSD-Release-6 Install from minimal cd (and packages added via FTP) i've done cvsup (cvsup -L2 -h cvsup.tw.freebsd.org /usr/share/examples/ports-supfile) pkg_version -v states that I have a few packages which can be upgraded. eg: xterm-203 needs updating (port has 206_1) $pkg_add -vr xterm pkg_add: unable to fetch 'ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/xterm.tbz' by URL $pkg_add -vr x11/xterm pkg_add: unable to fetch ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/x11/xterm.tbz' by URL ftp into it, it's listed via with it's suffix. (google found that for some odd reason, pkg_add doesn't add the suffix) $pkg_add -vr x11/xterm-206_1 pkg_add: package 'xterm-206_1' or its older version already installed So.. How do I install it? $pkg_delete xterm-203 pkg_delete: package 'xterm-203' is required by these other packages xorg-clients-6.8.2 So.. That can't be done. What can I do to upgrade my packages? I've even tried sysinstall but that only lists xterm-203 as the package to install. (I suspect this is because its packagesite is packages-6-release) $export | grep -i pack declare -x PACKAGESITE=ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/; In gentoo, it's a simple emerge xterm and all will be done automatically. (Granted, this is compile from source and not from binary packages, which I know can do cd /usr/ports/x11/xterm make install clean, but since FreeBSD has binary packages, I rather use that) Thanks -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 09:42:35 up 1 day, 11:17, 5 users, load average: 0.60, 0.46, 0.95 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wednesday 22 February 2006 19:58, Ow Mun Heng wrote: Hi, I've googled. I've read the handbook, I've read Absolute BSD and still I can't understand FreeBSD Ports/Packages esp when it comes to upgrading via packages. I'm from a Linux (gentoo linux) background so I'm not a rough diamond. Problem statement. FreeBSD-Release-6 Install from minimal cd (and packages added via FTP) i've done cvsup (cvsup -L2 -h cvsup.tw.freebsd.org /usr/share/examples/ports-supfile) pkg_version -v states that I have a few packages which can be upgraded. eg: xterm-203 needs updating (port has 206_1) $pkg_add -vr xterm pkg_add: unable to fetch 'ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/xt erm.tbz' by URL $pkg_add -vr x11/xterm pkg_add: unable to fetch ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/x11 /xterm.tbz' by URL ftp into it, it's listed via with it's suffix. (google found that for some odd reason, pkg_add doesn't add the suffix) $pkg_add -vr x11/xterm-206_1 pkg_add: package 'xterm-206_1' or its older version already installed So.. How do I install it? $pkg_delete xterm-203 pkg_delete: package 'xterm-203' is required by these other packages xorg-clients-6.8.2 pkg_delete -f xterm-203 cd /usr/ports/x11/xterm make install This will handle that problem for you. So.. That can't be done. What can I do to upgrade my packages? I've even tried sysinstall but that only lists xterm-203 as the package to install. (I suspect this is because its packagesite is packages-6-release) $export | grep -i pack declare -x PACKAGESITE=ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages -6-stable/ In gentoo, it's a simple emerge xterm and all will be done automatically. (Granted, this is compile from source and not from binary packages, which I know can do cd /usr/ports/x11/xterm make install clean, but since FreeBSD has binary packages, I rather use that) Thanks What you are trying to do is update using downloaded packages and that is going to work for you. You need to upgrade those packages using the ports system. You really need to look at the Handbook. That's why it was written. Available packages are not as up to date as the ports system is. Don ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Newbie Alert : pkg_add and packages Q (do not want to compile)
do pkg_info look in the output for xterm. it will contain its complete name if its name in the list output is xterm-203 then pkg_delete xterm-203 this will remove it then pkg_add -rv xterm should fetch the package from the ports collection and install it. There is a better explanation of the ports collection in the install guide at www.a1poweruser.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ow Mun Heng Sent: Wednesday, February 22, 2006 8:58 PM To: freebsd-questions@freebsd.org Subject: Newbie Alert : pkg_add and packages Q (do not want to compile) Hi, I've googled. I've read the handbook, I've read Absolute BSD and still I can't understand FreeBSD Ports/Packages esp when it comes to upgrading via packages. I'm from a Linux (gentoo linux) background so I'm not a rough diamond. Problem statement. FreeBSD-Release-6 Install from minimal cd (and packages added via FTP) i've done cvsup (cvsup -L2 -h cvsup.tw.freebsd.org /usr/share/examples/ports-supfile) pkg_version -v states that I have a few packages which can be upgraded. eg: xterm-203 needs updating (port has 206_1) $pkg_add -vr xterm pkg_add: unable to fetch 'ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/xte rm.tbz' by URL $pkg_add -vr x11/xterm pkg_add: unable to fetch ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/x11/ xterm.tbz' by URL ftp into it, it's listed via with it's suffix. (google found that for some odd reason, pkg_add doesn't add the suffix) $pkg_add -vr x11/xterm-206_1 pkg_add: package 'xterm-206_1' or its older version already installed So.. How do I install it? $pkg_delete xterm-203 pkg_delete: package 'xterm-203' is required by these other packages xorg-clients-6.8.2 So.. That can't be done. What can I do to upgrade my packages? I've even tried sysinstall but that only lists xterm-203 as the package to install. (I suspect this is because its packagesite is packages-6-release) $export | grep -i pack declare -x PACKAGESITE=ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages- 6-stable/ In gentoo, it's a simple emerge xterm and all will be done automatically. (Granted, this is compile from source and not from binary packages, which I know can do cd /usr/ports/x11/xterm make install clean, but since FreeBSD has binary packages, I rather use that) Thanks -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 09:42:35 up 1 day, 11:17, 5 users, load average: 0.60, 0.46, 0.95 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wed, 2006-02-22 at 20:32 -0600, Donald J. O'Neill wrote: On Wednesday 22 February 2006 19:58, Ow Mun Heng wrote: Hi, I've googled. I've read the handbook, I've read Absolute BSD and still $pkg_add -vr x11/xterm-206_1 pkg_add: package 'xterm-206_1' or its older version already installed So.. How do I install it? $pkg_delete xterm-203 pkg_delete: package 'xterm-203' is required by these other packages xorg-clients-6.8.2 pkg_delete -f xterm-203 cd /usr/ports/x11/xterm make install what about the dependency then? Ignore it? What if there are files needed by xorg-clients? eg: libXX.so.Y and which is not present in the new xterm? What you are trying to do is update using downloaded packages and that is going to work for you. You need to upgrade those packages using the ports system. IS or is not? Again, I don't want to compile it. I want the binary package. It's available on the mirrors. You really need to look at the Handbook. That's why it was written. I did. As stated in the initial portion of the email. I'm not only reading the handbook, I'm reading a newly bought book in addition to also reading stuffs on the internet. I'm proficient with the CLI, and being a long time Linux person, I'm sad to say that FreeBSD ports/packages is really confusing to me. Available packages are not as up to date as the ports system is. Again, the package _is_ available and I've verified it. Thanks Don -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 10:51:05 up 1 day, 12:26, 4 users, load average: 3.32, 2.11, 1.51 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
Ow Mun Heng wrote: Hi, I've googled. I've read the handbook, I've read Absolute BSD and still I can't understand FreeBSD Ports/Packages esp when it comes to upgrading via packages. I'm from a Linux (gentoo linux) background so I'm not a rough diamond. rough diamond ... I like that idea. :D Problem statement. FreeBSD-Release-6 Install from minimal cd (and packages added via FTP) i've done cvsup (cvsup -L2 -h cvsup.tw.freebsd.org /usr/share/examples/ports-supfile) pkg_version -v states that I have a few packages which can be upgraded. eg: xterm-203 needs updating (port has 206_1) $pkg_add -vr xterm pkg_add: unable to fetch 'ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/xterm.tbz' by URL $pkg_add -vr x11/xterm pkg_add: unable to fetch ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/x11/xterm.tbz' by URL ftp into it, it's listed via with it's suffix. (google found that for some odd reason, pkg_add doesn't add the suffix) Hmm, haven't read that one. IIRC, pkg_add can take a complete URI for a package, e.g. : `pkg_add ftp://ftp.tw.org/pub/FreeBSD/ports/foo/bar/pkg.tbz` So, that's one possible workaround. Another would be to fetch the package via FTP and add it directly. $pkg_add -vr x11/xterm-206_1 pkg_add: package 'xterm-206_1' or its older version already installed So.. How do I install it? $pkg_delete xterm-203 pkg_delete: package 'xterm-203' is required by these other packages xorg-clients-6.8.2 So.. That can't be done. What can I do to upgrade my packages? As mentioned by one other poster, -f will force the deinstall. I've even tried sysinstall but that only lists xterm-203 as the package to install. (I suspect this is because its packagesite is packages-6-release) Yes. IIRC, you can change RELEASE_NAME with sysinstall and this would likely cause sysinstall to give you a different list of packages. Another workaround, that. I think that PACKAGESITE could also be redefined either in your {login} environment, or in /etc/make.conf, but don't hold me to that, because I'm not RTFMing at the moment ;-) $export | grep -i pack declare -x PACKAGESITE=ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/; Isn't there a latest dir at ftp.tw.freebsd.org ? In gentoo, it's a simple emerge xterm and all will be done automatically. (Granted, this is compile from source and not from binary packages, which I know can do cd /usr/ports/x11/xterm make install clean, but since FreeBSD has binary packages, I rather use that) I'd look into installing and using one of the more advanced package management tools; perhaps portupgrade. portupgrade can be told to utilize binary packages instead of building from source, and would be pretty automagic, a la emerge in Gentoo, I suspect (though I've not used Gentoo and therefore can't say for certain). It's probable that other package management tools can do this, also. It might be worth mentioning that Colin Percival is working rather hard on various means of doing binary upgrades for both the system (FreeBSDUpdate, IIRC) and the Ports Tree (PortSnap?) Thanks You're welcome; HTH. Kevin Kinsey -- Sex: the thing that takes up the least amount of time and causes the most amount of trouble. -- John Barrymore ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wed, 2006-02-22 at 21:37 -0500, fbsd_user wrote: do pkg_info look in the output for xterm. it will contain its complete name if its name in the list output is xterm-203 then I did that. pkg_delete xterm-203 this will remove it It says dependencies on xorg-clients. Another poster said to use -f (force) but I don't like that. This usually means there are underlying deps which can cause errors. eg: changed libraries libXXX.so.Y then pkg_add -rv xterm should fetch the package from the ports collection and install it. There is a better explanation of the ports collection in the install guide at www.a1poweruser.com I read that already. That's how I knew to use the _exact_name with the version suffix. And besides, it only mentions how to add a new package and not upgrade an existing package. The problem with the deps is just un-nerving. I just want to update to the latest *binary* package and not do a source compile. These are just small packages, what happens when I want to upgrade to the latest gnome version? I rather get packages than compile. Thanks -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 10:59:16 up 1 day, 12:34, 4 users, load average: 1.33, 1.62, 1.54 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wednesday 22 February 2006 20:59, Ow Mun Heng wrote: On Wed, 2006-02-22 at 20:32 -0600, Donald J. O'Neill wrote: On Wednesday 22 February 2006 19:58, Ow Mun Heng wrote: Hi, I've googled. I've read the handbook, I've read Absolute BSD and still $pkg_add -vr x11/xterm-206_1 pkg_add: package 'xterm-206_1' or its older version already installed It's saying you have to delete xterm-203 or you can't install the new one. So.. How do I install it? $pkg_delete xterm-203 pkg_delete: package 'xterm-203' is required by these other packages xorg-clients-6.8.2 pkg_delete -f xterm-203 cd /usr/ports/x11/xterm make install what about the dependency then? Ignore it? What if there are files needed by xorg-clients? eg: libXX.so.Y and which is not present in the new xterm? Since you want to replace it with a newer version, why are you worried about the dependencies. The newer version will take care of that. Of course, if you delete xterm and don't replace it, then you will have to handle the dependencies. What you are trying to do is update using downloaded packages and that is going to work for you. You need to upgrade those packages using the ports system. IS or is not? Is or is not what? I don't understand what you're asking here. You need to use more than a 4 word question, of which 2 of the words are the same. It tends to be confusing. Again, I don't want to compile it. I want the binary package. It's available on the mirrors. No It's not. The port is available on the mirrors. So compile it, or leave the old one in place. You really need to look at the Handbook. That's why it was written. I did. As stated in the initial portion of the email. I'm not only reading the handbook, I'm reading a newly bought book in addition to also reading stuffs on the internet. I'm proficient with the CLI, and being a long time Linux person, I'm sad to say that FreeBSD ports/packages is really confusing to me. Use Windows instead. All that takes is money. Available packages are not as up to date as the ports system is. Again, the package _is_ available and I've verified it. Thanks I'm sorry. You've verified the port was available. The package is not. I just checked. At this point, I'm going to close my ears eyes to you. You've been given advice by me and others that you find to not up to your standards, even though it will give you the product you want. Later you can figure out for yourself, just what happens if you don't make the upgrade to xterm-206. Have fun. Don ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wed, 2006-02-22 at 21:02 -0600, Kevin Kinsey wrote: Ow Mun Heng wrote: I'm from a Linux (gentoo linux) background so I'm not a rough diamond. rough diamond ... I like that idea. :D haha.. As mentioned by one other poster, -f will force the deinstall. Not an option for me. Bad experience with ignoring deps. (but seems like it's the norm for BSD folks?) I've even tried sysinstall but that only lists xterm-203 as the package to install. (I suspect this is because its packagesite is packages-6-release) Yes. IIRC, you can change RELEASE_NAME with sysinstall and this would likely cause sysinstall to give you a different list of packages. Ah.. Didn't know that. I'd look into installing and using one of the more advanced package management tools; perhaps portupgrade. portupgrade can be told to utilize binary packages instead of building from source, and would be pretty automagic, a la emerge in Gentoo, I suspect (though I've not used Gentoo and therefore can't say for certain). I'm trying it now. http://ezine.daemonnews.org/200501/freebsd_apps.html has good info on it. reading the man pages also provided some good clues . eg: -PP would be the option I would want to pass to it. (get binary packages and _only_ binary packages) You're welcome; HTH. Much great help. Thanks. BTW, how come this list does not use the reply to list and always adds the org sender in to and puts the list in CC? What's the norm here anyway? -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 11:41:44 up 1 day, 13:16, 4 users, load average: 0.26, 0.54, 0.64 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
Ow Mun Heng wrote: Hi, I've googled. I've read the handbook, I've read Absolute BSD and still I can't understand FreeBSD Ports/Packages esp when it comes to upgrading via packages. I'm from a Linux (gentoo linux) background so I'm not a rough diamond. Problem statement. FreeBSD-Release-6 Install from minimal cd (and packages added via FTP) i've done cvsup (cvsup -L2 -h cvsup.tw.freebsd.org /usr/share/examples/ports-supfile) pkg_version -v states that I have a few packages which can be upgraded. eg: xterm-203 needs updating (port has 206_1) $pkg_add -vr xterm pkg_add: unable to fetch 'ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/xterm.tbz' by URL $pkg_add -vr x11/xterm pkg_add: unable to fetch ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/x11/xterm.tbz' by URL ftp into it, it's listed via with it's suffix. (google found that for some odd reason, pkg_add doesn't add the suffix) $pkg_add -vr x11/xterm-206_1 pkg_add: package 'xterm-206_1' or its older version already installed So.. How do I install it? $pkg_delete xterm-203 pkg_delete: package 'xterm-203' is required by these other packages xorg-clients-6.8.2 So.. That can't be done. What can I do to upgrade my packages? I've even tried sysinstall but that only lists xterm-203 as the package to install. (I suspect this is because its packagesite is packages-6-release) $export | grep -i pack declare -x PACKAGESITE=ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/; In gentoo, it's a simple emerge xterm and all will be done automatically. (Granted, this is compile from source and not from binary packages, which I know can do cd /usr/ports/x11/xterm make install clean, but since FreeBSD has binary packages, I rather use that) Try 'man portupgrade'. Look at -P or -PP switch. might be what you need. I would imagine you'd have the best results if you pulled the package down manually then ran portupgrade with appropriate switches. HTH Thanks -- Regards, Eric ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wed, 2006-02-22 at 21:36 -0600, Donald J. O'Neill wrote: On Wednesday 22 February 2006 20:59, Ow Mun Heng wrote: what about the dependency then? Ignore it? What if there are files needed by xorg-clients? eg: libXX.so.Y and which is not present in the new xterm? Since you want to replace it with a newer version, why are you worried about the dependencies. The newer version will take care of that. Of course, if you delete xterm and don't replace it, then you will have to handle the dependencies. So, I do pkg_del -f xterm and then a pkg_add -vr xterm-206_1 and it will upgrade xorg-clients if needed? If yes, then Good. What you are trying to do is update using downloaded packages and that is going to work for you. You need to upgrade those packages using the ports system. IS or is not? Is or is not what? I don't understand what you're asking here. You need to use more than a 4 word question, of which 2 of the words are the same. It tends to be confusing. Sorry but You're confusing me too. Read your sentence update using downloaded packages and that is (?NOT?) going to work for you Again, I don't want to compile it. I want the binary package. It's available on the mirrors. No It's not. The port is available on the mirrors. So compile it, or leave the old one in place. lftp ftp.tw.frebsd.org lftp ftp.tw.freebsd.org:/pub/FreeBSD/ports/i386/packages-6-stable/x11 ls -l | grep xterm lrwxr-xr-x Nov 28 09:12 xterm-206_1.tbz - ../All/xterm-206_1.tbz get xterm-206_1.tbz quit tar -v -t -f xterm-206_1.tar -rw-r--r-- root/wheel 1560 2006-02-07 15:20:18 +CONTENTS -rw-r--r-- root/wheel 42 2006-02-07 15:20:18 +COMMENT -rw-r--r-- root/wheel 479 2006-02-07 15:20:18 +DESC -r--r--r-- root/wheel 8654 2006-02-07 15:20:18 +MTREE_DIRS -r--r--r-- root/wheel 1313 2006-02-07 15:19:55 man/man1/resize.1.gz -r--r--r-- root/wheel41772 2006-02-07 15:19:55 man/man1/xterm.1.gz -rwxr-xr-x root/wheel10104 2006-02-07 15:19:54 bin/resize -rwxr-xr-x root/wheel 2118 2006-02-07 15:19:54 bin/uxterm -rws--x--x root/wheel 252996 2006-02-07 15:19:54 bin/xterm -r--r--r-- root/wheel 1527 2006-02-07 15:19:55 lib/X11/app-defaults/UXTerm -r--r--r-- root/wheel 6551 2006-02-07 15:19:55 lib/X11/app-defaults/XTerm -r--r--r-- root/wheel 4232 2006-02-07 15:19:55 lib/X11/app-defaults/XTerm-color I'm proficient with the CLI, and being a long time Linux person, I'm sad to say that FreeBSD ports/packages is really confusing to me. Use Windows instead. All that takes is money. Why the sarcasm? Available packages are not as up to date as the ports system is. Again, the package _is_ available and I've verified it. Thanks I'm sorry. You've verified the port was available. The package is not. I just checked. See above. I too do my own verification before shooting emails out to mail lists At this point, I'm going to close my ears eyes to you. You've been given advice by me and others and I thank you and them for it. Thanks again. -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 11:48:03 up 1 day, 13:23, 4 users, load average: 1.14, 0.77, 0.67 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wed, 2006-02-22 at 21:58 -0600, Eric Schuele wrote: Ow Mun Heng wrote: In gentoo, it's a simple emerge xterm and all will be done automatically. (Granted, this is compile from source and not from binary packages, which I know can do cd /usr/ports/x11/xterm make install clean, but since FreeBSD has binary packages, I rather use that) Try 'man portupgrade'. Look at -P or -PP switch. might be what you need. I would imagine you'd have the best results if you pulled the package down manually then ran portupgrade with appropriate switches. I followed the advice of Kevin Kinsey and tried it out. It's working. Just like Gentoo's Emerge (emerge -Kav xterm) The only thing (again) unnerving is this statement. [snip] pkg_delete: package 'gettext-0.14.5' is required by these other packages and may not be deinstalled (but I'll delete it anyway): --- *anyway*?? bash-3.1.10 [/snip] -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 12:00:42 up 1 day, 13:35, 5 users, load average: 1.61, 1.18, 0.91 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Newbie Alert : pkg_add and packages Q (do not want to compile)
I am also a user of the packages. Each new release of FreeBSD has a ftp package directory that matches the release. That is where the pkg_add -r command goes to get your packages. The 4.11 release would have the words '4.11-release' in the directory name. Time passes and we now have 5.4 and 6.0 releases, each one defaulting to its matching directory location. Lets say you are on 4.11 and want to upgrade your packages to the most current version which are in the '6.0-release' directory location or the current directory location which is a work in process. First you have to change the default location the pkg_add -r looks on your 4.11 system. As said in previous replies, you can specify the complete path location to the '6.0-release' location as part of the pkg_add command, or change the default location as documented in the install guide, or use the sysinstall to change the default release name. Since many of the standard dependants are used by many packages you can not just starting doing pkg_adds using the new default directory location. You have to wipe out your complete inventory of installed packages and reinstall all of them again. This way the dependants will be auto installed as needed by the parent packages. What I do is I have a script containing all the pkg_add -vr pkkgname commands for the packages I have installed. The first line in it is pkg_delete * which will delete all installed packages and ports. I can upgrade my complete environment in 35 minutes by running a single script. I hope this helps you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ow Mun Heng Sent: Wednesday, February 22, 2006 10:09 PM To: freebsd-questions@freebsd.org Subject: RE: Newbie Alert : pkg_add and packages Q (do not want to compile) On Wed, 2006-02-22 at 21:37 -0500, fbsd_user wrote: do pkg_info look in the output for xterm. it will contain its complete name if its name in the list output is xterm-203 then I did that. pkg_delete xterm-203 this will remove it It says dependencies on xorg-clients. Another poster said to use -f (force) but I don't like that. This usually means there are underlying deps which can cause errors. eg: changed libraries libXXX.so.Y then pkg_add -rv xterm should fetch the package from the ports collection and install it. There is a better explanation of the ports collection in the install guide at www.a1poweruser.com I read that already. That's how I knew to use the _exact_name with the version suffix. And besides, it only mentions how to add a new package and not upgrade an existing package. The problem with the deps is just un-nerving. I just want to update to the latest *binary* package and not do a source compile. These are just small packages, what happens when I want to upgrade to the latest gnome version? I rather get packages than compile. Thanks -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 10:59:16 up 1 day, 12:34, 4 users, load average: 1.33, 1.62, 1.54 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
On Wed, 2006-02-22 at 21:02 -0600, Kevin Kinsey wrote: Ow Mun Heng wrote: I'm from a Linux (gentoo linux) background so I'm not a rough diamond. rough diamond ... I like that idea. :D haha.. As mentioned by one other poster, -f will force the deinstall. Not an option for me. Bad experience with ignoring deps. (but seems like it's the norm for BSD folks?) I've even tried sysinstall but that only lists xterm-203 as the package to install. (I suspect this is because its packagesite is packages-6-release) Yes. IIRC, you can change RELEASE_NAME with sysinstall and this would likely cause sysinstall to give you a different list of packages. Ah.. Didn't know that. I'd look into installing and using one of the more advanced package management tools; perhaps portupgrade. portupgrade can be told to utilize binary packages instead of building from source, and would be pretty automagic, a la emerge in Gentoo, I suspect (though I've not used Gentoo and therefore can't say for certain). I'm trying it now. http://ezine.daemonnews.org/200501/freebsd_apps.html has good info on it. reading the man pages also provided some good clues . eg: -PP would be the option I would want to pass to it. (get binary packages and _only_ binary packages) You're welcome; HTH. Much great help. Thanks. BTW, how come this list does not use the reply to list and always adds the org sender in to and puts the list in CC? What's the norm here anyway? -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 11:41:44 up 1 day, 13:16, 4 users, load average: 0.26, 0.54, 0.64 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
Ow Mun Heng wrote: On Wed, 2006-02-22 at 21:58 -0600, Eric Schuele wrote: Ow Mun Heng wrote: In gentoo, it's a simple emerge xterm and all will be done automatically. (Granted, this is compile from source and not from binary packages, which I know can do cd /usr/ports/x11/xterm make install clean, but since FreeBSD has binary packages, I rather use that) Try 'man portupgrade'. Look at -P or -PP switch. might be what you need. I would imagine you'd have the best results if you pulled the package down manually then ran portupgrade with appropriate switches. I followed the advice of Kevin Kinsey and tried it out. It's working. Just like Gentoo's Emerge (emerge -Kav xterm) Ah. Got distracted by kids and never finished reading his entire post. Sorry for the noise. The only thing (again) unnerving is this statement. [snip] pkg_delete: package 'gettext-0.14.5' is required by these other packages and may not be deinstalled (but I'll delete it anyway): --- *anyway*?? bash-3.1.10 [/snip] Don't worry. Its normal. Any loose ends with respect to dependencies will get tied up later. -- Regards, Eric ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie Alert : pkg_add and packages Q (do not want to compile)
Eric Schuele writes: The only thing (again) unnerving is this statement. [snip] pkg_delete: package 'gettext-0.14.5' is required by these other packages and may not be deinstalled (but I'll delete it anyway): --- *anyway*?? bash-3.1.10 [/snip] Don't worry. Its normal. Any loose ends with respect to dependencies will get tied up later. Confirmed. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]