From owner-freebsd-questions@FreeBSD.ORG Thu Feb 23 04:03:45 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 B2DD416A43A for ; Thu, 23 Feb 2006 04:03:45 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from mta8.adelphia.net (mta8.adelphia.net [68.168.78.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D2AD43D75 for ; Thu, 23 Feb 2006 04:03:32 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from barbish ([69.172.31.117]) by mta11.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20060223040010.MJVI7811.mta11.adelphia.net@barbish>; Wed, 22 Feb 2006 23:00:10 -0500 From: "fbsd_user" To: "Ow Mun Heng" , Date: Wed, 22 Feb 2006 23:00:05 -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: <1140664149.4762.13.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 04:03:45 -0000 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: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On 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 "freebsd-questions-unsubscribe@freebsd.org"