From owner-freebsd-questions@FreeBSD.ORG Sat Feb 1 20:30:43 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 607C375C for ; Sat, 1 Feb 2014 20:30:43 +0000 (UTC) Received: from asav4.altibox.net (asav4.altibox.net [81.167.36.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 028D21B7A for ; Sat, 1 Feb 2014 20:30:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by asav4.altibox.net (Postfix) with ESMTP id 12D4520422 for ; Sat, 1 Feb 2014 21:25:20 +0100 (CET) Received: from asav4.altibox.net ([127.0.0.1]) by localhost (asav4.ulh.lysetele.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gDL8R6B740uL for ; Sat, 1 Feb 2014 21:25:19 +0100 (CET) Received: from [192.168.10.110] (129.81-166-80.customer.lyse.net [81.166.80.129]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kenneth.hatteland@kleppnett.no) by asav4.altibox.net (Postfix) with ESMTPSA id 6F0272030B for ; Sat, 1 Feb 2014 21:25:19 +0100 (CET) Message-ID: <52ED582E.4080509@kleppnett.no> Date: Sat, 01 Feb 2014 21:25:18 +0100 From: Kenneth Hatteland User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Force install function in PKGNG Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Feb 2014 20:30:43 -0000 On 2014-01-29, Kenneth Hatteland wrote: > My system always have had problems getting my HP cp1515n to work. But > installing HPLIP from ports, then installing HPIJS with pkg_add -rf will > get the correct PPDs to show up in CUPS. > > After swithcing to pkgng it does not seem to exist a force option so > I have to do all my prints on another machine, which is slightly > annoying. I have read man pages and googled but can not seem to find a > force funtion. Does anybody know about one or have a better way of > making the right PPDs install to get my printer going ? Having only > HPLIP, or HPIJS installed does not make this possible. > > Thanks in advance, Kenneth Hatteland /Have a look at the pkg-add(8) man page. Specifically, the -f option. This provides the force function you need I believe. Or you might be able to build it as a port to get it installed. / /pkg-add is used when you have downloaded a pkg tarball manually. Virtually always you probably want to use pkg-install -- as this will handle automatically fetching the package and any dependencies from a repository. pkg-install understands '-f' to force installation. Cheers, Matthew / /-- Dr Matthew J Seaman MA, D.Phil. I have tried pkg install -f hpijs ( after installing hplip via ports) ===> Cleaning for foomatic-filters-4.0.17 ===> Cleaning for hplip-3.14.1 root@Europa:/usr/ports/print/hplip # pkg install -f hpijs Updating repository catalogue The following 1 packages will be installed: Installing hpijs: 2.1.4_6 The installation will require 3 MB more space 0 B to be downloaded Proceed with installing packages [y/N]: y Checking integrity...pkg: WARNING: locally installed foomatic-filters-4.0.17 conflicts on /usr/local/bin/foomatic-rip with: - hpijs-2.1.4_6 pkg: WARNING: locally installed hplip-3.14.1 conflicts on /usr/local/bin/hpijs with: - hpijs-2.1.4_6 root@Europa:/usr/ports/print/hplip # So it does not seem to have a working force function. In the olden days pkg_add -f hpijs here hammered the file in with the same complaints, but with a working printer and a correct HPcp1515n.ppd available in cups. Any suggestions to work aorund this ? Blessed be , Kenneth /