PDA

View Full Version : [SOLVED] How to create Local Repository in Ubuntu 14.04



giobaxx
March 21st, 2018, 09:40 AM
Just to start to playing with Ubuntu Repository i wanted to try to use my UBUNTU DVD as Local Repo. Googling what i did was

1) Mount the ISO for example in /mnt/localRepo
2) in the source.list i put the the following string: deb file:/mnt/localRepo trusty main restricted

but it does not work, could you tell me what i miss?

Apart Mirroring the Repo, there is a way create an updated Repository from an Updated System?


Tanks a Lot

Joe

Frogs Hair
March 21st, 2018, 02:38 PM
This the only official documentation I find for an offline repo .

https://help.ubuntu.com/community/AptGet/Offline/Repository

Tadaen_Sylvermane
March 22nd, 2018, 12:42 AM
Not sure why you would want a full repo mirror. For my use I found an apt-caching server more effective. Only mirrors the packages that I actually use. Download once and they are local for any other system on my lan that needs them. Simple to set up. Look for apt-cacher-ng

giobaxx
March 25th, 2018, 01:47 PM
Sometimes i would need to update system that cannot be connetcted to the network, and would be usefull to perform at least some updates, but also i would like to learn more deeply how the ubuntu repo works.

I saw the structure of the file source.list that should be like this deb http://archive.ubuntu.com/repo (http://archive.ubuntu.com/repo) distribuition component1 component2 component3

then i found this https://help.ubuntu.com/community/Repositories/Personal that is about how to build a personal repo where in the source.list there is a line like this: deb file:/usr/local/mydebs ./

In mydebs i have copied all my packages but what it means "./"? at the end of the line. There is not component? ....is that instead of the component main restricted...etc.....

That brings me other questions which is the correct structure/folder of a repository?

When i tried to use my dvd as repo i have mounted the iso and i used the root of mounted dvd as repo(deb file:/mnt/localRepo) even if the folder straucture seems to be a bit different from the one provided on internet by canonical.

I would like to understand all this things in order to mange repo best as i can...

cruzer001
March 25th, 2018, 05:00 PM
Sometimes i would need to update system that cannot be connetcted to the network

Thats different from creating a local repository.

https://www.google.com/search?client=ubuntu&channel=fs&q=how+to+update+a+off+line+machine+ubuntu&ie=utf-8&oe=utf-8

giobaxx
April 3rd, 2018, 12:46 PM
Tanks great!!!