Skip to content

Instantly share code, notes, and snippets.

@ZamanOof
Last active October 10, 2021 06:07
Show Gist options
  • Save ZamanOof/53b21b87bc5c91dcbfffa2c8918285f6 to your computer and use it in GitHub Desktop.
Save ZamanOof/53b21b87bc5c91dcbfffa2c8918285f6 to your computer and use it in GitHub Desktop.
aptly buster

parametrs

need to choose

   --config for file .conf location if defualt just remove it
   -architectures= choose what u target for me for now x64
   -with-udebs debian udebs activated 
   -with-source for include source

notes

  • spread componets each other
  • choose what u need now if u have limited storage
  • make the name clear
  • if u use one config file make sure to copy it to ~/.aptly.conf
  • remeber to use screen like screen -S aptly

first create mirror

for normal buster repo

aptly -architectures=amd64 -config="/mirr/aptly.conf"  -with-udebs=true mirror create debian-buster-amd64-main https://deb.debian.org/debian buster main;
aptly -architectures=amd64 -config="/mirr/aptly.conf" -with-udebs=true mirror create debian-buster-amd64-contrib https://deb.debian.org/debian buster contrib;
aptly -architectures=amd64 -config="/mirr/aptly.conf" -with-udebs=true mirror create debian-buster-amd64-non-free  https://deb.debian.org/debian buster non-free;

for update repo

aptly -architectures=amd64 -config="/mirr/aptly.conf"  -with-udebs=true mirror create debian-buster-updates-amd64-main https://deb.debian.org/debian buster-updates main ;
aptly -architectures=amd64 -config="/mirr/aptly.conf"  -with-udebs=true mirror create debian-buster-updates-amd64-contrib https://deb.debian.org/debian buster-updates contrib  ;
aptly -architectures=amd64 -config="/mirr/aptly.conf"  -with-udebs=true mirror create debian-buster-updates-amd64-non-free https://deb.debian.org/debian buster-updates non-free ;

for security updates

aptly -architectures=amd64 -config="/mirr/aptly.conf"  -with-udebs=true mirror create debian-buster-security-amd64-main https://deb.debian.org/debian-security/ buster/updates   main;
aptly -architectures=amd64 -config="/mirr/aptly.conf"  -with-udebs=true mirror create debian-buster-security-amd64-non-free https://deb.debian.org/debian-security/ buster/updates non-free;
aptly -architectures=amd64 -config="/mirr/aptly.conf"  -with-udebs=true mirror create debian-buster-security-amd64-contrib https://deb.debian.org/debian-security/ buster/updates contrib;

update mirrors

aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-amd64-main;
aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-amd64-contrib;
aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-updates-amd64-main;
aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-updates-amd64-contrib;
aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-security-amd64-main;
aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-security-amd64-contrib;
aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-security-amd64-non-free;
aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-updates-amd64-non-free;
aptly mirror update -max-tries=99 -config="/mirr/aptly.conf"  debian-buster-amd64-non-free;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment