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.
Contents-amd64.gzit is a link, you will see, just a text file. – Mark Kirby Dec 13 '15 at 08:57I tried this it did not work. I will help you, but use comments, to ask for clarification, just so we are clear and on the same page :) – Mark Kirby Dec 13 '15 at 09:30repo.shin /home and then runchmod +x repo.shin your home folder or right click andmake executable. Now when you run this it will download the repo, run it withsudo ./repo.sh. Does this make it a bit easier to understand ? Please do ask for help. – Mark Kirby Dec 13 '15 at 09:38software and updatesapp and just disable the one you don't want to download (3rd party ones likeget.debor whatever) and re enable them after the download is complete. – Mark Kirby Dec 13 '15 at 09:52apt-cache dumpavailDumps all available (dumpavail) sources in apt's cache (apt-cache) to a file calledpackagelist. You don't have to memorize any thing, runapt-cache dumpavail |grep -oP "(?<=Package: ).*" >> packagelistto overwrite the list, then runrepo.shto download it, that is the only steps after the first time. – Mark Kirby Dec 13 '15 at 09:57packagelistis created in /root. is it right, as even with sudo i got permission denied, or did u do with sudo instead of su/sudo -i or change it's location – koe Dec 13 '15 at 10:02sudo apt-cache dumpavail |grep -oP "(?<=Package: ).*" >> packagelistjustapt-cache dumpavail |grep -oP "(?<=Package: ).*" >> packagelistit should be in the /home of your current user for easy running. – Mark Kirby Dec 13 '15 at 10:05