Installing individual packages is the most common command that you'll be using with APT. Type in “apt-get install”, a single space, and then the package name. That's it, that easy.
Similarly structured are the “update” and “upgrade” commands, which can be used to, well, update or upgrade your entire system if you so desire. It's a good idea to run “update” before “upgrade”, just in case your package index gets confused during this process. During this process, none of the old packages are removed, even if you aren't using them anymore.
If you want to upgrade the whole distro on your computer, then it's just “apt-get dist-upgrade”, no matter what version you're running.
Feel like removing a package? APT can do that too. Simply type in “apt-get remove”, and then the name of the package you want to remove. If you want to completely remove all files regarding the package, such as the configuration files, then add in “--purge” to the command, so, “apt-get --purge remove” and then the name of the package.
If you want to remove AND install or update a package at the same time, there's a way to do that too. If you add a “+” after a package name, it will invert the meaning of the entire command for just that package. So, using the previously mentioned programs as an example, if you want to remove Skype but install GIMP, you can type in, “apt-get remove skype gimp+”.
After typing any command, you'll be informed of exactly which packages will be installed, how much data will be fetched, and how much space this will take up on your hard drive once the packages have been unpacked, and you'll be prompted on whether you want to continue on.
To complete any of these commands, apt-get will have to fetch the package from the Ubuntu repositories online. Thus, you'll need an Internet connection to use any of these commands.
It's really just that easy! Command line installs are nothing to be afraid of.