Copyright 2015 Mackan90096
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
>
When I googled how to create my own offline repository of packages for use in an offline Ubuntu/Debian machine, the results were disheartening and the steps to be taken scattered all over the place.
The files within this gist will allow you to:
Packages.gz
file so that you can add the repository folder you create to the target machine's /etc/apt/sources.list
file.#!/usr/bin/env python3 | |
""" | |
Author: gustavorv86 | |
Usage: Copy this script into the folder with the JPG files and execute it. | |
""" | |
try: | |
import os | |
import shutil | |
import sys |