How to install Manjaro on another computer while keeping my current configuration

Just to be clear

  • you have computer A with your configuration
  • you now posess computer B which you will install with Manjaro
  • apply the same configuration on computer B as you have on computer A
  • in this context configuration is the files and folders found in
    • $HOME
    • /home/$USER
  • ONLY user configuration is supported

There is so many ways this can be e.g. konsave (AUR). When you are using Plasma this [Tip] Save your Plasma configurations and easily switch between them will help you setup konsave.

I have a script I made for the sole purpose of replicating a setup.

The script is self explaining [root tip] [Utililty Script] Backup configuration and package list and all you have to do is adjust the variables for which data you want to transfer.

On computer A

  • do a full system update and reboot
  • verify your system is functional

The script creates three (3) files in the directory you specify - e.g. an USB stick

  • a list of repo packages
  • a list of custom packages
  • a tarred archive with the configuration

On computer B
Navigate to the USB stick and open a terminal

Install repo packages

sudo pacman -Syu base-devel - < repo-pkglist.txt

Install custom packages

pamac build --no-confirm $(cat cust-pkglist.txt)

Extract the files

tar -xzf --overwrite ---directory $HOME dotconf.tar.gz
4 Likes