conocer a qué paquete pertenece un comando


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #!/bin/bash
  2. COMMAND=$1
  3.  
  4. CMDPATH=`which $COMMAND`
  5. if [ -z "$CMDPATH" ]; then
  6. echo "Comando no encontrado"
  7. exit 1
  8. fi
  9.  
  10. CMDPKG=`dpkg -S $CMDPATH | cut -d":" -f1`
  11.  
  12. dpkg -s $CMDPKG

URL: http://javierperez.eu/taller-ubuntu-conocer-a-que-paquete-pertenece-un-comando/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.