-1

I want to download entire multiverse repository I know it maybe several GBs around 20, but I want to. NOTE:I ONLY WANT TO DOWNLOAD AND WILL INSTALL LATER using dpkg -i [pkg] First created a file which contains names of all the available packages using apt-cache.

apt-cache dumpavail |grep -oP "(?<=Package: ).*" >> packagelist

This will create a file packagelist with all the available packages. i want to understand the working of apt-cache dumpavail command. i know >> is there to append and creates a file package list and all, but didn't get that grep (?<=package: ) and it's working so ones understood i don't have to memorize that stuff.

koe
  • 189

1 Answers1

2

You can create a mirror for your own. One tool to do this is debmirror. It's downloading the complete repository and saving it to your hard disc. Once this has done, you can add the local folder to your apt-configuration and using it instead of remote mirrors. Or you can provide a webserver to offer it as mirror to your company.

There is a wiki page about.

However, packages are stored inside http://archive.ubuntu.com/ubuntu/pool/ but without the meta data you cannot be sure it's not changed etc. (Inside packages.gz there are crypto-hashes stored)

frlan
  • 1,050
  • 5
  • 17