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
We need to setup a web server to server all packages to the clients. In our case, let us install Apache web server. To install apache, run:
apt-get install apache2
To test if Apache is working, open up your web browser and navigate to: http:<IP-Address>.
You should see the following output:
===== Create A directory to store all packages =====
Create a directory called packages under apache root document folder i.e /var/www/html.
<code bash>
mkdir /var/www/html/packages
</code>
Now, create additional directories under /var/www/html/packages/ to save packages depending upon your system’s architecture. For example, If you use 32 bit systems, create a directory called “i386″ or if you use 64 bit systems, create “amd64″ directory. You can keep both directories and serve packages to different architecture systems at the same time.
Here, I am using 64 bit systems in my LAN, so I am going to create a directory called “amd64″ under /var/www/html/packages/ directory.
<code bash>
mkdir /var/www/html/packages/amd64
</code>
===== Copying all DEB files from Debian installation media =====
Mount the first CD/DVD and copy all .deb packages to /var/www/packages/amd64/ directory from your CD/DVD.
<code bash>
mount /dev/cdrom /media/cdrom
find /media/cdrom/pool/ -name “*.deb” -exec cp {} /var/www/html/packages/amd64 \;
</code>
After copying all deb files, unmount the first DVD using the following command.
<code bash>
umount /media/cdrom
</code>
Again mount all remaining CD/DVD one by one and copy the .deb files as shown above.
To verify the files, navigate to http://192.168.1.150/packages/amd64/ from your browser. You will see all packages of your Debian DVD’s. Here 192.168.1.150 is my Debian 8 server’s IP address.
Index of -packages-amd64 - Google Chrome_002