Reinstalling all packages from a given repository

Is there a way to reinstall all installed packages from a given repository? In my case, quite some packages are claimed to being newer than the available packages in the repository, so batch reinstalling would be nice to synchronize the repository and the local installation. My Bash skills are quite basic.

Thanks in advance

Depends on why you want to do this. It would help if you show the command and the full output of what you did.

If you have used the testing repos and now return to the stable repos, you can use command

sudo pacman -Syuu

to downgrade packages.

But if your issue is related to changed mirrors, you may want to update the mirror list.

2 Likes

The affected repository is chaotic AUR.

-> acidrip: local (0.14-10.6) is newer than chaotic-aur (0.14-10)
 -> alpm_octopi_utils: local (1.0.2-7.1) is newer than chaotic-aur (1.0.2-7)
 -> bauh: local (0.10.7-1.1) is newer than chaotic-aur (0.10.7-1)
 -> boca: local (1:1.0.7-1.3) is newer than chaotic-aur (1:1.0.7-1)
 -> cava: local (0.10.2-2.1) is newer than chaotic-aur (0.10.2-2)
 -> debtap: local (3.5.1-1.2) is newer than chaotic-aur (3.5.1-1)
 -> downloader-cli: local (0.3.4-0.1) is newer than chaotic-aur (0.3.4-0)
 -> exaile: local (4.1.3-1.1) is newer than chaotic-aur (4.1.3-1)
 -> freac: local (1.1.7-1.2) is newer than chaotic-aur (1.1.7-1)
 -> fvs: local (0.3.4-2.2) is newer than chaotic-aur (0.3.4-2)
 -> gimp-extras: local (2.0.4-1.4) is newer than chaotic-aur (2.0.4-1)
 -> gmusicbrowser: local (1.1.16-1.1) is newer than chaotic-aur (1.1.16-1)
 -> googlemaps: local (20220503-1.2) is newer than chaotic-aur (20220503-1)
 -> kf6-servicemenus-rootactions: local (1.1.0-5) is newer than chaotic-aur (1.1.0-1)
 -> kvantum-theme-matcha-git: local (r11.a3b247b-1.3) is newer than chaotic-aur (r11.a3b247b-1)
 -> kvantum-theme-vimix-git: local (2021.09.05.r15.g29c4316-1.2) is newer than chaotic-aur (2021.09.05.r15.g29c4316-1)
 -> kwin-polonium: local (1.0rc-1.1) is newer than chaotic-aur (1.0rc-1)
 -> linux-mainline: local (6.12rc3-1) is newer than chaotic-aur (6.12rc2-1)
 -> linux-mainline-headers: local (6.12rc3-1) is newer than chaotic-aur (6.12rc2-1)
 -> octopi: local (0.16.2-1.1) is newer than chaotic-aur (0.16.2-1)
 -> plasma-applets-weather-widget-2: local (3.0.4-1.1) is newer than chaotic-aur (3.0.4-1)
 -> python-ffmpeg-python: local (0.2.0-6.1) is newer than chaotic-aur (0.2.0-6)
 -> python-injector: local (0.21.0-1.1) is newer than chaotic-aur (0.21.0-1)
 -> python-isounidecode: local (0.3-3.4) is newer than chaotic-aur (0.3-3)
 -> python-itunespy: local (1.6-2.4) is newer than chaotic-aur (1.6-2)
 -> python-moviepy: local (1.0.3-4.6) is newer than chaotic-aur (1.0.3-4)
 -> python-nanoid: local (2.0.0-3.1) is newer than chaotic-aur (2.0.0-3)
 -> python-playsound: local (1.3.0-2.4) is newer than chaotic-aur (1.3.0-2)
 -> python-proglog: local (0.1.10-1.4) is newer than chaotic-aur (0.1.10-1)
 -> python-pysdl2: local (0.9.16-1.1) is newer than chaotic-aur (0.9.16-1)
 -> python-simber: local (0.2.6-0.3) is newer than chaotic-aur (0.2.6-0)
 -> python-steamgriddb: local (1.0.5-2.1) is newer than chaotic-aur (1.0.5-2)
 -> pyzbar: local (0.1.9-1.5) is newer than chaotic-aur (0.1.9-1)
 -> smooth: local (0.9.10-1.2) is newer than chaotic-aur (0.9.10-1)
 -> snapper-gui-git: local (0.1+8.r132.20220626.1915750-1.0) is newer than chaotic-aur (0.1.r8.g1915750-1)
 -> snapper-tools: local (1.1.3-1.2) is newer than chaotic-aur (1.1.3-1)
 -> syncthing-gtk: local (0.9.4.5-1.2) is newer than chaotic-aur (0.9.4.5-1)
 -> vkbasalt-cli: local (3.1.1-2.1) is newer than chaotic-aur (3.1.1-2)
 -> youtube-search-python: local (1.6.6-2.4) is newer than chaotic-aur (1.6.6-2)
 -> yt-dlg-git: local (1.2.0.r399.g264699b-1.1) is newer than chaotic-aur (1.2.0.r399.g264699b-1)

Seems to be a problem with the repository itself. I’ll report back later.

I am having issues with Chaotic this morning, initially 416 errors, then the mirrorlist pkg will not download:

chaotic-aur/chaotic-mirrorlist  20240306-1   20240724-1     0.00 MiB

If I download manually 20240724-1 does not exist.

2 Likes

Correct. The same here.

What was the actual command used?

Alternatively you can drop the chaotic-aur repo (for now or forever :wink:), and update the system with

yay
yay -Syu

Now it was possible to update chaotic-mirrorlist, but the problem remains.

yay -Qs chaotic-m
local/chaotic-mirrorlist 20240724-1
    Chaotic-AUR mirrorlist to use with Pacman

I’m now synchronizing/downgrading manually. It involves a lot of typing. It might be about 50 packages. :wink:

I will not mark the problem as solved, as someone might come up with a solution for the original question. Might be interesting to know.

List the packages:

yay -Slq custom_repo_name

Reinstall the packages:

yay -S $(yay -Slq custom_repo_name)
1 Like

Thank you. I’ll test it as soon as possible.

1 Like

I am still having issues with the package, tried to reach out on Telegram but no response yet.

yay -Ss chaotic-mirrorlist
chaotic-aur/chaotic-mirrorlist 20240724-1 (3.3 KiB 2.0 KiB) (installed)
    Chaotic-AUR mirrorlist to use with Pacman

Installed via yay.

If you need it, I can post the content of the file, so you can edit/create the file in /etc/pacman.d/chaotic-mirrorlist.

No need, I have the mirrors, have removed the package temporarily.

1 Like

Don’t forget to remove it from /etc/pacman.conf, or at least use # for the entry being ignored.

Did the above work?

1 Like

Indeed. It did. Thanks.

1 Like

I have the suspicion, that they had serious trouble with the repository and switched to an earlier backup. Now they are going back to the state prior to the problem. Updates are slowly coming in.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.