You can use $1 (and so on for Nth) to refer to the first argument passed to a function or $* to refer to all of them. The $@ format refers to all the arguments passed but will expand into separate words:

function install(){
sudo apt-get install "$@"
}

You could then put this in your ~/.bashrc file so that it will be available every time you login.