I found myself installing the same packages on almost all my servers. So I wanted to create a purest list of packages that I could install when ever I provisioned a new server. A list that would add to much bulk to the server image but enough tools that over time I’d be productive.
$ sudo apt-get update && sudo apt-get install -y git build-essential bash-completion aptitude unzip unrar-free p7zip
Run the above to install all the packages mentioned in this article.
You don’t really need Git on all your servers, but I found that I was often storing tools and Bash scripts in Git. So this kind of makes Git a kind of a poor mans package manager.
$ apt-get update $ apt-get install -y git
The build-essential package is one of those special dependencies that will not be automatically installed by other packages that requires it. This package contains all the build tools (i.e. compilers) to build packages from their source code.
If you’re going to be installing things like PHP, Ruby or NodeJS. You will want to get this first. Some of the extensions will not install successfully if this package is missing and you’ll have to figure out why from ambiguous errors.
$ apt-get update $ apt-get install -y build-essential
Improve your productivity in Bash by adding auto-completion by just hitting the tab key twice. It’s quick, easy and much have feature.
- Want to know what services are installed? Just type
servicefollowed by double tab key.
- Want to quickly find a package for PHP? Just type
apt-get install phpfollowed by double tab key.
- Want to.. well you get the idea.
There are a ton of commands that auto-completion is added for. You can see a of those commands here:
$ apt-get update $ apt-get install -y bash-completion
Log into a server you haven’t used in a while and you’ll be wanting to install security updates without updating other stable services running on that machine. Performing a
apt-get upgrade on the system can have unexpected results. That’s where Aptitude comes to the rescue and lets you interactively pick which security updates you want to install quickly and easily.
$ apt-get update $ apt-get install -y aptitude
It’s best to install all the common file compression tools so that you don’t have to go looking for the tool later. Here’s how to install packages that handle zip, rar and 7z files.
$ apt-get update $ apt-get install -y unzip unrar-free p7zip