packages: what does | sign mean between two packages

Non release banter
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

packages: what does | sign mean between two packages

Post#1 by francois » 31 Mar 2013, 19:53

What does | sign mean between two packages? For example, as in:
foomatic-db-compressed-ppds | foomatic-db
wget | curl

Thanks. :)
Prendre son temps, profiter de celui qui passe.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: packages: what does | sign mean between two packages

Post#2 by brokenman » 01 Apr 2013, 00:33

This is called piping and in a script it essentially means you want the result of the preceeding command sent to the next command. Is this what you mean?
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: packages: what does | sign mean between two packages

Post#3 by francois » 01 Apr 2013, 12:09

Thanks brokenman.

In fact, after seing more of these packages on package list files, I have the impression that it means that you could use one or the other packag as equivalents.

But I am not still sure. :(
Prendre son temps, profiter de celui qui passe.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: packages: what does | sign mean between two packages

Post#4 by brokenman » 01 Apr 2013, 12:38

Sorry, i misunderstood your question. The 'pipe' in a package list of dependencies means that the package following the '|' is required for building the preceeding package from source. Thus, in your example:

foomatic-db-compressed-ppds | foomatic-db, foo-client, foo-bar

This would mean that foomatic-db is required to build foomatic-db-compressed-ppds. This may vary from distro to distro but in slackware this is the case.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: packages: what does | sign mean between two packages

Post#5 by francois » 01 Apr 2013, 13:23

If foomatic-db-compressed-ppds is a binary package (.deb), and hence it has already been built, will that mean that foomatic-db, foo-client, foo-bar will be needed to run foomatic-db-compressed-ppd?

Thanks for sharing your knowledge. :)
Prendre son temps, profiter de celui qui passe.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: packages: what does | sign mean between two packages

Post#6 by fanthom » 01 Apr 2013, 13:25

Code: Select all

PACKAGE NAME:  libmatecomponentui-1.4.0-x86_64-1gv.txz
PACKAGE LOCATION:  ./salix/mate
PACKAGE SIZE (compressed):  306 K
PACKAGE SIZE (uncompressed):  1224 K
PACKAGE REQUIRED:  alsa-lib,atk,audiofile,bzip2,cairo,cxxlibs|gcc-g++,dbus,dbus-glib,esound,expat,fontconfig,freetype,gcc,gdk-pixbuf2,glib2,gtk+2,libICE,libSM,libX11,libXau,libXcomposite,libXcursor,libXdamage,libXdmcp,libXext,libXfixes,libXi,libXinerama,libXrandr,libXrender,libart_lgpl,libcanberra,libffi,libglade,libmate,libmatecanvas,libmatecomponent,libogg,libpng,libtool,libvorbis,libxcb,libxml2,mate-conf,mate-corba,mate-vfs,openssl-solibs|openssl,pango,pixman,popt,util-linux,xz,zlib
you can see:

Code: Select all

openssl-solibs|openssl
in PACKAGE REQUIRED field.

i would say that in this case '|' means 'or'.
Please add [Solved] to your thread title if the solution was found.

Post Reply