V
V
VN2021-11-18 10:06:10
ubuntu
VN, 2021-11-18 10:06:10

How much disk space to create a local repository?

To reduce traffic, we decided to deploy a local repository using apt-mirror.

At the moment hosts only on ubuntu 20.04 tls, but in the future we will use the following tls distribution in parallel with 20.04.

Tell me, how much disk space should be allocated under your repository, taking into account the above?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Ronald McDonald, 2021-11-18
@Zoominger

Depending on which repositories you want to clone.
Focus on 150 GB - this is more than enough for x64.

C
Collin, 2021-11-18
@Collin

135+ GB is required for the repository:

deb http://ua.archive.ubuntu.com/ubuntu/ focal main restricted

But you need to have about 150+ GB if you set cronyour local mirror to update daily.

P
pfg21, 2021-11-18
@pfg21

configure apt-mirror based on branches of interest.
after downloading the index files, it will report the estimated size of the download.
cancel further work, multiply by three and put such a volume into the drive.

stolen from https://wiki.debian.org/en/CreateLocalRepo
Downloading 176 index files using 20 threads...
Begin time: Wed Jul 13 10:08:21 2016
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Wed Jul 13 10:08:34 2016
Processing tranlation indexes: [TTTTT]
Downloading 47 translation files using 20 threads...
Begin time: Wed Jul 13 10:08:34 2016
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Wed Jul 13 10:08:40 2016
Processing indexes: [SSSSPPPPP]
130.7 GiB will be downloaded into archive.
Downloading 116807 archive files using 20 threads...
Begin time: Wed Jul 13 10:08:46 2016
[20]...

V
VN, 2021-11-19
@kavabangaungava

Thanks to all!
With these repositories it turned out 157 GB

deb http://archive.ubuntu.com/ubuntu/ focal main restricted
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted
 
deb http://archive.ubuntu.com/ubuntu focal universe
deb http://archive.ubuntu.com/ubuntu focal-updates universe
 
deb http://archive.ubuntu.com/ubuntu focal multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates multiverse
 
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
 
deb http://archive.ubuntu.com/ubuntu focal-security main restricted
deb http://archive.ubuntu.com/ubuntu focal-security universe
deb http://archive.ubuntu.com/ubuntu focal-security multiverse

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question