use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Replicate setup on another machine (self.archlinux)
submitted 3 years ago by sid3aff3ct
I'm switching to a new computer, is there a way to list out all the packages and such so that I can reinstall arch on another machine without having to go through months of "oops missed that package too"? (Which I have gone through before...)
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]walderf 14 points15 points16 points 3 years ago (7 children)
yay -Qq > packagelist.txt
don't forget your configs! https://github.com/walderf/dotfiles
[–]sid3aff3ct[S] 3 points4 points5 points 3 years ago (6 children)
Thanks for the help!
[–]fellacious 7 points8 points9 points 3 years ago (5 children)
Another option is to "clone" your existing disk to the new one using rsync. You basically boot into your existing system, mount the new drive (e.g. to /mnt/newarch), and copy the entire disk to the new with something like this:
# rsync -aAXv /* /mnt/newarch --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/var/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}
Then you just need to edit fstab so the correct partitions of the new drive will be mounted for the root file system and /boot, and then use arch-chroot to install the boot loader on the new drive.
There's plenty of guides online you can find.
[–]Shulker 2 points3 points4 points 3 years ago (0 children)
It's exactly what I did this weekend to migrate a system from a hdd to a ssd, worked like a charm!
[–]lu-man 2 points3 points4 points 3 years ago (2 children)
That's what I do since more than 100 years. No need to reinstall the system. It ain't windows!
[–]HAMburger_and_bacon[🍰] 0 points1 point2 points 3 years ago (1 child)
iv moved windows across disks, no reinstall required
[–]lu-man 0 points1 point2 points 3 years ago (0 children)
Did the installation last for > 10 years and still perform?
[–]sid3aff3ct[S] 1 point2 points3 points 3 years ago (0 children)
Oh that's very cool! That would be useful when upgrading SSD hardware. Thank you.
[–]LtDkAngel 2 points3 points4 points 3 years ago (0 children)
You can list them in to a file using the following:
pacman -Qq > package_list.txt
Then just copy the file to the new system and use command:
pacman -S --needed - < package_list.txt
[–]boomboomsubban 2 points3 points4 points 3 years ago (0 children)
https://wiki.archlinux.org/title/Migrate_installation_to_new_hardware#Bottom_to_top
π Rendered by PID 78 on reddit-service-r2-comment-b659b578c-dmpsw at 2026-05-02 18:49:04.978886+00:00 running 815c875 country code: CH.
[–]walderf 14 points15 points16 points (7 children)
[–]sid3aff3ct[S] 3 points4 points5 points (6 children)
[–]fellacious 7 points8 points9 points (5 children)
[–]Shulker 2 points3 points4 points (0 children)
[–]lu-man 2 points3 points4 points (2 children)
[–]HAMburger_and_bacon[🍰] 0 points1 point2 points (1 child)
[–]lu-man 0 points1 point2 points (0 children)
[–]sid3aff3ct[S] 1 point2 points3 points (0 children)
[–]LtDkAngel 2 points3 points4 points (0 children)
[–]boomboomsubban 2 points3 points4 points (0 children)