Date: Wed, 3 Sep 2014 23:31:20 -0700 From: Kevin Oberman <rkoberman@gmail.com> To: Mark Martinec <Mark.Martinec+freebsd@ijs.si> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: Forcing pkg Message-ID: <CAN6yY1vN3fu%2BHaBS37mcyH0WnKOWnzRrLG02kuiY7sqb_Zbizw@mail.gmail.com> In-Reply-To: <5c04d8d3287b214cd827612b774a7553@mailbox.ijs.si> References: <op.xlmtzqlwg7njmm@michael-think> <20140904093421.7f1abd04@akips.com> <op.xlmyafurg7njmm@michael-think> <5c04d8d3287b214cd827612b774a7553@mailbox.ijs.si>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 3, 2014 at 5:29 PM, Mark Martinec <Mark.Martinec+freebsd@ijs.si> wrote: > 2014-09-04 02:00 Michael Ross wrote: > >> On Thu, 04 Sep 2014 01:34:21 +0200, Paul Koch <paul.koch@akips.com> >> wrote: >> >> On Thu, 04 Sep 2014 00:27:16 +0200 >>> "Michael Ross" <gmx@ross.cx> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vN3fu%2BHaBS37mcyH0WnKOWnzRrLG02kuiY7sqb_Zbizw>