Mirror the official Ubuntu repositories using aptly

List and show all mirrors

Here is the listing and show command of each mirror:

aptly@srv:~$ aptly mirror list
List of mirrors:
 * [bionic-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic [src] [udeb]
 * [bionic-security-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic-security [src] [udeb]
 * [bionic-security-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic-security [src] [udeb]
 * [bionic-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic [src] [udeb]
 * [bionic-updates-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic-updates [src] [udeb]
 * [bionic-updates-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic-updates [src] [udeb]

To get more information about mirror, run `aptly mirror show <name>`.
aptly@srv:~$ aptly mirror show bionic-main
Name: bionic-main
Archive Root URL: http://nl.archive.ubuntu.com/ubuntu/
Distribution: bionic
Components: main
Architectures: i386, amd64
Download Sources: yes
Download .udebs: yes
Last update: 2020-01-06 13:22:17 UTC
Number of packages: 12925

Information from release file:
Acquire-By-Hash: yes
Architectures: amd64 arm64 armhf i386 ppc64el s390x
Codename: bionic
Components: main restricted universe multiverse
Date: Thu, 26 Apr 2018 23:37:48 UTC
Description:  Ubuntu Bionic 18.04

Label: Ubuntu
Origin: Ubuntu
Suite: bionic
Version: 18.04
aptly@srv:~$ aptly mirror show bionic-universe
Name: bionic-universe
Archive Root URL: http://nl.archive.ubuntu.com/ubuntu/
Distribution: bionic
Components: universe
Architectures: i386, amd64
Download Sources: yes
Download .udebs: yes
Last update: 2020-01-06 23:02:45 UTC
Number of packages: 105573

Information from release file:
Acquire-By-Hash: yes
Architectures: amd64 arm64 armhf i386 ppc64el s390x
Codename: bionic
Components: main restricted universe multiverse
Date: Thu, 26 Apr 2018 23:37:48 UTC
Description:  Ubuntu Bionic 18.04

Label: Ubuntu
Origin: Ubuntu
Suite: bionic
Version: 18.04
aptly@srv:~$ aptly mirror show bionic-updates-main
Name: bionic-updates-main
Archive Root URL: http://nl.archive.ubuntu.com/ubuntu/
Distribution: bionic-updates
Components: main
Architectures: i386, amd64
Download Sources: yes
Download .udebs: yes
Last update: 2020-01-07 09:28:39 UTC
Number of packages: 15316

Information from release file:
Acquire-By-Hash: yes
Architectures: amd64 arm64 armhf i386 ppc64el s390x
Codename: bionic
Components: main restricted universe multiverse
Date: Tue, 07 Jan 2020  3:11:20 UTC
Description:  Ubuntu Bionic Updates

Label: Ubuntu
Origin: Ubuntu
Suite: bionic-updates
Version: 18.04
aptly@srv:~$ aptly mirror show bionic-updates-universe
Name: bionic-updates-universe
Archive Root URL: http://nl.archive.ubuntu.com/ubuntu/
Distribution: bionic-updates
Components: universe
Architectures: i386, amd64
Download Sources: yes
Download .udebs: yes
Last update: 2020-01-07 11:05:19 UTC
Number of packages: 11280

Information from release file:
Acquire-By-Hash: yes
Architectures: amd64 arm64 armhf i386 ppc64el s390x
Codename: bionic
Components: main restricted universe multiverse
Date: Tue, 07 Jan 2020  7:27:17 UTC
Description:  Ubuntu Bionic Updates

Label: Ubuntu
Origin: Ubuntu
Suite: bionic-updates
Version: 18.04
aptly@srv:~$ aptly mirror show bionic-security-main
Name: bionic-security-main
Archive Root URL: http://nl.archive.ubuntu.com/ubuntu/
Distribution: bionic-security
Components: main
Architectures: i386, amd64
Download Sources: yes
Download .udebs: yes
Last update: 2020-01-07 11:18:17 UTC
Number of packages: 12002

Information from release file:
Acquire-By-Hash: yes
Architectures: amd64 arm64 armhf i386 ppc64el s390x
Codename: bionic
Components: main restricted universe multiverse
Date: Tue, 07 Jan 2020  7:05:26 UTC
Description:  Ubuntu Bionic Security

Label: Ubuntu
Origin: Ubuntu
Suite: bionic-security
Version: 18.04
aptly@srv:~$ aptly mirror show bionic-security-universe
Name: bionic-security-universe
Archive Root URL: http://nl.archive.ubuntu.com/ubuntu/
Distribution: bionic-security
Components: universe
Architectures: i386, amd64
Download Sources: yes
Download .udebs: yes
Last update: 2020-01-08 08:42:13 UTC
Number of packages: 6977

Information from release file:
Acquire-By-Hash: yes
Architectures: amd64 arm64 armhf i386 ppc64el s390x
Codename: bionic
Components: main restricted universe multiverse
Date: Wed, 08 Jan 2020  3:11:52 UTC
Description:  Ubuntu Bionic Security

Label: Ubuntu
Origin: Ubuntu
Suite: bionic-security
Version: 18.04

List and show all snapshots

aptly@srv:~$ aptly snapshot list
List of snapshots:
 * [bionic-main]: Snapshot from mirror [bionic-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic [src] [udeb]
 * [bionic-security-main]: Snapshot from mirror [bionic-security-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic-security [src] [udeb]
 * [bionic-security-universe]: Snapshot from mirror [bionic-security-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic-security [src] [udeb]
 * [bionic-universe]: Snapshot from mirror [bionic-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic [src] [udeb]
 * [bionic-updates-main]: Snapshot from mirror [bionic-updates-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic-updates [src] [udeb]
 * [bionic-updates-universe]: Snapshot from mirror [bionic-updates-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic-updates [src] [udeb]

To get more information about snapshot, run `aptly snapshot show <name>`.
aptly@srv:~$ aptly snapshot show bionic-main
Name: bionic-main
Created At: 2020-01-08 10:44:21 UTC
Description: Snapshot from mirror [bionic-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic [src] [udeb]
Number of packages: 12925
Sources:
  bionic-main [repo]
aptly@srv:~$ aptly snapshot show bionic-universe
Name: bionic-universe
Created At: 2020-01-08 10:44:37 UTC
Description: Snapshot from mirror [bionic-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic [src] [udeb]
Number of packages: 105573
Sources:
  bionic-universe [repo]
aptly@srv:~$ aptly snapshot show bionic-updates-main
Name: bionic-updates-main
Created At: 2020-01-08 10:44:47 UTC
Description: Snapshot from mirror [bionic-updates-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic-updates [src] [udeb]
Number of packages: 15316
Sources:
  bionic-updates-main [repo]
aptly@srv:~$ aptly snapshot show bionic-updates-universe
Name: bionic-updates-universe
Created At: 2020-01-08 10:44:56 UTC
Description: Snapshot from mirror [bionic-updates-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic-updates [src] [udeb]
Number of packages: 11280
Sources:
  bionic-updates-universe [repo]
aptly@srv:~$ aptly snapshot show bionic-security-main
Name: bionic-security-main
Created At: 2020-01-08 10:45:14 UTC
Description: Snapshot from mirror [bionic-security-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic-security [src] [udeb]
Number of packages: 12002
Sources:
  bionic-security-main [repo]
aptly@srv:~$ aptly snapshot show bionic-security-universe
Name: bionic-security-universe
Created At: 2020-01-08 10:45:22 UTC
Description: Snapshot from mirror [bionic-security-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic-security [src] [udeb]
Number of packages: 6977
Sources:
  bionic-security-universe [repo]

List and show all published repositories.

These are the repositories you could use in other machines.

aptly@srv:~$ aptly publish list
Published repositories:
  * ubuntu/bionic (origin: Ubuntu) [amd64, i386, source] publishes {main: [bionic-main]: Snapshot from mirror [bionic-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic [src] [udeb]}, {universe: [bionic-universe]: Snapshot from mirror [bionic-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic [src] [udeb]}
  * ubuntu/bionic-security (origin: Ubuntu) [amd64, i386, source] publishes {main: [bionic-security-main]: Snapshot from mirror [bionic-security-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic-security [src] [udeb]}, {universe: [bionic-security-universe]: Snapshot from mirror [bionic-security-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic-security [src] [udeb]}
  * ubuntu/bionic-updates (origin: Ubuntu) [amd64, i386, source] publishes {main: [bionic-updates-main]: Snapshot from mirror [bionic-updates-main]: http://nl.archive.ubuntu.com/ubuntu/ bionic-updates [src] [udeb]}, {universe: [bionic-updates-universe]: Snapshot from mirror [bionic-updates-universe]: http://nl.archive.ubuntu.com/ubuntu/ bionic-updates [src] [udeb]}
aptly@srv:~$ aptly publish show bionic ubuntu
Prefix: ubuntu
Distribution: bionic
Architectures: amd64 i386 source
Sources:
  main: bionic-main [snapshot]
  universe: bionic-universe [snapshot]
aptly@srv:~$ aptly publish show bionic-updates ubuntu
Prefix: ubuntu
Distribution: bionic-updates
Architectures: amd64 i386 source
Sources:
  main: bionic-updates-main [snapshot]
  universe: bionic-updates-universe [snapshot]
aptly@srv:~$ aptly publish show bionic-security ubuntu
Prefix: ubuntu
Distribution: bionic-security
Architectures: amd64 i386 source
Sources:
  main: bionic-security-main [snapshot]
  universe: bionic-security-universe [snapshot]

Leave a Reply

Your email address will not be published. Required fields are marked *