From owner-freebsd-doc@FreeBSD.ORG Sat Dec 6 15:30:08 2008 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 557EE1065673 for ; Sat, 6 Dec 2008 15:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 33DE88FC12 for ; Sat, 6 Dec 2008 15:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mB6FU8fl043872 for ; Sat, 6 Dec 2008 15:30:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mB6FU869043864; Sat, 6 Dec 2008 15:30:08 GMT (envelope-from gnats) Resent-Date: Sat, 6 Dec 2008 15:30:08 GMT Resent-Message-Id: <200812061530.mB6FU869043864@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, guillaume Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 246AE1065678 for ; Sat, 6 Dec 2008 15:29:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 147278FC1F for ; Sat, 6 Dec 2008 15:29:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mB6FTB9V024943 for ; Sat, 6 Dec 2008 15:29:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id mB6FTBEd024942; Sat, 6 Dec 2008 15:29:11 GMT (envelope-from nobody) Message-Id: <200812061529.mB6FTBEd024942@www.freebsd.org> Date: Sat, 6 Dec 2008 15:29:11 GMT From: guillaume To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/129464: using packages system X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Dec 2008 15:30:08 -0000 >Number: 129464 >Category: docs >Synopsis: using packages system >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 06 15:30:07 UTC 2008 >Closed-Date: >Last-Modified: >Originator: guillaume >Release: 7.0 >Organization: >Environment: FreeBSD ordi1.guigui.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: in the FreeBSD handbook, 4.4 (Using the Packages System), pkg_add and pkg_delete are obsolete commands to manage packages. it's quasi-impossible to control requirements packages with these commands. when a beginner read the handbook, he lost a lot of hours before he understand that (if, by miracle, he doesn't give up FreeBSD). >How-To-Repeat: see above. >Fix: the good commands are portupgrade and pkg_deinstall. the portupgrade tool must be natively integrated in FreeBSD. example of procedure: 1) it's better to have PACKAGESITE to the last stable branch by default, no? 2) install port collection with csup 3) clean database with pkgdb -aF (is it necessary after the port collection install?) 4) to install the xfce package: portinstall -RPP xfce 5) to upgrade the xfce package: portupgrade -RPP xfce 6) to delete the xfce package: pkg_deinstall -r xfce PS: it's not convenient to install the port collection if one only use packages. a solution to this will be good for the future... >Release-Note: >Audit-Trail: >Unformatted: