Trouver un package linux sur CENTOS

If you don’t know where to find the ifconfig command, follow the simple steps provided below. First let us find out which packages will provide ifconfig command. To do that , enter the following command:

yum provides ifconfig

Sample Output:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.aol.in
 * extras: centos.aol.in
 * updates: centos.aol.in
net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools
Repo        : @base
Matched from:
Filename    : /usr/sbin/ifconfig

Or you can use the following command too.

yum whatprovides ifconfig

Here, “provides” or “whatprovides” switches are used to find out which package provides some feature or file.

As you see in the above output, the net-tools package provides the ifconfig command. So, let us install net-tools package to use ifconfig command.

If you don’t know where to find the ifconfig command, follow the simple steps provided below. First let us find out which packages will provide ifconfig command. To do that , enter the following command:

yum provides ifconfig

Sample Output:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.aol.in
 * extras: centos.aol.in
 * updates: centos.aol.in
net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools
Repo        : @base
Matched from:
Filename    : /usr/sbin/ifconfig

Or you can use the following command too.

yum whatprovides ifconfig

Here, “provides” or “whatprovides” switches are used to find out which package provides some feature or file.

As you see in the above output, the net-tools package provides the ifconfig command. So, let us install net-tools package to use ifconfig command.

  • Linux, CENTOS, YUM
  • 3 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

ACCÉDER AUX PARTAGES DE FICHIERS WINDOWS DEPUIS MACOS X

ACCÉDER AUX PARTAGES DE FICHIERS WINDOWS DEPUIS MACOS X  PUBLIÉ LE23 MARS 2011 L’accès...

Blocage des mises à jour Windows 7/8/8.1 pour les nouveaux processeurs

Depuis peu, Microsoft a décidé de bloquer les mises à jour de Windows 7/8/8.1 si il détecte qu'il...

Faire une capture d'écran avec un raccourci clavier

  Pour faire une capture rapide, il vous suffit d'appuyer simultanément sur les touches Windows...

Faire une capture d'écran avec l'outil Capture

L'outil Capture (également présent sous Windows 7 et 8) peut s'avérer très utile pour effectuer...

System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.

Lors de déploiement applicatif Microsoft, il n'est pas rare d'être confrontés à des erreurs...