How to rollback the installation of RebornOS

To perform a rollback of the RebornOS installation (or Arch Linux, which is the same), there are several repositories ordered by date and year at the following link:

https://archive.archlinux.org/repos/

As we can see, we will have the option of doing it in any state between 2013 and 2020, covering the dates indicated in each directory. Suppose we want to rollback the installation to the existing state on August 31, 2020. For this, we have two possible procedures:


(1).- The first option is to modify the pacman.conf file.First of all, we will make a backup of the configuration file:

sudo cp /etc/pacman.conf /etc/pacman.conf.backup

Once the backup is done, we replace the content of the pacman.conf file with the following (To do this, we edit the file with for example: sudo nano /etc/pacman.conf):

[core]
SigLevel = PackageRequired
Server=https://archive.archlinux.org/repos/2020/08/31/$repo/os/$arch

[extra]
SigLevel = PackageRequired
Server=https://archive.archlinux.org/repos/2020/08/31/$repo/os/$arch

[community]
SigLevel = PackageRequired
Server=https://archive.archlinux.org/repos/2020/08/31/$repo/os/$arch

We save the content of the file, and then it will be enough to execute the following:

sudo pacman -Syyuu



(2).- The second option is to leave the pacman.conf file unchanged, and modify the mirrorlist file. To do this, we make a backup of the mirrorlist file:

sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup

Edit the mirrorlist file and leave only the following inside:

Server=https://archive.archlinux.org/repos//2020/08/31/$repo/os/$arch

Then update with the following command:

sudo pacman -Syyuu



To return to the normal operation of the distribution, once we confirm in, for example, a virtual machine, that everything works properly, we can do the following:

Recover the pacman.conf file (If we use the first option):

sudo rm /etc/pacman.conf
sudo cp /etc/pacman.conf.backup /etc/pacman.conf

Recover the mirrorlist file (If we use the second option):

sudo rm /etc/pacman.d/mirrorlist
sudo cp /etc/pacman.d/mirrorlist.backup /etc/pacman.d/mirrorlist

Also, instead of this, we can create a new mirrorlist file, which will be generated using reflector. For example:

sudo reflector --country 'United States' --country Germany --latest 100 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist

We can read more about the use of reflector on the Arch Linux Wiki:

https://wiki.archlinux.org/index.php/reflector