You are not logged in.

#1 2017-02-13 13:46

hierra
Member
Registered: 2017-01-30
Posts: 8

How to mirror

Hey,

Is there any tutorial or guide to mirror the Q4OS repositories for local link usage?

Offline

#2 2017-02-13 21:58

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,223
Website

Re: How to mirror

'Apt-mirror' is the right tool, first install it:
$ sudo apt-get install apt-mirror
now create config file '/tmp/q4os_mirror/mirror.list'

set base_path    /tmp/q4os_mirror
set nthreads     20
set _tilde 0

deb-amd64   http://q4os.org/q4repo q4os-1-0-cn main
deb-i386    http://q4os.org/q4repo q4os-1-0-cn main
# deb-armhf   http://q4os.org/q4repo q4os-1-0-cn main

clean http://q4os.org/q4repo q4os-1-0-cn

continue in terminal:
$ cd /tmp/q4os_mirror
$ touch postmirror.sh
$ apt-mirror mirror.list
Repositories will be mirrored locally in '/tmp/q4os_mirror/'

Offline

#3 2017-02-16 14:18

hierra
Member
Registered: 2017-01-30
Posts: 8

Re: How to mirror

I have added

deb-amd64 http://q4os.org/q4repo q4os-1-0-cn main
deb-amd64 http://q4os.org/q4repo q4os-2-0-cn main
deb-amd64 http://q4os.org/qtderepo jessie main
deb-amd64 http://q4os.org/qtderepo stretch main

deb-i386 http://q4os.org/q4repo q4os-1-0-cn main
deb-i386 http://q4os.org/q4repo q4os-2-0-cn main
deb-i386 http://q4os.org/qtderepo jessie main
deb-i386 http://q4os.org/qtderepo stretch main

clean http://q4os.org/q4repo
clean http://q4os.org/qtderepo

Offline

#4 2022-10-10 17:06

prototorpex
Member
Registered: 2022-09-29
Posts: 1

Re: How to mirror

Begin time: Mon Oct 10 18:00:34 2022
[0]...
End time: Mon Oct 10 18:00:34 2022

Processing indexes: [PP]

52.2 MiB will be downloaded into archive.
Downloading 39 archive files using 20 threads...
Begin time: Mon Oct 10 18:00:34 2022
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Mon Oct 10 18:01:02 2022

0 bytes in 0 files and 0 directories can be freed.
Run /tmp/q4os_mirror/var/clean.sh for this purpose.

Running the Post Mirror script ...
(/tmp/q4os_mirror/var/postmirror.sh)

/bin/sh: 0: cannot open /tmp/q4os_mirror/var/postmirror.sh: No such file

Post Mirror script has completed. See above output for any possible errors.

Offline

#5 2022-10-11 11:18

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,223
Website

Re: How to mirror

@prototorpex
You may need to create an empty post mirror script.
$ nano /tmp/q4os_mirror/var/postmirror.sh
and run
$ apt-mirror mirror.list
again to suppress the error message

The original instructions have been updated, thanks for reporting.

Offline

Board footer

Powered by FluxBB