Page 2 of 2

Re: Many non-free packages installed by default.

Posted: Thu Jan 11, 2018 2:23 pm
by kmathern
RE: exasperated by spaces
This will remove all the non-free packages

Code: Select all

vrms | grep Contrib -B99999 | grep ^[a-z] | awk '{print $1}' | xargs sudo apt-get purge --force-yes -y -V --trivial-only
If you want to remove all the packages that vrms lists (both contrib & non-free), omit the first grep

Code: Select all

vrms | grep ^[a-z] | awk '{print $1}' | xargs sudo apt-get purge --force-yes -y -V --trivial-only
The commands posted above will stop short of actually removing the non-free and/or contrib packages, they'll show a summary instead.
Rerunning the command(s) again without the "--trivial-only" option will do it for real (make sure you really want to do it).



As far as removal of additional dependent packages goes I'm only seeing that the ddm-mx and acroread-debian-files packages would be removed initially on my MX-16 install, several others though are listed as 'autoremovable'.

Re: Many non-free packages installed by default.

Posted: Sun Jan 21, 2018 8:57 am
by Raymzap
kmathern wrote:
RE: exasperated by spaces
This will remove all the non-free packages

Code: Select all

vrms | grep Contrib -B99999 | grep ^[a-z] | awk '{print $1}' | xargs sudo apt-get purge --force-yes -y -V --trivial-only
If you want to remove all the packages that vrms lists (both contrib & non-free), omit the first grep

Code: Select all

vrms | grep ^[a-z] | awk '{print $1}' | xargs sudo apt-get purge --force-yes -y -V --trivial-only
The commands posted above will stop short of actually removing the non-free and/or contrib packages, they'll show a summary instead.
Rerunning the command(s) again without the "--trivial-only" option will do it for real (make sure you really want to do it).



As far as removal of additional dependent packages goes I'm only seeing that the ddm-mx and acroread-debian-files packages would be removed initially on my MX-16 install, several others though are listed as 'autoremovable'.
Cheers kmathern, that's excellent. Thanks. :cool2: