Downloading updates (reposync?)

How can we download the lastest updates to Rocky 8.4?

not sure if i got you or not

but you have 2 option

  1. using the gui open the software then click on update then click on the icon on the top left side of the screen then if there any update you can download and install it (it will restart your machine to apply the update)

  2. using command line

dnf check-update this will check for update
then dnf update to install all the available update or dnf update packageName to update certain package

hope that help and have a nice day :slight_smile:

1 Like

I didn’t explain my reason very well. We don’t allow unfettered Internet access, so I have to create local repos. I need to download the latest patches on a periodic basis so I can update my systems. The best way to do that is to create a new repo. In RedHat, I can do a reposync -n command to download the latest version of every file in a given repository, then do a yum update or dnf update to update my systems. I need the analog for doing the repo downloads for Rocky.

Hi,

reposync is available my install of rocky:

$ which reposync
/usr/bin/reposync

Is it not working as expected?

Thanks Tom.

Reposync isn’t the problem. What’s the location of the repo from which to sync?

Thanks!

so to make sure i got you that you asking for the repo the rocky use am i right?

if that the case here are the list of repo links

Repo-id : appstream
Repo-name : Rocky Linux 8 - AppStream
Repo-revision : 8.4
Repo-distro-tags : [cpe:/o:rocky:rocky:8]: , , 8, L, R, c, i, k, n, o, u,
: x, y
Repo-updated : Wed 07 Jul 2021 06:10:39 AM EET
Repo-pkgs : 6,265
Repo-available-pkgs: 5,320
Repo-size : 7.7 G
Repo-mirrors : https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-8
Repo-baseurl : Index of /pub/rocky/8.4/AppStream/x86_64/os/
: (65 more)
Repo-expire : 172,800 second(s) (last: Thu 15 Jul 2021 11:03:10 PM EET)
Repo-filename : /etc/yum.repos.d/Rocky-AppStream.repo

Repo-id : baseos
Repo-name : Rocky Linux 8 - BaseOS
Repo-revision : 8.4
Repo-distro-tags : [cpe:/o:rocky:rocky:8]: , , 8, L, R, c, i, k, n, o, u,
: x, y
Repo-updated : Wed 07 Jul 2021 06:09:56 AM EET
Repo-pkgs : 1,850
Repo-available-pkgs: 1,848
Repo-size : 1.5 G
Repo-mirrors : https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-8
Repo-baseurl : Index of /rockylinux/8.4/BaseOS/x86_64/os (26
: more)
Repo-expire : 172,800 second(s) (last: Thu 15 Jul 2021 11:03:23 PM EET)
Repo-filename : /etc/yum.repos.d/Rocky-BaseOS.repo

Repo-id : extras
Repo-name : Rocky Linux 8 - Extras
Repo-revision : 1625555336
Repo-distro-tags : [cpe:/o:rocky:rocky:8]: , , ., 4, 8, L, R, c, i, k, n,
: o, u, x, y
Repo-updated : Tue 06 Jul 2021 09:08:56 AM EET
Repo-pkgs : 10
Repo-available-pkgs: 10
Repo-size : 299 k
Repo-mirrors : https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=extras-8
Repo-baseurl : Index of /rocky/8.4/extras/x86_64/os/
: (66 more)
Repo-expire : 172,800 second(s) (last: Thu 15 Jul 2021 11:03:26 PM EET)
Repo-filename : /etc/yum.repos.d/Rocky-Extras.repo

Repo-id : powertools
Repo-name : Rocky Linux 8 - PowerTools
Repo-revision : 8.4
Repo-distro-tags : [cpe:/o:rocky:rocky:8]: , , 8, L, R, c, i, k, n, o, u,
: x, y
Repo-updated : Wed 07 Jul 2021 06:10:40 AM EET
Repo-pkgs : 2,154
Repo-available-pkgs: 1,547
Repo-size : 2.0 G
Repo-mirrors : https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=PowerTools-8
Repo-baseurl : Index of /pub/linux/rocky/8.4/PowerTools/x86_64/os/
: (65 more)
Repo-expire : 172,800 second(s) (last: Thu 15 Jul 2021 11:03:29 PM EET)
Repo-filename : /etc/yum.repos.d/Rocky-PowerTools.repo

you can get them all from here Index of /pub/rocky/8.4/

1 Like

That’s correct. I have to be able to predict the location so I( can have whitleisting done by our security guys.

1 Like

That’s exactly what I needed. Thanks much for the help!

you very welcome to get any repo link you can use that command

yum -v repolist it will list all repo you enabled with link details

1 Like