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]"