[Gentoo] Pequeño manual de Equery

Equery es una herramienta que no debe faltar en tu sistema gentoo. Ya que, permite un sin fin de posibilidades. En esta ocasión vengo a dar algunos ejemplos de como podemos utilizar esta herramienta tan útil, pero antes, la tenemos que instalar con el paquete gentoolkit:

# emerge app-portage/gentoolkit

Empecemos….

Saber que aplicación creó un directorio o archvio en nuestro sistema: Con belongs.

# equery belongs -e /usr/src/linux

Podemos ver el resultado. Como muestra que la creación del directorio /usr/src/linux ha sido provocada por el paquete `sys-kernel/gentoo-sources`

* Searching for /usr/src/linux …
sys-kernel/gentoo-sources-4.10.9 (/usr/src/linux-4.10.9-gentoo)

Listar todos los paquetes con una USE en especifica en el árbol portage:

# equery hasuse mp3

 

* Searching for USE flag mp3 …
[IP-] [ ] app-cdr/brasero-3.12.1:0/3.1
[IP-] [ ] app-emulation/wine-2.0:0
[IP-] [ ] app-misc/tracker-1.10.5:0/100
[IP-] [ ] media-plugins/gst-plugins-meta-1.10.3:1.0
[IP-] [ ] media-sound/audacity-2.0.5:0
[IP-] [ ] media-video/ffmpeg-3.2.4:0/55.57.57
[IP-] [ ] virtual/ffmpeg-9-r2:0

Podemos ver que paquetes dependen de un paquete:

# equery depends gtk+

Para ver las dependencias de un paquete, es decir, todas las que deben estar en nuestro sistema para que funcione.

# equery g dev-util/netbeans

Esto es muy útil en el caso de tener algún problema al realizar una actualización, ya que, visualizando las dependencias podemos bloquear X paquete para evitar cualquier conflicto o bloqueo.

Para búsquedas en el arbol de portage y overlay. (Permite expresiones regulares). Por ejemplo podemos buscar el texto java en los paquetes de portage:

# equery list -po *java*

Este seria el resultado:

