From owner-freebsd-questions@FreeBSD.ORG Mon Jan 23 15:10:01 2012 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 1120E106564A for ; Mon, 23 Jan 2012 15:10:01 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 908AA8FC0A for ; Mon, 23 Jan 2012 15:10:00 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so3389149wib.13 for ; Mon, 23 Jan 2012 07:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=zCsbocAHvlJnETGO/3uifQxEdsdbE2ePvu02iIj7QxQ=; b=H+Mk+2qD19Hnj1oz3mDD/SXXwXRjQIPm4py5YWIv/AVip8iekP4WCD+Hpm/ZYLzoBY soCQ54XEtkdCdUmYzIfxSN4Gym0s88/VosQQB3ng47eEyrSMwhwCT0rgj6Zk5XUxNM0e VN7jxc/weqxuT1STIii8mEzzg7FelVbci+HJM= Received: by 10.180.87.100 with SMTP id w4mr14173860wiz.13.1327331399413; Mon, 23 Jan 2012 07:09:59 -0800 (PST) Received: from green.tandem.local (32-179-132-95.pool.ukrtel.net. [95.132.179.32]) by mx.google.com with ESMTPS id hc10sm10237395wib.8.2012.01.23.07.09.57 (version=SSLv3 cipher=OTHER); Mon, 23 Jan 2012 07:09:58 -0800 (PST) Message-ID: <4F1D7844.8060807@gmail.com> Date: Mon, 23 Jan 2012 17:09:56 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0.1) Gecko/20120110 Firefox/9.0.1 SeaMonkey/2.6.1 MIME-Version: 1.0 To: Victor Sudakov References: <20120123103232.GA79175@admin.sibptus.tomsk.ru> In-Reply-To: <20120123103232.GA79175@admin.sibptus.tomsk.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: portmaster best practices 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: Mon, 23 Jan 2012 15:10:01 -0000 Victor Sudakov wrote: > Hello portmaster users, > > If portaudit shows that some installed packages have vulnerabilities, > what do you usually do? Greatly depend on where am I. All my systems are staying up-to-date whereas when I'm visiting someones system I prefer to update only required pieces of software. Anyway if you tell portmaster to update port x it would try to update all ports it depends on. > Do you upgrade only the vulnerable packages, or vulnerable packages > and dependent packages (portmaster -r), or perhaps all packages > (portmaster -a)? Or do you "pkg_delete -a" all packages first and then > reinstall from scratch (from `portmaster --list-origins` perhaps)? > > I am a bit uneasy about "portmaster -a" because, for example, in the > output below it intends to install a package which is already > installed: > > > pg01-sibptus# portmaster -n -a > ===>>> Gathering distinfo list for installed ports > > [dd] > Upgrade php5-ldap-5.3.5_1 to php5-ldap-5.3.9 > Install net/openldap24-sasl-client > Upgrade postgresql-server-9.0.1 to postgresql-server-9.0.6_3 > Upgrade tcl-8.5.9 to tcl-8.5.11 > Upgrade vim-7.3.81 to vim-7.3.121 > Install devel/gettext > > ===>>> Proceed? y/n [y] n > > ===>>> If you would like to upgrade or install some, but not > all of the above try adding '-i' to the command line. > pg01-sibptus# > pg01-sibptus# > pg01-sibptus# pkg_info -xo openldap > Information for openldap-sasl-client-2.4.24: > > Origin: > net/openldap24-client As far as I recall there was some glitches with correct detection of openldap24-client presence (some symbols moving around or so). Generally I never pay attention to this glitches and when (or if) update process fails I try to recompile mentioned port with portmaster. Then update process can be continued with `portmaster -a`. The better way of debugging such problems for me is pkg_libchk from sysutils/bsdadminscripts. -- Sphinx of black quartz judge my vow.