From owner-freebsd-questions@FreeBSD.ORG Thu Feb 23 02:37:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FA3216A420 for ; Thu, 23 Feb 2006 02:37:11 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45CD043D62 for ; Thu, 23 Feb 2006 02:37:10 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from barbish ([69.172.31.117]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20060223023709.TCQR13051.mta10.adelphia.net@barbish>; Wed, 22 Feb 2006 21:37:09 -0500 From: "fbsd_user" To: "Ow Mun Heng" , Date: Wed, 22 Feb 2006 21:37:09 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <1140659905.1984.20.camel@neuromancer.home.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Importance: Normal Cc: Subject: RE: Newbie Alert : pkg_add and packages Q (do not want to compile) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsd_user@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 02:37:11 -0000 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: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On 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 "freebsd-questions-unsubscribe@freebsd.org"