* Searching for *java* …
[-P-] [ ~] app-emacs/javascript-2.0_beta8:0
[-P-] [ ~] app-emacs/javascript-2.2.1:0
[-P-] [ ] app-eselect/eselect-java-0.2.0:0
[-P-] [ ~] app-eselect/eselect-java-0.2.0-r1:0
[IP-] [ ] app-eselect/eselect-java-0.3.0:0
[-P-] [ ~] app-portage/java-ebuilder-0.1:0
[-P-] [ ~] app-portage/java-ebuilder-0.2:0
[-P-] [ -] app-portage/java-ebuilder-9999:0
[-P-] [ ~] dev-haskell/language-javascript-0.5.14.2:0/0.5.14.2
[-P-] [ ~] dev-haskell/language-javascript-0.6.0.9:0/0.6.0.9
[-P-] [ ] dev-java/ant-javamail-1.9.2:0
[-P-] [ ~] dev-java/ant-javamail-1.9.2-r2:0
[-P-] [ ] dev-java/apple-java-extensions-bin-1.5-r1:0
[-P-] [ ] dev-java/dbus-java-2.7-r1:0
[-P-] [ ] dev-java/dnsjava-2.1.6:0
[-P-] [ ~] dev-java/dnsjava-2.1.7:0
[-P-] [ ] dev-java/geoip-java-1.3.0:0
[-P-] [ ] dev-java/gnu-javamail-1.0-r2:1
[-P-] [ ] dev-java/java-apicheck-0_p20150907:0
[IP-] [ ] dev-java/java-config-2.2.0-r3:2
[-P-] [ ] dev-java/java-dep-check-0.3-r1:0
[-P-] [ ~] dev-java/java-dep-check-0.4:0
[IP-] [ ] dev-java/java-getopt-1.0.14:1
[-P-] [ ] dev-java/java-gnome-4.0.19:4.0
[-P-] [ ~] dev-java/java-gnome-4.0.20:4.0
[-P-] [ ] dev-java/java-gnome-4.1.3:4.1
[-P-] [ ] dev-java/java-sdk-docs-1.7.0.80:1.7
[-P-] [ ] dev-java/java-sdk-docs-1.8.0.121:1.8
[-P-] [ ] dev-java/java-service-wrapper-3.5.25-r1:0
[IP-] [ ] dev-java/javacc-5.0-r2:0
[-P-] [ ] dev-java/javacsv-2.1:0
[IP-] [ ] dev-java/javacup-0.11b_p20151001:0
[IP-] [ ] dev-java/javahelp-2.0.05_p63:0
[-P-] [ ] dev-java/javassist-2.6-r2:2
[IP-] [ ] dev-java/javassist-3.18.2:3
[IP-] [ ] dev-java/javatoolkit-0.3.0-r9:0
[-P-] [ ] dev-java/javax-inject-1-r2:0
[-P-] [ ~] dev-java/javax-mail-1.4:0
[-P-] [ ] dev-java/libmatthew-java-0.7.2-r1:0
[-P-] [ ] dev-java/libreadline-java-0.8.0-r3:0
[-P-] [ ~] dev-java/matrix-toolkits-java-0.9.12:0
[I–] [??] dev-java/netbeans-java-8.0.2-r2:8.0
[-P-] [ ] dev-java/netbeans-java-8.0.2-r5:8.0
[-P-] [ ~] dev-java/netbeans-java-8.1-r2:8.1
[-P-] [ ] dev-java/netbeans-java-8.2:8.2
[-P-] [ ] dev-java/netbeans-javacard-8.0.2:8.0
[-P-] [ ~] dev-java/netbeans-javacard-8.1:8.1
[-P-] [ ] dev-java/netbeans-javacard-8.2:8.2
[-P-] [ ] dev-java/netbeans-javadoc-8.0.2:8.0
[-P-] [ ~] dev-java/netbeans-javadoc-8.1:8.1
[-P-] [ ] dev-java/netbeans-javadoc-8.2:8.2
[IP-] [ ] dev-java/netbeans-javafx-8.0.2:8.0
[-P-] [ ~] dev-java/netbeans-javafx-8.1:8.1
[-P-] [ ] dev-java/netbeans-javafx-8.2:8.2
[-P-] [ ] dev-java/oracle-javamail-1.5.2:0
[-P-] [ ~] dev-java/oracle-javamail-1.5.5:0
[-P-] [ ~] dev-java/oracle-javamail-1.5.6:0
[-P-] [ ~] dev-java/protobuf-java-3.0.0_beta3_p1:0/10b3
[-P-] [ ~] dev-java/protobuf-java-3.0.2:0/10
[-P-] [ ~] dev-java/protobuf-java-3.1.0:0/11
[-P-] [ ] dev-java/sun-java3d-bin-1.3.2-r1:0
[-P-] [ ] dev-java/sun-java3d-bin-1.4.0_pre5-r1:0
[-P-] [ ~] dev-java/sun-java3d-bin-1.5.2:0
[-P-] [ ] dev-java/sun-javamail-1.4.3:0
[-P-] [ ~] dev-java/xjavac-2.4.0:1
[IP-] [ ] dev-java/xjavac-20110814:1
[-P-] [ ] dev-java/xz-java-1.5:0
[-P-] [ ~] dev-java/xz-java-1.6:0
[-P-] [ ~] dev-java/xz-java-1.6-r1:0
[-P-] [ ~] dev-lang/gnuprologjava-0.2.6:0
[-P-] [ ~] dev-ruby/rex-java-0.1.2:0
[-P-] [ ] java-virtuals/javamail-1.0-r4:0
[-P-] [ ] net-misc/java-wakeonlan-1.0.0-r2:0
[-P-] [ ] sec-policy/selinux-java-2.20151208-r4:0
[-P-] [ ] sec-policy/selinux-java-2.20151208-r6:0
[-P-] [ ] sec-policy/selinux-java-2.20161023-r1:0
[-P-] [ ] sec-policy/selinux-java-2.20161023-r3:0
[-P-] [ ~] sec-policy/selinux-java-2.20161023-r4:0
[-P-] [ ~] sec-policy/selinux-java-2.20170204-r1:0
[-P-] [ ] sec-policy/selinux-java-2.20170204-r2:0
[-P-] [ ~] sec-policy/selinux-java-2.20170204-r3:0
[-P-] [ -] sec-policy/selinux-java-9999:0
[IP-] [ ] sys-apps/baselayout-java-0.1.0:0
[-P-] [ ] x11-plugins/hexchat-javascript-0.3.1:0
[-P-] [ ~] x11-plugins/hexchat-javascript-0.3.2:0

O podemos buscar todos los paquetes que contengan gnome en su nombre:

equery list -po *gnome*

Esta es una pequeña aportación sobre equery. Si alguien piensa que deberia añadir algo a esta pequeña guía puede compartirla con nosotros a través de los comentarios.

Share

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image