I deployed a turnip on the Debian desktop in my LAN. Everyone can easily do this like this:
Create a folder in the directory of your web server (usually Apache in Linux is out of the box) and go into it, for example:
We pump out the necessary repository branch recursively
wget -r --no-parent http://mirror.thecust.net/harmattan-dev.nokia.com/pool/harmattan/free/
This branch weighs 8 GB. If you do not need archives with source codes, then you can invest in five gigs so
wget -r --no-parent -A .deb .dsc http://mirror.thecust.net/harmattan-dev.nokia.com/pool/harmattan/free/
This command only downloads deb and dsc files. The .dsc files contain dependency lists.
After the download of the repository is completed, it remains to generate the Packages.gz package list file, which for unknown reasons is missing in both mirrors that prompted me.
dpkg-scanpackages -t deb /var/www/meego/mirror.thecust.net/harmattan-dev.nokia.com/pool/harmattan/free | gzip | cat>/var/www/meego/mirror.thecust.net/harmattan-dev.nokia.com/pool/harmattan/free/Packages.gz
But, inside the archive there is a text file, and it contains several thousand lines with absolute paths, such as / var / www / meego / ...... But we don’t need it and you yourself will see an error when you try to install something and there it will be clear what you need to remove, namely, you need to remove all lines from the contents of the file /var/www/meego/mirror.thecust.net/harmattan-dev.nokia.com/pool/harmattan/free/ this can be done by any editor, choose to replace all /var/www/meego/mirror.thecust.net/harmattan-dev.nokia.com/pool/harmattan/free for nothing and back in .gz or if you have enough rights then make changes directly to the archive. Or if you have windows and you are at a loss how to generate Packakes.gz or just don’t want to generate and edit paths then just download my finished file and put it in the free / folder
Now add your repository like this:
echo 'deb http://192.168.1.5/meego/mirror.thecust.net/harmattan-dev.nokia.com/pool/harmattan/free /'>>/etc/apt/sources.list.d/sources.list && apt-get update
And one more thing, if you downloaded the first command with all the contents, then in each directory there will still be index.html which lists the entire contents of the directory, accordingly your generated Packages.gz file is not in this list and the Apache for some reason obeys this file and just does not see your package list file. I stepped on this rake, just delete this file:
rm /var/www/meego/mirror.thecust.net/harmattan-dev.nokia.com/pool/harmattan/free/index.html
That's it :) This method will work for other branches and rap.
Attached files
Packages.gz(597.69 KB)
Post has been editeduserLinux - 13.11.16, 17:15Reason for editing: Attached file.