The officially official Devuan Forum!

You are not logged in.

#1 2018-03-13 00:36:01

golinux
Administrator
Registered: 2016-11-25
Posts: 3,317  

apt-mirror config for a local Devuan repo

Today, KatolaZ posted instructions for setting up a local mirror here.  Copied below for reference:

Dear D1rs,

Since we are talking of creating a local or LAN Devuan mirror, I
thought that posting a working configuration for apt-mirror could be
found useful. Please find at the bottom an example of what you should
have in your /etc/apt/mirrors.list in order to get a full local Devuan
repo for amd64, i386, and sources. You can use deb.devuan.org instead
of pkgmaster.devuan.org, if you like, or any of the package mirrors
listed at:

  https://pkgmaster.devuan.org/mirror_list.txt

Notice that the program apt-mirror must be executed by the user
"apt-mirror", who should have rwx access to the base_path specified in
the mirrors.list file. For more information, man apt-mirror

Useful information on setting up a Devuan package mirror can be found
at:

  https://pkgmaster.devuan.org/devuan_mir … hrough.txt

If you want to setup a *public* Devuan package mirror instead, please
follow the instructions reported in the walkthrough and get in touch
as specified therein.

HTH

KatolaZ

  -+-+-+-

############# config ##################
#
# base_path is the local path where your mirror will be created
set base_path    /srv/apt-mirror
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch  <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############

# mirroring package sources
deb-src http://pkgmaster.devuan.org/merged ascii main contrib non-free

# mirroring binary architectures
deb-amd64 http://pkgmaster.devuan.org/merged ascii main contrib non-free main/debian-installer
deb-i386  http://pkgmaster.devuan.org/merged ascii main contrib non-free main/debian-installer
deb-amd64 http://pkgmaster.devuan.org/devuan ascii main contrib non-free main/debian-installer
deb-i386  http://pkgmaster.devuan.org/devuan ascii main contrib non-free main/debian-installer

# cleanup obsolete stuff
clean http://pkgmaster.devuan.org/merged

Offline

#2 2018-09-18 15:04:13

Psud0nym
Member
From: Villa Rica, Georgia, USA
Registered: 2018-03-23
Posts: 6  
Website

Re: apt-mirror config for a local Devuan repo

It has been a few years gone by for me now, but I recall Aptly being a way to mirror/merge and publish multiple mirrors locally and over the net/LAN.
perhaps a short guide on this would be hepful those interested in using the distribution build kit. It also supports adding local packages to the repository. it seems that this may be a great boon for those that develop custom packages.

Aptly is in the repository already.

Last edited by Psud0nym (2018-09-18 15:05:57)


Learner of new ideas
Retired Computer Technician
US Army 2001-2006

Offline

#3 2018-10-11 07:47:34

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 230  
Website

Re: apt-mirror config for a local Devuan repo

Psud0nym wrote:

It has been a few years gone by for me now, but I recall Aptly being a way to mirror/merge and publish multiple mirrors locally and over the net/LAN.
perhaps a short guide on this would be hepful those interested in using the distribution build kit. It also supports adding local packages to the repository. it seems that this may be a great boon for those that develop custom packages.

Aptly is in the repository already.

I'm writing a guide about this in spanish.

https://dev1galaxy.org/viewtopic.php?id=2405


If you work systematically, things will come by itself (Lev D. Landau)

Offline

Board footer