I would like to build my own local repository on my LAN, so that machines on the LAN can update and upgrade from it. I want to download the packages and store them on my local server so that I can update, upgrade, install, etc, from it without using the internet.
|
|
From the Ubuntu Help wiki:
|
|||||||||||||||||||||
|
|
*To make an offline Repository Over LAN *
By default, Debian's Apache package will set up a website under
I used the actual hostname of my system instead of localhost -- this way the code is the same for all of the computers on my LAN, but localhost will do just fine if you are running just one computer.
|
|||||
|
|
Creating an Authenticated Repository I've had a look at the answers here and on other sites and most have the (IMHO big) disadvantage that you're setting up an unauthenticated repository. This means you need to run Note that I haven't covered here how to make it available over the LAN, but that's fairly generic config using Apache or nginx (see the other answers here). Setup the repo directory
Then add a line like this to
Adding and Removing Packages remove packages
add packages
now run the following script which generates the Packages, Release and InRelease files and signs them with your gpg private key:
Example Contents of conf/distributions file
Links https://wiki.debian.org/RepositoryFormat http://ubuntuforums.org/showthread.php?t=1090731 https://help.ubuntu.com/community/CreateAuthenticatedRepository |
|||||||||||||||||
|
|
You can also setup local source server by nginx and reprepro:
Reference to Install Guide Link |
|||||||||||||
|
|
You might want to take a look at Here is a guide on how to install and use it. |
||||
|
|
1Source:Create an Ubuntu Repository |
|||||||||
|
|
To make an offline local Repository
|
|||||
|
|
I tried to use
Instead I used Getting a recursive list of dependencies
Turn it into a digestible list
Complete command:
Download the packages
Scan for the packages and turn it into Packages.gz
|
|||||
|
|
I have done using apt-mirror. Its good but you need to have more hard drive space as it will be syncing with repos server. |
||||
|
|