Return to Snippet

Revision: 32329
at September 22, 2010 18:12 by javierperez


Initial Code
#!/bin/bash
COMMAND=$1

CMDPATH=`which $COMMAND`
if [ -z "$CMDPATH" ]; then
	echo "Comando no encontrado"
	exit 1
fi

CMDPKG=`dpkg -S $CMDPATH | cut -d":" -f1`

dpkg -s $CMDPKG

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

Initial Description

                                

Initial Title
conocer a qué paquete pertenece un comando

Initial Tags
command, Bash, ubuntu

Initial Language
Bash