Listing all apps for printer. . .

My desktop system has KDE on it and I want to list all of my applications (i.e. KDE, Gnome, and all others) from AUR to a printer so that I can get them installed onto my other ‘Gnome’ computer. Whats the easiest way to do this in terminal and not miss a heartbeat. . . would it be better to save to a file then print? Probably. . . Could a script be written to install all of them? A big task?

Rich;)

Yes, but you don’t even really need a script. You can just create a file with the package names and pass the contents to yay.

No, super simple.

You can get the list of packages with pacman -Qqm

1 Like

If I open ‘KDE MENU EDITOR’ and expand all of the Categories to their fullest I have many more packages listed then what pacman -Qqm shows me in my printouts. Am I seeing this correctly? Maybe there are others not being listed? I don’t understand. . . independent packages not directly supported by Endeavor or AUR?

Rich;)

That command is only giving you AUR packages. The menus hold all the software you have installed.

Write your package list to a file like this, using the command dalto gave you (or rather skipping the m part, you get all apps instead of just the aur ones)

pacman -Qq | tr '\n' ' '> packages.list

Then to install everything from that list

yay -Syu $(cat packages.list)

Thank-you. . . . I’ll give all of this a try. . . .

Rich;)

Are you sure you want to do that?

That will install KDE on your gnome computer. That is literally every packages.

That is correct.

Unwanted packages can be excluded like this:

pacman -Qq  | grep -v "plasma" | grep -v "kde" #and so on

But no matter how you swing it, if you do it this way you’re likely to end up with bloat (i.e. packages that were needed on kde but aren’t on gnome). Some people care about that, some people do not mind.

Ok. . . so the real problem now is separating the operational desktop from the applications it supports? You can’t just extract all of the KDE applications and use them in GNOME? What I’m attempting to do is copy all applications from everywhere that will work on my KDE desktop to a Gnome desktop without changing the structure of the desktop.

Rich :slight_smile:

Looks like a big can of worms for anyone to tackle. . . . guess I’ll skip this idea for now.

Thanks. . . Rich;)

^that approch should do that. But problems have been known to arise sometimes when installing multiple desktop environments even if you only use one which means something could go wrong even if it shouldn’t.

However as I said, you would get a lot of bloat, packages needed for kde that aren’t needed for gnome (including all of kde, which you wouldn’t be using on the gnome pc at all) they’d just be sitting there harmlessly and unused the only real negative impact is that they’d take up space and sometimes need to be updated with your system updates.

The optimal approach for you, if you want the perfect result where you get all the apps u want with no bloat, would be this:

Store a list of all packages in a file

pacman -Qq > packages.list

Open the file, and go over the packages one by one, delete everything that you don’t want or don’t know what is, keep only packages that you know what are and know you want to keep in the list, trim it down to the minimum and make sure there’s no bloat in there.

After saving the trimmed list, re-format it so you can use it in a command:

cat packages.list  | tr '\n' ' ' > curated-packages.list

Then to install the curated list of all the packages you know you want:

yay -Syu $(cat curated-packages.list)

Thank-you for your support. . . . you’ve basically said what I am trying to do. It’s worth a try and I’ll see how much trouble I can get into . . . . . I’ll take this one nice and slow for starters. . . you are right about bloat and duplicate packages that do the same things in both desktops.

Rich;)