systemadmin.es > Utilidades > Como buscar un paquete por su contenido en CentOS

Como buscar un paquete por su contenido en CentOS

Para buscar en RedHat Enterprise Linux, Fedora o CentOS por el contenido de un paquete en lugar del nombre de éste se puede usar la opción provides de yum:

# yum provides */whois
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * epel: ftp.SURFnet.nl
 * base: mirror.netcologne.de
 * updates: wftp.tu-chemnitz.de
 * addons: centos.got-root.me.uk
 * extras: wftp.tu-chemnitz.de
Excluding Packages in global exclude list
Finished
ircd-ratbox.x86_64 : Ircd-ratbox is an advanced, stable and fast ircd
irssi.i386 : Modular text mode IRC client with Perl scripting
irssi.x86_64 : Modular text mode IRC client with Perl scripting
ircd-hybrid.x86_64 : Internet Relay Chat Server
ircd-ratbox.i386 : Ircd-ratbox is an advanced, stable and fast ircd
ircd-hybrid.x86_64 : Internet Relay Chat Server
jwhois.x86_64 : Internet whois/nicname client.
epic.x86_64 : An ircII chat client.

Con este listado de paquetes que contienen encajan con la expresión */whois podemos escojer el que mas interese y lo instalamos normalmente mediante yum install:

# yum install jwhois -y
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * epel: ftp.SURFnet.nl
 * base: mirror.netcologne.de
 * updates: centos.got-root.me.uk
 * addons: centos.got-root.me.uk
 * extras: centos.got-root.me.uk
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package jwhois.x86_64 0:3.2.3-8.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 jwhois                  x86_64     3.2.3-8.el5      base               95 k

Transaction Summary
=============================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 95 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: jwhois                       ######################### [1/1] 

Installed: jwhois.x86_64 0:3.2.3-8.el5
Complete!

Deja un comentario:

XHTML - Tags permitidos:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>