Example sudo apt install kde-plasma-desktop installs all KDE apps
Depends on your distribution obviously. They don’t all have the same naming. It sounds like a Debian derivative here of course but there’s still many of those.
But it’s normally a meta package with a huge amount of packages, you’ll have to list them individually unless your distro has a meta package with a specific minimum install or something.
But anyway look in the package catalog for your distro, it should be in there.
And WeaponG’s solution is really great if there isn’t a minimal package.
isn’t there a command which shows the dependencies and I can selectively install them, i saw it on chris titus video
If you just run the command you ran initially it will print out the packages it wants to pull in. You can then cancel it and install whichever subset you choose manually.
Try installing just
plasma-desktopYou might try installing just one of the apps for that DE that you do want and let it pull in the dependancies… that might result in a leaner install.
I find it easier to install the entire desktop and then uninstall the particular apps that I don’t like/need.

