I want to install xubuntu-desktop
(a very large metapackage) but leaving out some of the packages on it (around 10). The current way I do this is in two steps: 1) install metapackage, and 2) purge unwanted packages. I wonder whether there is a more efficient and clean method to do this.
I thought apt-get
would accept an instruction like install this except these but very surprisingly it seem not.
A potential solution would be to run the command sudo apt-get install xubuntu-desktop
, then select No, and copy all the packages listed in the terminal, manually deleting the undesired ones. However this could be even more time consuming than the two-step procedure mentioned earlier, also risking to end up with bad dependencies.
Any ideas on how to make this in one simple command-line instruction?