#!/bin/sh
if test "$1" = "-i"
then
apt-get install $2
elif test "$1" = "-u"
then
apt-get update
elif test "$1" = "-c"
then
apt-get clean
elif test "$1" = "-h"
then
apt-cache show $2
elif test "$1" = "-g"
then
apt-get update && apt-get upgrade
elif test "$1" = "-r"
then
apt-get remove $2
elif test "$1" = "-p"
then
apt-get purge $2
elif test "$1" = "-d"
then
apt-get download $2
elif test "$1" = "-o"
then
apt-get source $2
elif test "$1" = "-f"
then
apt-get install -f
else
echo E: Invalid operation $1
fi

