This is an old revision of the document!
First of all, log in to your Debian server with root user and update the system using command:
apt-get update && apt-get upgrade
Then, install the essential packages which are needed to setup local repository using command:
apt-get install build-essential