dpkg
One of the few things elegant enough to escape the wrath of Linus Torvalds, dpkg is beautiful, simplistic, and self-contained. It does one thing and just one thing and that thing is installing/uninstalling packages. It works great in pipes, and its the epitome of good UNIX design principles.