You are not logged in.

#1 2024-12-24 14:37:18

smopro
Member
Registered: 2024-12-24
Posts: 2

[SOLVED]Get a list of installed packages to reinstall on new system

I want to reinstall the system on an SSD because the current one has a lot of unnecessary stuff installed and I don't want to transfer it. Now I'm trying to get a list of explicitly installed packages

pacman -Qqn

, from this list I want to filter out explicit dependencies and additional dependencies that I stupidly installed without

--asdeps

.
At the moment, I use the list obtained by pacman, then pacman -Si for each package from the list and from it grep dependencies into the second list, then

grep -Fvxf ./dep_sorted.txt ./pkgs_sorted.txt > ./pkg-dep.txt

and repeat for the list of optional dependencies that I will install separately with the --asdeps flag. But at some point, packages that I definitely installed myself disappear from the final list, for example, telegram-desktop, gparted (but gpart remains) and probably some others. How can I correctly compile the required list so that I don’t have to deliver them to the system one by one, but can immediately specify them as a complete list during installation?

Last edited by smopro (2025-01-04 03:50:36)

Offline

#2 2024-12-24 20:51:12

jonno2002
Member
Registered: 2016-11-21
Posts: 735

Re: [SOLVED]Get a list of installed packages to reinstall on new system

its all here

though i still think you should learn to clean up your system and then do a top to bottom migration

lostfiles is great for finding files not tracked by pacman.

Offline

#3 2024-12-25 13:03:07

smopro
Member
Registered: 2024-12-24
Posts: 2

Re: [SOLVED]Get a list of installed packages to reinstall on new system

jonno2002 wrote:

its all.

Oh, thank you! I apologize for creating such a topic. I didn't think about something like that on the wiki at all. I'm sick now and my head is in a fog, I can't think straight.

Offline

#4 2024-12-25 15:12:10

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED]Get a list of installed packages to reinstall on new system

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB