From owner-freebsd-questions@FreeBSD.ORG Sun Sep 12 01:43:04 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93B84106566B for ; Sun, 12 Sep 2010 01:43:04 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 23E378FC12 for ; Sun, 12 Sep 2010 01:43:03 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oubav-0000dp-S8 for freebsd-questions@freebsd.org; Sun, 12 Sep 2010 03:43:01 +0200 Received: from pool-173-79-86-179.washdc.fios.verizon.net ([173.79.86.179]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Sep 2010 03:43:01 +0200 Received: from nightrecon by pool-173-79-86-179.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Sep 2010 03:43:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Sat, 11 Sep 2010 21:44:05 -0400 Lines: 76 Message-ID: References: <4C8C0110.20801@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-86-179.washdc.fios.verizon.net Subject: Re: Upgrading packages - portupgrade confusion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2010 01:43:04 -0000 Kaya Saman wrote: > Hi, > > I have 2 servers one production and another test. > > The test machine's packages however, seem to be older then the > production machines one's even though I built the production system a > few months ago. > > I used the: portupgrade command in order to try to upgrade the ports nad > re-install the packages only the same versions seem to be compiling??? > > I ran: portupgrade -ai > > on the base system as the system where these packages are installed into > is a FreeBSD jail. > > The ports in question are these: > > tomcat-6.0.29 Open-source Java web server by Apache, 6.x branch > postgresql-client-8.2.17_1 PostgreSQL database (client) > postgresql-server-8.2.17_1 The most advanced open-source database > available anywhere > > Which on my newer test system show up as such: > > postgresql-client-8.2.13 PostgreSQL database (client) > postgresql-server-8.2.13 The most advanced open-source database > available anywhere > tomcat-6.0.20_1 Open-source Java web server by Apache, 6.x branch > > I don't understand this 100%??? > > I would like the versions to be the same as the production system since > I have a postgres-Tomcat connector which doesn't work on the test setup > as my Tomcat webapp isn't being displayed!! > > Can I do anything about this?? > > I don't even know why it is like this although I must admit that it has > been an exceptionally long day and am really suffering from fatigue now > which might be a contributor but I can't tell..... > > Can anyone give me any advise?? > Have you refreshed the ports tree(s) with csup using the same supfile to ensure the ports trees are up to date ( and therefore identical)? Since you are using portugrade, as I do, this is what I do to see what needs to be done: I cd to /usr/sup which is where I keep my supfiles and the housekeeping. Then using this command sequence will refresh the ports tree, the ports index database, and ensure the package database is clean and synced. Portversion then just tells you with a "<" symbol any that are old and in need of an update. csup -L 2 ports && portsdb -uF && pkgdb -u && portversion where "ports" above is my supfile for ports refresh and looks like this: *default host=cvsup.nl.freebsd.org *default base=/usr *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix compress ports-all Then a portupgrade -a as required. If all symbols in the right column are "=" everything is up to date and nothing is required. Adjust server location for mirror near you (or one that works best). -Mike