[How-To] Using Archive Mirrors to Downgrade Packages

Guides written by the community, for the community, and only guides!

[How-To] Using Archive Mirrors to Downgrade Packages

Postby maxr » Sat Mar 05, 2022 4:36 am

Hello, here is my archive mirrorlist file I use to make use of the public archive mirror provided by impatt. :mrgreen:
https://archlinuxarm.org/forum/memberlist.php?mode=viewprofile&u=16134

$this->bbcode_second_pass_code('', '
#
# Arch Linux ARM Archive Mirrorlist
#
# Replace `/etc/pacman.d/mirrorlist` with this
# file to access previous archived repositories.

# (Keep a backup of your original mirrorlist file!)

Server = http://tardis.tiny-vps.com/aarm/repos/2021/04/20/$arch/$repo
')

I recommend writing this file to `/etc/pacman.d/mirrorlist.archive` to use for later when you need to downgrade a package(s).

Before overwriting your `/etc/pacman.d/mirrorlist` with the archive mirror provided above, save a backup of your original mirrorlist file.
To backup your mirrorlist file, run as root on the pacman.d directory:
$this->bbcode_second_pass_code('', '# cp mirrorlist mirrorlist.backup')

When you're ready to downgrade a package or many packages, swap your mirrolist file as root:
$this->bbcode_second_pass_code('', '
# cd /etc/pacman.d/
# cat mirrorlist.archive > mirrorlist
')

To set the specific year/month/day you want to rollback to, edit the Server URL in the mirrorlist.archive file before overwriting the mirrorlist file.
maxr
 
Posts: 5
Joined: Fri Mar 04, 2022 9:11 pm

Return to Community Guides

Who is online

Users browsing this forum: No registered users and 2 guests