From owner-freebsd-stable@FreeBSD.ORG Thu Sep 4 06:31:21 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5789BFAD for ; Thu, 4 Sep 2014 06:31:21 +0000 (UTC) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 243F713C3 for ; Thu, 4 Sep 2014 06:31:21 +0000 (UTC) Received: by mail-ig0-f181.google.com with SMTP id h15so563663igd.8 for ; Wed, 03 Sep 2014 23:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=PjT426/42fITil5d8fYYq4GaC+Am5JH2WxU1PN1ZT3g=; b=SX+hXpDU1+CXkKdxWTXn/33hDT3/8Ic1Hoq/2jtc/Dli5p6fUq6OfcMo1E41bmw1re O7GNGdZjOzxdhZQ4nbcb4S2o5L8UtLpb1hhNVbcb6tCgLVDLYhLY05WIaMZkUCCVNGf/ reO7hhyjYqZGpUn5HpyYFzFE9Nt2NlY0C2AvfRCfkfTPapaW0hBFte+vuxX6RkyuAO57 QUTnOSRjPTcT6tqV4KMtXSVTHTVYqRxKj5QOyY1BFHBapfvmmHVBYpBFSWw0/KLFhwD2 ise242kXeKpGdS7EyPdE1fEz91FybyybrdZgAdIy8NIREDlzUDIW9aJjz9lErqYzSzOG f0jg== MIME-Version: 1.0 X-Received: by 10.50.7.100 with SMTP id i4mr143858iga.32.1409812280564; Wed, 03 Sep 2014 23:31:20 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.107.163.148 with HTTP; Wed, 3 Sep 2014 23:31:20 -0700 (PDT) In-Reply-To: <5c04d8d3287b214cd827612b774a7553@mailbox.ijs.si> References: <20140904093421.7f1abd04@akips.com> <5c04d8d3287b214cd827612b774a7553@mailbox.ijs.si> Date: Wed, 3 Sep 2014 23:31:20 -0700 X-Google-Sender-Auth: HYnre8w-Hw8CS4DH3dCDptsU1nk Message-ID: Subject: Re: Forcing pkg From: Kevin Oberman To: Mark Martinec Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD-STABLE Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2014 06:31:21 -0000 On Wed, Sep 3, 2014 at 5:29 PM, Mark Martinec wrote: > 2014-09-04 02:00 Michael Ross wrote: > >> On Thu, 04 Sep 2014 01:34:21 +0200, Paul Koch >> wrote: >> >> On Thu, 04 Sep 2014 00:27:16 +0200 >>> "Michael Ross" wrote: >>> >>> Hello, >>>> >>>> a second pkg question: >>>> >>>> Assume I have to install something *now*, like in: 5 minutes ago, >>>> production on fire, >>>> never mind corrupt pkg databases or anything, sort out later, need >>>> service >>>> up: >>>> >>>> Is there any equivalent to "pkg_add --force"? >>>> >>>> As in, *I* know the dependencies are met, and I *know* that pkg is wrong >>>> in complaining? >>>> >>>> -DDISABLE_CONFLICTS doesn't work anymore? >>>> >>> >>> Or, I want to install pkg A, but it relies on pkgs B, C, D,... >>> I only want to use a single program in pkg A that I "know" has >>> no dependencies and really don't want to pull in anything else. >>> >>> >> like what would have been >> >> -i, --no-deps >> Install the package without fetching and installing >> dependencies. >> >> to pkg_add. >> >> Michael >> > > > Another example over which I'm currently stuck: > > # pkg install mailman (or, same with: pkg upgrade) > The following 3 packages will be affected (of 0 checked): > > Installed packages to be REMOVED: > postfix-current-2.12.20140709_2,4 > > New packages to be INSTALLED: > postfix: 2.11.1_4,1 > > Installed packages to be UPGRADED: > mailman: 2.1.18.1_1 -> 2.1.18.1_3 > > I don't want the postfix-current to be removed. Mailman is perfectly > capable of working with it and does not need postfix: 2.11.1. > > > Even if I follow this path: remove postfix-current, install mailman > and let it install postfix: 2.11.1, then try to remove postfix: 2.11.1 > and install postfix-current - it tries to deinstall mailman. > > Mark > I think you could let the mailman install replace postfix-current with postsfix and then: pkg delete -f postfix: 2.11.1 pkg install mail/postfix-current While I can't promise that this will work, I have done about this for another case. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com