Posted November 01, 2016
If you're like me then the main reason you use sites like GOG.com is to have more control over your software. It was this extra control that attracted me to Linux and while is is kind of there, it's been a steep learning curve nonetheless over the past few years. Anyway, all distributions of Linux that I have tried are cloud based needing a repository to install and update itsef. For the longest time though I wanted theses repositories on my hard drive so I have have local access to them and not have to reply on a cloud to get what I needed.
I found a method that works quite well for me and here's how I did it.
Auto-mount a ext4 partition with plenty of space
Create two folders on the partition each with another folder inside them named "partial"
Create a configuration text document in apt.conf.d and give it a high starting number.
Add the lines
dir::cache::archives /location/to/first/folder
dir::state::lists /location/to/second/folder
After that CD into your new cache directory and type apt-get download '*' if you're using 64Bit you'll also need to type apt-get download '*'i386
This will take a while. Be sure to make a backup of your sources.list.d as well.
If you've done this correctly you should have the entire repository saved to your hard drive. With or without internet you'll be able to install the latest programs and update. With internet your repo should update with general use and you shouldn't have to worry about writing a script. I've only tested this method with Linux Mint but feel free to try it with other Ubuntu based systems and let me know how it goes.
I prefer this method over rsync and apt-mirror since it's easier and more efficient.
I found a method that works quite well for me and here's how I did it.
Auto-mount a ext4 partition with plenty of space
Create two folders on the partition each with another folder inside them named "partial"
Create a configuration text document in apt.conf.d and give it a high starting number.
Add the lines
dir::cache::archives /location/to/first/folder
dir::state::lists /location/to/second/folder
After that CD into your new cache directory and type apt-get download '*' if you're using 64Bit you'll also need to type apt-get download '*'i386
This will take a while. Be sure to make a backup of your sources.list.d as well.
If you've done this correctly you should have the entire repository saved to your hard drive. With or without internet you'll be able to install the latest programs and update. With internet your repo should update with general use and you shouldn't have to worry about writing a script. I've only tested this method with Linux Mint but feel free to try it with other Ubuntu based systems and let me know how it goes.
I prefer this method over rsync and apt-mirror since it's easier and more efficient.