Force install function in PKGNG
kenneth.hatteland at kleppnett.no
Sat Feb 1 20:30:43 UTC 2014
On 2014-01-29, Kenneth Hatteland<kenneth.hatteland at kleppnett.no> 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.
/-- 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 at 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 at 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 /
More information about the freebsd-questions